|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--examples.jdbc.oracle.extensions.BaseDAO
This class provides common database methods.
| Constructor Summary | |
BaseDAO()
|
|
| Method Summary | |
protected static void |
cleanup(java.sql.ResultSet pResultSet,
java.sql.Statement pStmt,
java.sql.Connection pConn)
Utility function to clean up db usage. |
static java.sql.Connection |
getConnection(java.lang.String url)
Utility function to get db connection. |
protected static int |
getNextId(java.lang.String pSequence,
java.sql.Connection pConn)
Returns the next id in the sequence |
static void |
log(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public BaseDAO()
| Method Detail |
protected static void cleanup(java.sql.ResultSet pResultSet,
java.sql.Statement pStmt,
java.sql.Connection pConn)
throws java.sql.SQLException
Utility function to clean up db usage.
public static java.sql.Connection getConnection(java.lang.String url)
throws java.sql.SQLException,
javax.naming.NamingException
Utility function to get db connection.
protected static int getNextId(java.lang.String pSequence,
java.sql.Connection pConn)
throws javax.naming.NamingException,
java.sql.SQLException
Returns the next id in the sequence
String - pSequence The fully qualified sequence to query from.javax.naming.NamingException - Thrown on naming errorsjava.sql.SQLException - Thrown on sql errorspublic static void log(java.lang.String str)
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||