|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.jdbc.DelegatingConnection
org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator.ConfiguringConnection
public class ConfiguringConnectionDecorator.ConfiguringConnection
Decorator to configure connection components correctly.
| Field Summary |
|---|
| Fields inherited from interface java.sql.Connection |
|---|
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
| Constructor Summary | |
|---|---|
ConfiguringConnectionDecorator.ConfiguringConnection(Connection conn)
|
|
| Method Summary | |
|---|---|
void |
commit()
|
protected Statement |
createStatement(boolean wrap)
Create a statement, with the option of not wrapping it in a DelegatingStatement, which is the default. |
protected Statement |
createStatement(int rsType,
int rsConcur,
boolean wrap)
Create a statement, with the option of not wrapping it in a DelegatingStatement, which is the default. |
protected PreparedStatement |
prepareStatement(String sql,
boolean wrap)
Prepare a statement, with the option of not wrapping it in a DelegatingPreparedStatement, which is the default. |
protected PreparedStatement |
prepareStatement(String sql,
int rsType,
int rsConcur,
boolean wrap)
Prepare a statement, with the option of not wrapping it in a DelegatingPreparedStatement, which is the default. |
void |
rollback()
|
void |
setAutoCommit(boolean auto)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfiguringConnectionDecorator.ConfiguringConnection(Connection conn)
throws SQLException
SQLException| Method Detail |
|---|
public void setAutoCommit(boolean auto)
throws SQLException
setAutoCommit in interface ConnectionsetAutoCommit in class DelegatingConnectionSQLException
public void commit()
throws SQLException
commit in interface Connectioncommit in class DelegatingConnectionSQLException
public void rollback()
throws SQLException
rollback in interface Connectionrollback in class DelegatingConnectionSQLException
protected PreparedStatement prepareStatement(String sql,
boolean wrap)
throws SQLException
DelegatingConnectionDelegatingPreparedStatement, which is the default.
prepareStatement in class DelegatingConnectionSQLException
protected PreparedStatement prepareStatement(String sql,
int rsType,
int rsConcur,
boolean wrap)
throws SQLException
DelegatingConnectionDelegatingPreparedStatement, which is the default.
prepareStatement in class DelegatingConnectionSQLException
protected Statement createStatement(boolean wrap)
throws SQLException
DelegatingConnectionDelegatingStatement, which is the default.
createStatement in class DelegatingConnectionSQLException
protected Statement createStatement(int rsType,
int rsConcur,
boolean wrap)
throws SQLException
DelegatingConnectionDelegatingStatement, which is the default.
createStatement in class DelegatingConnectionSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||