|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.db.SpyDB
net.spy.db.SpyCacheDB
net.spy.db.DBSP
net.spy.db.DBCP
public abstract class DBCP
Superclass for dynamic SQL calls.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.spy.db.DBSP |
|---|
DBSP.Argument, DBSP.NamedObject, DBSP.Parameter |
| Field Summary |
|---|
| Fields inherited from class net.spy.db.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<DBSP.Argument> 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, getParameters, getParameters, getParameterType, getParams, getPreparedStatement, getQuery, getQueryTimeout, getSPName, getType, getWarnings, isDebugEnabled, nextResults, resetArgs, set, set, 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, setSPName, setTinyInt |
| Methods inherited from class net.spy.db.SpyCacheDB |
|---|
executeQuery, prepareStatement |
| Methods inherited from class net.spy.db.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
SQLException
public DBCP(Connection conn)
throws SQLException
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<DBSP.Argument> 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 | |||||||||