| java.lang.Object org.apache.derby.client.am.Connection
All known Subclasses: org.apache.derby.client.net.NetConnection,
Constructor Summary | |
protected | Connection(org.apache.derby.client.am.LogWriter logWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource) | protected | Connection(org.apache.derby.client.am.LogWriter logWriter, String user, String password, boolean isXAConn, org.apache.derby.jdbc.ClientBaseDataSource dataSource) | protected | Connection(org.apache.derby.client.am.LogWriter logWriter, boolean isXAConn, org.apache.derby.jdbc.ClientBaseDataSource dataSource) | protected | Connection(LogWriter logWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties) |
Method Summary | |
public void | accumulate440WarningForMessageProcFailure(SqlWarning e) | public void | accumulate444WarningForMessageProcFailure(SqlWarning e) | public void | accumulateWarning(SqlWarning e) | abstract public void | addSpecialRegisters(String s) | abstract protected boolean | allowCloseInUOW_() | abstract protected boolean | allowLocalCommitRollback_() | void | checkAutoGeneratedKeysParameters(int autoGeneratedKeys, String[] columnNames) | protected void | checkForClosedConnection() | void | checkForTransactionInProgress() | public synchronized void | clearWarnings() | public void | clearWarningsX() | public synchronized void | close() | public synchronized void | closeForReuse() | public synchronized void | closeResources() | public synchronized void | closeX() | public synchronized void | commit() | public void | completeAbnormalUnitOfWork() | public void | completeAbnormalUnitOfWork(UnitOfWorkListener uwl) Rollback the UnitOfWorkListener specifically. | public void | completeChainBreakingDisconnect() | public void | completeConnect() | public void | completeLocalCommit() | public void | completeLocalRollback() | protected void | completeReset(boolean isDeferredReset, boolean recomputeFromDataSource) | public void | completeSpecificRollback(UnitOfWorkListener uwl) Rollback the specific UnitOfWorkListener. | public void | completeSqlca(Sqlca sqlca) | void | completeTransactionStart() | public synchronized java.sql.Statement | createStatement() | public synchronized java.sql.Statement | createStatement(int resultSetType, int resultSetConcurrency) | public synchronized java.sql.Statement | createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) | abstract protected boolean | doCloseStatementsOnClose_() | protected void | finalize() | public boolean | flowAutoCommit() | public void | flowCommit() | protected void | flowRollback() | public boolean | getAutoCommit() | public String | getCatalog() | public int | getHoldability() | public java.sql.DatabaseMetaData | getMetaData() | public int | getServerVersion() | public int | getTransactionIsolation() | public java.util.Map | getTypeMap() | public java.sql.SQLWarning | getWarnings() | public int | getXAState() | final int | holdability() Return the holdabilty for the Connection. | protected void | initConnection(org.apache.derby.client.am.LogWriter logWriter, String user, org.apache.derby.jdbc.ClientBaseDataSource dataSource) | public boolean | isClosed() | public boolean | isClosedX() | abstract protected boolean | isGlobalPending_() | public boolean | isPhysicalConnClosed() Return true if the physical connection is still open. | public boolean | isReadOnly() | public boolean | isXAConnection() | public synchronized void | lightReset() | public void | markClosed() | abstract protected void | markClosed_() | public String | nativeSQL(String sql) | public synchronized String | nativeSQLX(String sql) | abstract protected Agent | newAgent_(LogWriter logWriter, int loginTimeout, String serverName, int portNumber) | abstract protected CallableStatement | newCallableStatement_(String sql, int type, int concurrency, int holdability) | abstract protected DatabaseMetaData | newDatabaseMetaData_() | abstract protected PreparedStatement | newPositionedUpdatePreparedStatement_(String sql, Section section) | abstract protected PreparedStatement | newPreparedStatement_(String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames) | abstract public SectionManager | newSectionManager(String collection, Agent agent, String databaseName) | abstract protected Statement | newStatement_(int type, int concurrency, int holdability) | public synchronized java.sql.CallableStatement | prepareCall(String sql) | public synchronized java.sql.CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency) | public synchronized java.sql.CallableStatement | prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | synchronized PreparedStatement | prepareDynamicCatalogQuery(String sql) | public synchronized CallableStatement | prepareMessageProc(String sql) | public synchronized PreparedStatement | preparePositionedUpdateStatement(String sql, Section querySection) | public synchronized java.sql.PreparedStatement | prepareStatement(String sql) | public synchronized java.sql.PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency) | public synchronized java.sql.PreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | public java.sql.PreparedStatement | prepareStatement(String sql, int autoGeneratedKeys) | public java.sql.PreparedStatement | prepareStatement(String sql, int columnIndexes) | public java.sql.PreparedStatement | prepareStatement(String sql, String columnNames) | PreparedStatement | prepareStatementX(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, String[] columnNames) | void | readAutoCommit() | public void | readCommit() | abstract public void | readCommitSubstitute_() | abstract public void | readLocalCommit_() | abstract public void | readLocalRollback_() | abstract public void | readLocalXACommit_() | abstract public void | readLocalXARollback_() | abstract public void | readLocalXAStart_() | public void | readRollback() | public void | readTransactionStart() | abstract protected void | readXACommit_() | abstract protected void | readXARollback_() | public synchronized void | releaseSavepoint(java.sql.Savepoint savepoint) | public synchronized void | reset(LogWriter logWriter, String user, String password, ClientBaseDataSource ds, boolean recomputeFromDataSource) | public synchronized void | reset(LogWriter logWriter, ClientBaseDataSource ds, boolean recomputeFromDataSource) | abstract protected void | resetCallableStatement_(CallableStatement cs, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) | protected void | resetConnection(LogWriter logWriter, String user, ClientBaseDataSource ds, boolean recomputeFromDataSource) | protected void | resetConnection(LogWriter logWriter, String databaseName, java.util.Properties properties) | protected void | resetPrepareCall(CallableStatement cs) | protected void | resetPrepareStatement(PreparedStatement ps) | abstract protected void | resetPreparedStatement_(PreparedStatement ps, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, String[] columnNames) | protected void | resetStatement(Statement s) | abstract protected void | resetStatement_(Statement statement, int type, int concurrency, int holdability) | abstract protected void | reset_(LogWriter logWriter, String user, String password, ClientBaseDataSource ds, boolean recomputerFromDataSource) | abstract protected void | reset_(LogWriter logWriter, ClientBaseDataSource ds, boolean recomputerFromDataSource) | public synchronized void | rollback() | public synchronized void | rollback(java.sql.Savepoint savepoint) | public synchronized void | setAutoCommit(boolean autoCommit) | public synchronized void | setCatalog(String catalog) | public synchronized void | setHoldability(int holdability) | public void | setInUnitOfWork(boolean inUnitOfWork) | public synchronized void | setReadOnly(boolean readOnly) | public synchronized java.sql.Savepoint | setSavepoint() | public synchronized java.sql.Savepoint | setSavepoint(String name) | public synchronized void | setTransactionIsolation(int level) | public synchronized void | setTypeMap(java.util.Map map) | public void | setXAState(int state) | public boolean | transactionInProgress() | public boolean | willAutoCommitGenerateFlow() | void | writeAutoCommit() | public void | writeCommit() | abstract public void | writeCommitSubstitute_() | abstract public void | writeLocalCommit_() | abstract public void | writeLocalRollback_() | abstract public void | writeLocalXACommit_() | abstract public void | writeLocalXARollback_() | abstract public void | writeLocalXAStart_() | public void | writeRollback() | public void | writeTransactionStart(Statement statement) | abstract protected void | writeXACommit_() | abstract protected void | writeXARollback_() | abstract protected void | writeXATransactionStart(Statement statement) |
XA_T0_NOT_ASSOCIATED | final public static int XA_T0_NOT_ASSOCIATED(Code) | | XA_T0_NOT_ASSOCIATED
This connection is not currently associated with an XA transaction
In this state commits will flow in autocommit mode.
|
XA_T1_ASSOCIATED | final public static int XA_T1_ASSOCIATED(Code) | | XA_T1_ASSOCIATED
In this state commits will not flow in autocommit mode.
|
autoCommit_ | public boolean autoCommit_(Code) | | |
availableForReuse_ | protected boolean availableForReuse_(Code) | | |
canUseCachedConnectBytes_ | public boolean canUseCachedConnectBytes_(Code) | | |
commBufferSize_ | public int commBufferSize_(Code) | | |
dncGeneratedSavepointId_ | public int dncGeneratedSavepointId_(Code) | | |
dncGeneratedSavepointNamePrefix__ | final public static String dncGeneratedSavepointNamePrefix__(Code) | | |
inUnitOfWork_ | protected boolean inUnitOfWork_(Code) | | |
isXAConnection_ | protected boolean isXAConnection_(Code) | | |
isolation_ | public int isolation_(Code) | | |
jdbcReadOnly_ | protected boolean jdbcReadOnly_(Code) | | |
loginTimeout_ | public int loginTimeout_(Code) | | |
open_ | protected boolean open_(Code) | | |
portNumber_ | public int portNumber_(Code) | | |
resetConnectionAtFirstSql_ | public boolean resetConnectionAtFirstSql_(Code) | | |
retrieveMessageText_ | public boolean retrieveMessageText_(Code) | | |
xaHostVersion_ | public int xaHostVersion_(Code) | | |
accumulate440WarningForMessageProcFailure | public void accumulate440WarningForMessageProcFailure(SqlWarning e)(Code) | | |
accumulate444WarningForMessageProcFailure | public void accumulate444WarningForMessageProcFailure(SqlWarning e)(Code) | | |
addSpecialRegisters | abstract public void addSpecialRegisters(String s)(Code) | | |
allowCloseInUOW_ | abstract protected boolean allowCloseInUOW_()(Code) | | |
checkAutoGeneratedKeysParameters | void checkAutoGeneratedKeysParameters(int autoGeneratedKeys, String[] columnNames) throws SqlException(Code) | | |
checkForClosedConnection | protected void checkForClosedConnection() throws SqlException(Code) | | |
checkForTransactionInProgress | void checkForTransactionInProgress() throws SqlException(Code) | | |
clearWarnings | public synchronized void clearWarnings() throws SQLException(Code) | | |
close | public synchronized void close() throws SQLException(Code) | | |
closeResources | public synchronized void closeResources() throws SQLException(Code) | | |
closeX | public synchronized void closeX() throws SQLException(Code) | | |
commit | public synchronized void commit() throws SQLException(Code) | | |
completeAbnormalUnitOfWork | public void completeAbnormalUnitOfWork()(Code) | | |
completeAbnormalUnitOfWork | public void completeAbnormalUnitOfWork(UnitOfWorkListener uwl)(Code) | | Rollback the UnitOfWorkListener specifically.
Parameters: uwl - The UnitOfWorkListener to be rolled back. |
completeChainBreakingDisconnect | public void completeChainBreakingDisconnect()(Code) | | |
completeLocalCommit | public void completeLocalCommit()(Code) | | |
completeLocalRollback | public void completeLocalRollback()(Code) | | |
completeReset | protected void completeReset(boolean isDeferredReset, boolean recomputeFromDataSource) throws SqlException(Code) | | |
completeSpecificRollback | public void completeSpecificRollback(UnitOfWorkListener uwl)(Code) | | Rollback the specific UnitOfWorkListener.
Parameters: uwl - The UnitOfWorkLitener to be rolled back |
completeSqlca | public void completeSqlca(Sqlca sqlca)(Code) | | |
completeTransactionStart | void completeTransactionStart()(Code) | | |
createStatement | public synchronized java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException(Code) | | |
createStatement | public synchronized java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code) | | |
doCloseStatementsOnClose_ | abstract protected boolean doCloseStatementsOnClose_()(Code) | | |
getAutoCommit | public boolean getAutoCommit() throws SQLException(Code) | | |
getCatalog | public String getCatalog() throws SQLException(Code) | | |
getHoldability | public int getHoldability() throws SQLException(Code) | | |
getServerVersion | public int getServerVersion()(Code) | | |
getTransactionIsolation | public int getTransactionIsolation() throws SQLException(Code) | | |
getXAState | public int getXAState()(Code) | | |
holdability | final int holdability()(Code) | | Return the holdabilty for the Connection. Matches the
embedded driver in the restriction that while in a
global (XA) transaction the holdability is CLOSE_CURSORS_AT_COMMIT.
Otherwise return the holdability set by the user.
|
isClosed | public boolean isClosed()(Code) | | |
isClosedX | public boolean isClosedX()(Code) | | |
isGlobalPending_ | abstract protected boolean isGlobalPending_()(Code) | | |
isPhysicalConnClosed | public boolean isPhysicalConnClosed()(Code) | | Return true if the physical connection is still open.
Might be logically closed but available for reuse.
true if physical connection still open |
isReadOnly | public boolean isReadOnly() throws SQLException(Code) | | |
isXAConnection | public boolean isXAConnection()(Code) | | |
markClosed | public void markClosed()(Code) | | |
markClosed_ | abstract protected void markClosed_()(Code) | | |
readCommitSubstitute_ | abstract public void readCommitSubstitute_() throws SqlException(Code) | | |
resetPreparedStatement_ | abstract protected void resetPreparedStatement_(PreparedStatement ps, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, String[] columnNames) throws SqlException(Code) | | |
resetStatement_ | abstract protected void resetStatement_(Statement statement, int type, int concurrency, int holdability) throws SqlException(Code) | | |
rollback | public synchronized void rollback() throws SQLException(Code) | | |
setAutoCommit | public synchronized void setAutoCommit(boolean autoCommit) throws SQLException(Code) | | |
setCatalog | public synchronized void setCatalog(String catalog) throws SQLException(Code) | | |
setHoldability | public synchronized void setHoldability(int holdability) throws SQLException(Code) | | |
setInUnitOfWork | public void setInUnitOfWork(boolean inUnitOfWork)(Code) | | |
setReadOnly | public synchronized void setReadOnly(boolean readOnly) throws SQLException(Code) | | |
setTransactionIsolation | public synchronized void setTransactionIsolation(int level) throws SQLException(Code) | | |
setXAState | public void setXAState(int state)(Code) | | |
transactionInProgress | public boolean transactionInProgress()(Code) | | |
writeCommitSubstitute_ | abstract public void writeCommitSubstitute_() throws SqlException(Code) | | |
writeLocalXARollback_ | abstract public void writeLocalXARollback_() throws SqlException(Code) | | |
|
|