|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.barracuda.testbed.workbench.jdbc.Database
Database - this is really a legacy class; we should be using JDBC 2.0 and getting a DataSource, but for now we'll leave it like it is, since after all it already works ;-)
Constructor Summary | |
Database(String ijdbcDriverName,
String ijdbcServerURL,
String idbUserName,
String idbPassword)
The public contructor for Database |
Method Summary | |
void |
commit()
commit |
void |
connectServer()
connectServer |
Statement |
createStatement()
createStatement |
void |
disconnectServer()
disconnectServer |
boolean |
getAutoCommit()
getAutoCommit |
int |
getCommitLevel()
getCommitLevel |
Connection |
getConnection()
getConnection |
Connection |
getConnection(boolean verify)
getConnection |
String |
getUserName()
getUserName |
boolean |
isConnected()
disconnectServer |
PreparedStatement |
prepareStatement(String s)
disconnectServer |
void |
resetCommitLevel()
resetCommitLevel |
void |
resetConnection()
resetConnection |
void |
rollback()
rollback |
void |
setAutoCommit(boolean val)
setAutoCommit |
void |
setConnection(Connection c)
setConnection |
void |
setUserName(String s)
setUserName |
void |
verifyConnection()
verifyConnection |
void |
verifyConnection(String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Database(String ijdbcDriverName, String ijdbcServerURL, String idbUserName, String idbPassword)
ijdbcDriverName
- Jdbc Driver NameijdbcServerURL
- Jdbc Server URLidbUserName
- Database User NameidbPassword
- Database passwordMethod Detail |
public void connectServer() throws PropertyVetoException
PropertyVetoException
public void disconnectServer() throws PropertyVetoException
PropertyVetoException
public boolean isConnected()
public PreparedStatement prepareStatement(String s) throws SQLException
s
- String to be set in the prepare statement
SQLException
public Statement createStatement() throws SQLException
SQLException
public Connection getConnection() throws PropertyVetoException
PropertyVetoException
public Connection getConnection(boolean verify) throws PropertyVetoException
verify
- Verify
PropertyVetoException
public void setConnection(Connection c)
c
- Connection to be setConnection
public void verifyConnection() throws SQLException
SQLException
public void verifyConnection(String s) throws SQLException
SQLException
public void resetConnection()
public void commit() throws SQLException
SQLException
public void rollback() throws SQLException
SQLException
public void resetCommitLevel()
public int getCommitLevel()
public void setAutoCommit(boolean val)
val
- True if commitedpublic boolean getAutoCommit()
public String getUserName()
public void setUserName(String s)
s
- User name to be set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |