|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.SpyDB
net.spy.db.SpyCacheDB
net.spy.db.DBSP
net.spy.db.DBCP
Superclass for dynamic SQL calls.
| Nested Class Summary |
| Nested classes inherited from class net.spy.db.DBSP |
DBSP.Argument, DBSP.NamedObject, DBSP.Parameter |
| Field Summary |
| Fields inherited from class net.spy.SpyDB |
INIT_FROM_CONFIG, INIT_FROM_CONN |
| Constructor Summary | |
DBCP(Connection conn)
Get a DBCP object with the given Connection. |
|
DBCP(SpyConfig conf)
Get a DBCP object with the given DBConfig. |
|
| Method Summary | |
protected void |
applyArgs(Collection v)
Fill in the arguments (with types) for the given list of parameters. |
boolean |
execute()
Execute a query for update only. |
CallableStatement |
getCallableStatement()
Get the CallableStatement for fetching output args. |
protected void |
prepare()
Prepare the statement for execution. |
protected void |
setOptional(String name,
int type)
Optional parameters are not currently supported for DBCP objects. |
| Methods inherited from class net.spy.db.DBSP |
addParameter, checkArgs, close, executeQuery, executeUpdate, getArguments, getCacheTime, getOptionalArgs, getOutputArgs, getParameters, getParameters, getParameterType, getParams, getPreparedStatement, getQuery, getQueryTimeout, getRequiredArgs, getSPName, getType, getWarnings, isDebugEnabled, main, nextResults, resetArgs, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setArg, setCacheTime, setCoerced, setCursorName, setDebug, setMaxRows, setNull, setOutput, setPreparedStatement, setQuery, setQueryTimeout, setRequired, setSmallInt, setSPName |
| Methods inherited from class net.spy.db.SpyCacheDB |
executeQuery, prepareStatement |
| Methods inherited from class net.spy.SpyDB |
dbquoteStr, executeQuery, executeUpdate, freeDBConn, getConfig, getConn, getInitType, getSource, init, isClosed, prepareCall, prepareStatement |
| Methods inherited from class net.spy.SpyObject |
getLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBCP(SpyConfig conf)
throws SQLException
public DBCP(Connection conn)
throws SQLException
| Method Detail |
public boolean execute()
throws SQLException
SQLException
protected void setOptional(String name,
int type)
throws SQLException
setOptional in class DBSPname - name of the parametertype - type of the parameter
SQLException - Optional Parameters are not supportedTypespublic CallableStatement getCallableStatement()
protected void applyArgs(Collection v)
throws SQLException
applyArgs in class DBSPv - the list of Argument objects we need to add, in order
SQLException
protected void prepare()
throws SQLException
prepare in class DBSPSQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||