| java.lang.Object org.apache.derby.impl.jdbc.EmbedConnection org.apache.derby.impl.jdbc.EmbedConnection30
All known Subclasses: org.apache.derby.impl.jdbc.EmbedConnection40,
EmbedConnection30 | public class EmbedConnection30 extends EmbedConnection (Code) | | This class extends the EmbedConnection20 class in order to support new
methods and classes that come with JDBC 3.0.
Supports
- JSR169 - Subsetting only removes getTypeMap and setTypeMap, which references
java.util.Map which exists in Foundation and ee.miniumum. Thus the methods can
safely be left in the implementation for JSR169.
- JDBC 3.0 - Separate from JDBC 2.0 implementation as JDBC 3.0 introduces
a new class java.sql.Savepoint, which is referenced by java.sql.Connection.
See Also: org.apache.derby.impl.jdbc.EmbedConnection |
Method Summary | |
public void | releaseSavepoint(Savepoint savepoint) Removes the given Savepoint object from the current transaction. | public void | rollback(Savepoint savepoint) Undoes all changes made after the given Savepoint object was set. | public Savepoint | setSavepoint() Creates an unnamed savepoint in the current transaction and
returns the new Savepoint object that represents it. | public Savepoint | setSavepoint(String name) Creates a savepoint with the given name in the current transaction and
returns the new Savepoint object that represents it. |
releaseSavepoint | public void releaseSavepoint(Savepoint savepoint) throws SQLException(Code) | | Removes the given Savepoint object from the current transaction.
Any reference to the savepoint after it has been removed will cause
an SQLException to be thrown
Parameters: savepoint - The Savepoint object to be removed exception: SQLException - if a database access error occurs or thegiven Savepoint object is not a valid savepoint in the current transaction |
rollback | public void rollback(Savepoint savepoint) throws SQLException(Code) | | Undoes all changes made after the given Savepoint object was set.
This method should be used only when auto-commit has been disabled.
Parameters: savepoint - The Savepoint object to rollback to exception: SQLException - if a database access error occurs,the Savepoint object is no longer valid, or this Connectionobject is currently in auto-commit mode |
setSavepoint | public Savepoint setSavepoint() throws SQLException(Code) | | Creates an unnamed savepoint in the current transaction and
returns the new Savepoint object that represents it.
The new Savepoint object exception: SQLException - if a database access error occurs orthis Connection object is currently in auto-commit mode |
setSavepoint | public Savepoint setSavepoint(String name) throws SQLException(Code) | | Creates a savepoint with the given name in the current transaction and
returns the new Savepoint object that represents it.
Parameters: name - A String containing the name of the savepoint The new Savepoint object exception: SQLException - if a database access error occurs orthis Connection object is currently in auto-commit mode |
Methods inherited from org.apache.derby.impl.jdbc.EmbedConnection | final public synchronized void addWarning(SQLWarning newWarning)(Code)(Java Doc) final protected void checkIfClosed() throws SQLException(Code)(Java Doc) final public synchronized void clearWarnings() throws SQLException(Code)(Java Doc) public void close() throws SQLException(Code)(Java Doc) public void commit() throws SQLException(Code)(Java Doc) protected void commitIfAutoCommit() throws SQLException(Code)(Java Doc) protected void commitIfNeeded() throws SQLException(Code)(Java Doc) final public Statement createStatement() throws SQLException(Code)(Java Doc) final public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) final public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)(Java Doc) protected void finalize() throws Throwable(Code)(Java Doc) final public java.sql.Connection getApplicationConnection()(Code)(Java Doc) public boolean getAutoCommit() throws SQLException(Code)(Java Doc) public String getCatalog() throws SQLException(Code)(Java Doc) final protected Object getConnectionSynchronization()(Code)(Java Doc) final public ContextManager getContextManager()(Code)(Java Doc) public String getDBName()(Code)(Java Doc) protected Database getDatabase()(Code)(Java Doc) public int getEngineType()(Code)(Java Doc) final public int getHoldability() throws SQLException(Code)(Java Doc) final public LanguageConnectionContext getLanguageConnection()(Code)(Java Doc) final public InternalDriver getLocalDriver()(Code)(Java Doc) public DatabaseMetaData getMetaData() throws SQLException(Code)(Java Doc) public int getPrepareIsolation()(Code)(Java Doc) final int getResultSetOrderId()(Code)(Java Doc) final protected TransactionResourceImpl getTR()(Code)(Java Doc) final public int getTransactionIsolation() throws SQLException(Code)(Java Doc) public java.util.Map getTypeMap() throws SQLException(Code)(Java Doc) final public synchronized SQLWarning getWarnings() throws SQLException(Code)(Java Doc) SQLException handleException(Throwable thrownException) throws SQLException(Code)(Java Doc) final SQLException handleException(Throwable thrownException, boolean rollbackOnAutoCommit) throws SQLException(Code)(Java Doc) final public boolean isClosed()(Code)(Java Doc) final public boolean isReadOnly() throws SQLException(Code)(Java Doc) public String nativeSQL(String sql) throws SQLException(Code)(Java Doc) protected void needCommit()(Code)(Java Doc) protected SQLException newSQLException(String messageId)(Code)(Java Doc) protected SQLException newSQLException(String messageId, Object arg1)(Code)(Java Doc) protected SQLException newSQLException(String messageId, Object arg1, Object arg2)(Code)(Java Doc) final public CallableStatement prepareCall(String sql) throws SQLException(Code)(Java Doc) final public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) final public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)(Java Doc) PreparedStatement prepareMetaDataStatement(String sql) throws SQLException(Code)(Java Doc) final public PreparedStatement prepareStatement(String sql) throws SQLException(Code)(Java Doc) final public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException(Code)(Java Doc) final public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException(Code)(Java Doc) final public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException(Code)(Java Doc) final public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException(Code)(Java Doc) final public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException(Code)(Java Doc) public void resetFromPool() throws SQLException(Code)(Java Doc) final protected void restoreContextStack() throws SQLException(Code)(Java Doc) public void rollback() throws SQLException(Code)(Java Doc) final public void setApplicationConnection(java.sql.Connection applicationConnection)(Code)(Java Doc) public void setAutoCommit(boolean autoCommit) throws SQLException(Code)(Java Doc) public void setCatalog(String catalog) throws SQLException(Code)(Java Doc) public void setDrdaID(String drdaID)(Code)(Java Doc) final public void setHoldability(int holdability) throws SQLException(Code)(Java Doc) final public void setInactive()(Code)(Java Doc) public void setPrepareIsolation(int level) throws SQLException(Code)(Java Doc) final public void setReadOnly(boolean readOnly) throws SQLException(Code)(Java Doc) public void setTransactionIsolation(int level) throws SQLException(Code)(Java Doc) final public void setTypeMap(java.util.Map map) throws SQLException(Code)(Java Doc) final protected void setupContextStack() throws SQLException(Code)(Java Doc) public String toString()(Code)(Java Doc) final public boolean transactionIsIdle()(Code)(Java Doc) final public void xa_commit(boolean onePhase) throws SQLException(Code)(Java Doc) final public int xa_prepare() throws SQLException(Code)(Java Doc) final public void xa_rollback() throws SQLException(Code)(Java Doc)
|
|
|