|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enableit.db.DatabaseProxy | +--org.enableit.db.GenericDBProxy
Proxy class to wrap any java application database access in a simple form
Field Summary | |
static java.lang.String |
ABOUT
Information on the exact CVS version accessible after compilation |
protected static org.apache.log4j.Logger |
logger
The Log4J Logger doing the logging. |
Fields inherited from class org.enableit.db.DatabaseProxy |
LIST, SQL_RESULT_SET |
Constructor Summary | |
GenericDBProxy()
|
Method Summary | |
static int |
executeDmlProcedure(java.lang.String sp,
java.util.ArrayList parms)
Execute the supplied stored procedure against a database connection supplied from ConnectionFactory . |
static java.util.List |
executeQuery(org.enableit.db.beans.Provider prov,
java.lang.String sql)
Execute the supplied SQL query against a database connection supplied from ConnectionFactory . |
static java.util.List |
executeQuery(org.enableit.db.beans.Provider prov,
java.lang.String sql,
java.util.List parms)
Execute the supplied SQL query against a database connection supplied from ConnectionFactory . |
static java.lang.Object |
executeQuery(java.lang.String sql,
int returnType)
Deprecated. Use one of the other methods that does not referende return type |
static java.lang.Object |
executeQueryProcedure(java.lang.String sp,
java.util.List parms,
int returnType)
Execute the supplied stored procedure against a database connection supplied from ConnectionFactory . |
static int |
executeUpdate(org.enableit.db.beans.Provider provider,
java.lang.String sql)
Execute the supplied SQL update query against a database connection supplied from ConnectionFactory . |
static int |
executeUpdate(org.enableit.db.beans.Provider provider,
java.lang.String sql,
java.util.List parms)
Execute the supplied SQL update query against a database connection supplied from ConnectionFactory . |
static int |
executeUpdate(java.lang.String sql)
Execute the supplied SQL update query against a database connection supplied from ConnectionFactory . |
static int |
executeUpdate(java.lang.String sql,
java.util.List parms)
Execute the supplied SQL update query against a database connection supplied from ConnectionFactory . |
Methods inherited from class org.enableit.db.DatabaseProxy |
executeDmlProcedure, executeQuery, executeQuery, executeQuery, executeQueryProcedure, executeUpdate, executeUpdate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
Logger
doing the logging.
Same Logger
is used throughout the package.
public static final java.lang.String ABOUT
Constructor Detail |
public GenericDBProxy()
Method Detail |
public static int executeUpdate(java.lang.String sql) throws DBException
ConnectionFactory
.
sql
- The SQL update to execute
DBException
- If execution of the update failed.public static int executeUpdate(org.enableit.db.beans.Provider provider, java.lang.String sql) throws DBException
ConnectionFactory
.
sql
- The SQL update to execute
DBException
- If execution of the update failed.public static int executeUpdate(java.lang.String sql, java.util.List parms) throws java.sql.SQLException, DBException
ConnectionFactory
.
sql
- The SQL update to execute with parameters represented by ?parms
- ArrayList
containing parameters to insert in the sql statement
DBException
- If execution of the update failed.
java.sql.SQLException
public static int executeUpdate(org.enableit.db.beans.Provider provider, java.lang.String sql, java.util.List parms) throws java.sql.SQLException, DBException
ConnectionFactory
.
sql
- The SQL update to execute with parameters represented by ?parms
- ArrayList
containing parameters to insert in the sql statement
DBException
- If execution of the update failed.
java.sql.SQLException
public static java.lang.Object executeQuery(java.lang.String sql, int returnType) throws DBException
ConnectionFactory
.
sql
- The SQL query to executereturnType
- int defining the return object types, enumerated on DatabaseProxy
DBException
- If execution of the query failed.public static java.util.List executeQuery(org.enableit.db.beans.Provider prov, java.lang.String sql) throws DBException
ConnectionFactory
.
sql
- The SQL query to execute
DBException
- If execution of the query failed.public static java.util.List executeQuery(org.enableit.db.beans.Provider prov, java.lang.String sql, java.util.List parms) throws DBException
ConnectionFactory
.
sql
- The SQL query to execute
DBException
- If execution of the query failed.public static int executeDmlProcedure(java.lang.String sp, java.util.ArrayList parms) throws DBException
ConnectionFactory
.
sp
- A string containing the stored procedure nameparms
- ArrayList
holding parameters required for stored proc
DBException
- If execution of the query failedpublic static java.lang.Object executeQueryProcedure(java.lang.String sp, java.util.List parms, int returnType) throws DBException
ConnectionFactory
.
sp
- A string containing the stored procedure nameparms
- ArrayList
holding parameters required for stored procreturnType
- int defining the return object types, enumerated on DatabaseProxy
java.lang.Object
containing any rows found
Object type matches the enumeration in DatabaseProxy
DBException
- If execution of the update failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |