|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The base OTD class.
| Method Summary | |
void |
commit()
Commits a transaction for the connection. |
boolean |
getAutoCommit()
Gets the AutoCommit mode of the connection. |
java.sql.Connection |
getConnection()
Gets the connection of the OTD. |
int |
getTransactionIsolation()
Gets the transaction isolation level for the connection. |
boolean |
isConnected()
Returns the connection status. |
void |
reconnect()
Reconnect to a database. |
void |
rollback()
Rollbacks a transaction for the connection. |
void |
setAutoCommit(boolean bAuto)
Sets the AutoCommit mode of the connection. |
void |
setConcurrencyToReadOnly()
Set concurrency type of the session to read only. |
void |
setConcurrencyToUpdatable()
Set concurrency type of the session to updatable. |
void |
setScrollTypeToForwardOnly()
Set result set type of the session to be forward only. |
void |
setScrollTypeToScrollInsensitive()
Set result set type of the session to be insensitive. |
void |
setScrollTypeToScrollSensitive()
Set result set type of the session to be sensitive. |
void |
setTransactionIsolation(int iLevel)
Sets the transaction isolation level for the connection. |
| Method Detail |
public void commit()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in commiting a transaction.
public boolean getAutoCommit()
throws java.sql.SQLException
java.sql.SQLException - if there is any error in getting the AutoCommit mode from the database.
public java.sql.Connection getConnection()
throws java.sql.SQLException
java.sql.SQLException - if there is any error in getting the connection.
public int getTransactionIsolation()
throws java.sql.SQLException
java.sql.SQLException - if there is any error in getting the transaction isolation level.public boolean isConnected()
public void reconnect()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in establishing connection.
public void rollback()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in rolling back a transaction.
public void setAutoCommit(boolean bAuto)
throws java.sql.SQLException
bAuto - a true value will set the connection to be in AutoCommit mode; false otherwise.
void - None.
java.sql.SQLException - if there is any problem in setting the AutoCommit mode.
public void setConcurrencyToReadOnly()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in setting scroll type.
public void setConcurrencyToUpdatable()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in setting scroll type.
public void setScrollTypeToForwardOnly()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in setting result set type.
public void setScrollTypeToScrollInsensitive()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in setting result set type.
public void setScrollTypeToScrollSensitive()
throws java.sql.SQLException
void - None.
java.sql.SQLException - if there is any problem in setting scroll type.
public void setTransactionIsolation(int iLevel)
throws java.sql.SQLException
iLevel - a transaction isolation value: TRANSACTION_NONE,
TRANSACTION_READ_UNCOMMITTED, TRANSACTION_READ_COMMITTED,
TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE.
void - None.
java.sql.SQLException - if there is any problem in setting the transaction isolation level.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 by Sun Microsystems, Inc. All Rights Reserved.