|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.lib.db.JdbcStatementResource
com.caucho.quercus.lib.db.JdbcPreparedStatementResource
public class JdbcPreparedStatementResource
Represents a JDBC Statement value.
Constructor Summary | |
---|---|
JdbcPreparedStatementResource(JdbcConnectionResource conn)
Constructor for JdbcStatementResource |
Method Summary | |
---|---|
protected boolean |
bindParams(Env env,
ColumnType[] types,
Value[] params)
Creates _types and _params array for this prepared statement. |
protected boolean |
executeImpl(Env env)
|
protected Value |
getParam(int i)
Returns a parameter value Known subclasses: see PostgresStatement.execute |
protected int |
getParamLength()
Returns the number of parameters available to binding Known subclasses: see PostgresStatement.execute |
protected java.sql.PreparedStatement |
getPreparedStatement()
Returns the internal prepared statement. |
protected boolean |
isPreparable(java.lang.String query)
|
int |
paramCount()
Counts the number of parameter markers in the query string. |
boolean |
prepare(Env env,
java.lang.String query)
Prepares this statement with the given query. |
protected boolean |
prepareForExecute(Env env)
|
protected void |
setObject(int i,
java.lang.Object param)
Sets the given parameter Known subclasses: see PostgresStatement.execute |
protected void |
setPreparedStatement(java.sql.PreparedStatement stmt)
Changes the internal statement. |
Methods inherited from class com.caucho.quercus.lib.db.JdbcStatementResource |
---|
bindResults, close, createResultSet, dataSeek, execute, execute, fetch, freeResult, getColumnCount, getConnection, getErrorCode, getErrorMessage, getFieldCount, getJavaConnection, getMetaData, getNumRows, getQuery, getResultSet, getStatementType, isFetchFieldIndexBeforeFieldName, lastInsertId, setError, setErrorCode, setErrorMessage, setQuery, setResultSet, setStatement, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JdbcPreparedStatementResource(JdbcConnectionResource conn)
connV
- a JdbcConnectionResource connectionMethod Detail |
---|
protected boolean bindParams(Env env, ColumnType[] types, Value[] params)
types
- = string of i,d,s,b (ie: "idds")params
- = array of values (probably Vars)
protected boolean prepareForExecute(Env env) throws java.sql.SQLException
prepareForExecute
in class JdbcStatementResource
java.sql.SQLException
protected boolean executeImpl(Env env) throws java.sql.SQLException
executeImpl
in class JdbcStatementResource
java.sql.SQLException
protected java.sql.PreparedStatement getPreparedStatement()
public int paramCount()
public boolean prepare(Env env, java.lang.String query)
query
- SQL query
protected boolean isPreparable(java.lang.String query)
protected Value getParam(int i)
protected int getParamLength()
protected void setPreparedStatement(java.sql.PreparedStatement stmt)
protected void setObject(int i, java.lang.Object param) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |