public abstract class DistributedConnection
extends java.lang.Object
implements java.sql.Connection
Constructor and Description |
---|
DistributedConnection(java.util.List<java.sql.Connection> connections) |
Modifier and Type | Method and Description |
---|---|
void |
clearWarnings() |
void |
close() |
void |
commit() |
boolean |
contains(java.sql.Connection c) |
java.sql.Statement |
createStatement() |
java.sql.Statement |
createStatement(int arg0,
int arg1) |
java.sql.Statement |
createStatement(int arg0,
int arg1,
int arg2) |
protected abstract void |
enforceAbstract()
Marker to enforce that subclasses of this class are abstract.
|
boolean |
getAutoCommit() |
java.lang.String |
getCatalog() |
int |
getHoldability() |
java.sql.DatabaseMetaData |
getMetaData() |
int |
getTransactionIsolation() |
java.util.Map<java.lang.String,java.lang.Class<?>> |
getTypeMap() |
java.sql.SQLWarning |
getWarnings() |
boolean |
isClosed() |
boolean |
isReadOnly() |
java.lang.String |
nativeSQL(java.lang.String arg0) |
static DistributedConnection |
newInstance(java.util.List<java.sql.Connection> conns)
Constructor for the concrete implementation of this abstract class.
|
java.sql.CallableStatement |
prepareCall(java.lang.String arg0) |
java.sql.CallableStatement |
prepareCall(java.lang.String arg0,
int arg1,
int arg2) |
java.sql.CallableStatement |
prepareCall(java.lang.String arg0,
int arg1,
int arg2,
int arg3) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String arg0) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String arg0,
int arg1) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String arg0,
int[] arg1) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String arg0,
int arg1,
int arg2) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String arg0,
int arg1,
int arg2,
int arg3) |
java.sql.PreparedStatement |
prepareStatement(java.lang.String arg0,
java.lang.String[] arg1) |
void |
releaseSavepoint(java.sql.Savepoint arg0) |
void |
rollback() |
void |
rollback(java.sql.Savepoint arg0) |
void |
setAutoCommit(boolean arg0) |
void |
setCatalog(java.lang.String arg0) |
void |
setHoldability(int arg0) |
void |
setReadOnly(boolean arg0) |
java.sql.Savepoint |
setSavepoint() |
java.sql.Savepoint |
setSavepoint(java.lang.String arg0) |
void |
setTransactionIsolation(int arg0) |
void |
setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> arg0) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DistributedConnection(java.util.List<java.sql.Connection> connections)
public static DistributedConnection newInstance(java.util.List<java.sql.Connection> conns)
protected abstract void enforceAbstract()
public boolean contains(java.sql.Connection c)
public void clearWarnings() throws java.sql.SQLException
clearWarnings
in interface java.sql.Connection
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface java.sql.Connection
java.sql.SQLException
public void commit() throws java.sql.SQLException
commit
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Statement createStatement() throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Statement createStatement(int arg0, int arg1) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Statement createStatement(int arg0, int arg1, int arg2) throws java.sql.SQLException
createStatement
in interface java.sql.Connection
java.sql.SQLException
public boolean getAutoCommit() throws java.sql.SQLException
getAutoCommit
in interface java.sql.Connection
java.sql.SQLException
public java.lang.String getCatalog() throws java.sql.SQLException
getCatalog
in interface java.sql.Connection
java.sql.SQLException
public int getHoldability() throws java.sql.SQLException
getHoldability
in interface java.sql.Connection
java.sql.SQLException
public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.Connection
java.sql.SQLException
public int getTransactionIsolation() throws java.sql.SQLException
getTransactionIsolation
in interface java.sql.Connection
java.sql.SQLException
public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap() throws java.sql.SQLException
getTypeMap
in interface java.sql.Connection
java.sql.SQLException
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
getWarnings
in interface java.sql.Connection
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.Connection
java.sql.SQLException
public boolean isReadOnly() throws java.sql.SQLException
isReadOnly
in interface java.sql.Connection
java.sql.SQLException
public java.lang.String nativeSQL(java.lang.String arg0) throws java.sql.SQLException
nativeSQL
in interface java.sql.Connection
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String arg0) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String arg0, int arg1, int arg2) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
public java.sql.CallableStatement prepareCall(java.lang.String arg0, int arg1, int arg2, int arg3) throws java.sql.SQLException
prepareCall
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String arg0) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String arg0, int arg1) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String arg0, int[] arg1) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String arg0, java.lang.String[] arg1) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String arg0, int arg1, int arg2) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public java.sql.PreparedStatement prepareStatement(java.lang.String arg0, int arg1, int arg2, int arg3) throws java.sql.SQLException
prepareStatement
in interface java.sql.Connection
java.sql.SQLException
public void releaseSavepoint(java.sql.Savepoint arg0) throws java.sql.SQLException
releaseSavepoint
in interface java.sql.Connection
java.sql.SQLException
public void rollback() throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
public void rollback(java.sql.Savepoint arg0) throws java.sql.SQLException
rollback
in interface java.sql.Connection
java.sql.SQLException
public void setAutoCommit(boolean arg0) throws java.sql.SQLException
setAutoCommit
in interface java.sql.Connection
java.sql.SQLException
public void setCatalog(java.lang.String arg0) throws java.sql.SQLException
setCatalog
in interface java.sql.Connection
java.sql.SQLException
public void setHoldability(int arg0) throws java.sql.SQLException
setHoldability
in interface java.sql.Connection
java.sql.SQLException
public void setReadOnly(boolean arg0) throws java.sql.SQLException
setReadOnly
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
public java.sql.Savepoint setSavepoint(java.lang.String arg0) throws java.sql.SQLException
setSavepoint
in interface java.sql.Connection
java.sql.SQLException
public void setTransactionIsolation(int arg0) throws java.sql.SQLException
setTransactionIsolation
in interface java.sql.Connection
java.sql.SQLException
public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> arg0) throws java.sql.SQLException
setTypeMap
in interface java.sql.Connection
java.sql.SQLException