|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectzeus.ext.DbConnector
| Field Summary | |
protected java.sql.Connection |
dbConn
|
protected java.lang.String |
JDBCconnectionName
|
protected java.lang.String |
JDBCdriverName
|
protected java.lang.String |
password
|
protected java.lang.String |
username
|
| Constructor Summary | |
DbConnector(java.lang.String user,
java.lang.String pw,
java.lang.String driver,
java.lang.String conn)
|
|
| Method Summary | |
boolean |
activeConnection()
Check to see if an active connection exists |
void |
close()
Close the connection to the db |
boolean |
connect()
Connect to the db |
java.sql.Connection |
getConnection()
Get the connection object for the database This is used to initiate calleable statements for PL/SQL calls |
java.sql.Statement |
getStatement()
Get a statement associated with the connection |
static void |
main(java.lang.String[] Args)
The CRUD methods |
void |
sqlCommand(java.lang.String command)
Execute an SQL command |
java.sql.ResultSet |
sqlQuery(java.lang.String query)
Execute an sql query |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.sql.Connection dbConn
protected java.lang.String username
protected java.lang.String password
protected java.lang.String JDBCdriverName
protected java.lang.String JDBCconnectionName
| Constructor Detail |
public DbConnector(java.lang.String user,
java.lang.String pw,
java.lang.String driver,
java.lang.String conn)
| Method Detail |
public boolean connect()
throws java.sql.SQLException
java.sql.SQLException
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException
public java.sql.Statement getStatement()
throws java.sql.SQLException
java.sql.SQLException
public boolean activeConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
public java.sql.ResultSet sqlQuery(java.lang.String query)
throws java.sql.SQLException
query - the sql query to execute
java.sql.SQLException
public void sqlCommand(java.lang.String command)
throws java.sql.SQLException
command - the sql command to execute
java.sql.SQLExceptionpublic static void main(java.lang.String[] Args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||