|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpl.eda.util.JDBC_DB
This class is a wrapper for JDBC.
| Field Summary | |
java.lang.String |
TO_DATE_FORMAT
|
| Constructor Summary | |
JDBC_DB(java.util.Properties sys_props)
JDBC_DB Constructor method will create class instance and load the Oracle DB driver |
|
JDBC_DB(java.util.Properties sys_props,
java.sql.Connection srv_connect)
|
|
| Method Summary | |
void |
closeConnection()
closeConnection Close a connection to the database. |
void |
commit()
commit |
java.sql.ResultSet |
executeQuery(java.lang.String cmd)
executeQuery Send an SQL query to the DBMS to be executed. |
void |
executeSQLCommand(java.lang.String cmd)
executeSQLCommand Send an SQL command to the DBMS to be executed. |
protected void |
finalize()
|
java.sql.Connection |
getConnection()
|
int |
getCount(java.lang.String cmd)
getCount Will return a count when user passes sting select count(*) from ... |
void |
openConnection()
openConnection Open a connection to the database. |
void |
openConnection(java.lang.String username,
java.lang.String password,
java.lang.String database)
|
void |
rollback()
rollback |
void |
setAutoCommitMode(boolean autoCommitMode)
|
java.lang.String |
toDateStr(java.util.Date inDate)
Convert Date to string in format for Oracle TO_DATE processing - DD-MM-YY HH24:MI:SS |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final java.lang.String TO_DATE_FORMAT
| Constructor Detail |
public JDBC_DB(java.util.Properties sys_props)
throws java.sql.SQLException
public JDBC_DB(java.util.Properties sys_props,
java.sql.Connection srv_connect)
throws java.sql.SQLException
| Method Detail |
public void setAutoCommitMode(boolean autoCommitMode)
public void openConnection()
throws java.sql.SQLException
java.sql.SQLException
public void openConnection(java.lang.String username,
java.lang.String password,
java.lang.String database)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void closeConnection()
public void executeSQLCommand(java.lang.String cmd)
throws java.sql.SQLException
java.sql.SQLException
public java.sql.ResultSet executeQuery(java.lang.String cmd)
throws java.sql.SQLException
java.sql.SQLException
public int getCount(java.lang.String cmd)
throws java.sql.SQLException
java.sql.SQLException
public void commit()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void rollback()
protected void finalize()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String toDateStr(java.util.Date inDate)
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||