|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoemware.core.dao.DbTools
public final class DbTools
The db tools object.
| Constructor Summary | |
|---|---|
DbTools()
|
|
| Method Summary | |
|---|---|
static void |
close(java.sql.ResultSet pResultSet,
java.sql.Statement pStatement)
Close the JDBC objects. |
static void |
close(java.sql.ResultSet pResultSet,
java.sql.Statement pStatement,
java.sql.Connection pConnection)
Close the JDBC objects. |
static void |
close(java.sql.Statement pStatement,
java.sql.Connection pConnection)
Close the JDBC objects. |
static void |
closeConnection(java.sql.Connection pConnection)
Close the connection. |
static void |
closeResultSet(java.sql.ResultSet pResultSet)
Close the result set. |
static void |
closeStatement(java.sql.Statement pStatement)
Close the statement. |
static java.sql.Connection |
getConnection(java.lang.String pUsername,
java.lang.String pPassword,
java.lang.String pUrl,
java.lang.String pDriver)
Create a new db connection. |
static java.sql.Timestamp |
getNow()
Returns the current timestamp object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbTools()
| Method Detail |
|---|
public static final java.sql.Connection getConnection(java.lang.String pUsername,
java.lang.String pPassword,
java.lang.String pUrl,
java.lang.String pDriver)
throws DaoException
pUsername - The username.pPassword - The password.pUrl - The JDBC url.pDriver - The driver name.
DaoExceptionpublic static final java.sql.Timestamp getNow()
public static final void close(java.sql.ResultSet pResultSet,
java.sql.Statement pStatement,
java.sql.Connection pConnection)
throws DaoException
pResultSet - The result set.pStatement - The statement.pConnection - The connection.
DaoException
public static final void close(java.sql.ResultSet pResultSet,
java.sql.Statement pStatement)
throws DaoException
pResultSet - The result set.pStatement - The statement.
DaoException
public static final void close(java.sql.Statement pStatement,
java.sql.Connection pConnection)
throws DaoException
pStatement - The statement.pConnection - The connection.
DaoException
public static final void closeConnection(java.sql.Connection pConnection)
throws DaoException
pConnection - The connection.
DaoException
public static final void closeStatement(java.sql.Statement pStatement)
throws DaoException
pStatement - The statement.
DaoException
public static final void closeResultSet(java.sql.ResultSet pResultSet)
throws DaoException
pResultSet - The result set.
DaoException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||