Class MConnection
- java.lang.Object
-
- com.mckoi.database.jdbc.MConnection
-
- All Implemented Interfaces:
DatabaseCallBack,java.lang.AutoCloseable,java.sql.Connection,java.sql.Wrapper
- Direct Known Subclasses:
InternalJDBCHelper.InternalConnection
public class MConnection extends java.lang.Object implements java.sql.Connection, DatabaseCallBack
JDBC implementation of the connection object to a Mckoi database. The implementation specifics for how the connection talks with the database is left up to the implementation of DatabaseInterface.This object is thread safe. It may be accessed safely from concurrent threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classMConnection.TriggerDispatchThreadThe thread that handles all dispatching of trigger events.
-
Field Summary
Fields Modifier and Type Field Description private booleanauto_commitSet to true if the connection is in auto-commit mode.private booleancase_insensitive_identifiersThis is set to true if the MResultSet column lookup methods are case insensitive.private DatabaseInterfacedb_interfaceThe interface to the database.private java.sql.SQLWarninghead_warningSQL warnings for this connection.private booleanis_closedSet to true if the connection is closed.private java.lang.Objectlockprivate RowCacherow_cacheA cache of all rows retrieved from the server.private java.util.Hashtables_object_holdA mapping from a streamable object id to InputStream used to represent the object when being uploaded to the database engine.private longs_object_idAn unique id count given to streamable object being uploaded to the server.private booleanstrict_get_objectIf the ResultSet.getObject method should return the raw object type (eg.private java.util.Vectortrigger_listThe list of trigger listeners registered with the connection.private MConnection.TriggerDispatchThreadtrigger_threadA Thread that handles all dispatching of trigger events to the JDBC client.private java.lang.StringurlThe JDBC URL used to make this connection.private booleanverbose_column_namesIf the ResultSetMetaData.getColumnName method should return a succinct form of the column name as most JDBC implementations do, this should be set to false (the default).
-
Constructor Summary
Constructors Constructor Description MConnection(java.lang.String url, DatabaseInterface db_interface, int cache_size, int max_size)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort(java.util.concurrent.Executor executor)protected voidaddSQLWarning(java.sql.SQLWarning warning)Adds a new SQLWarning to the chain.(package private) voidaddTriggerListener(java.lang.String trigger_name, TriggerListener listener)Adds a TriggerListener that listens for all triggers events with the name given.voidclearWarnings()voidclose()voidcommit()java.sql.ArraycreateArrayOf(java.lang.String typeName, java.lang.Object[] elements)java.sql.BlobcreateBlob()java.sql.ClobcreateClob()java.sql.NClobcreateNClob()java.sql.SQLXMLcreateSQLXML()java.sql.StatementcreateStatement()java.sql.StatementcreateStatement(int resultSetType, int resultSetConcurrency)java.sql.StatementcreateStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)(package private) StreamableObjectcreateStreamableObject(java.io.InputStream x, int length, byte type)Creates a StreamableObject on the JDBC client side given an InputStream, and length and a type.java.sql.StructcreateStruct(java.lang.String typeName, java.lang.Object[] attributes)voiddatabaseEvent(int event_type, java.lang.String event_message)Called when the database has generated an event that this user is listening for.(package private) voiddisposeResult(int result_id)Disposes of the server-side resources associated with the result set with result_id.(package private) voidexecuteQueries(SQLQuery[] queries, MResultSet[] results)Sends the batch of SQLQuery objects to the database to be executed.(package private) voidexecuteQuery(SQLQuery sql, MResultSet result_set)Sends the SQL string to the database to be executed.booleangetAutoCommit()java.lang.StringgetCatalog()java.util.PropertiesgetClientInfo()java.lang.StringgetClientInfo(java.lang.String name)intgetHoldability()(package private) MckoiConnectiongetMckoiConnection()Returns this MConnection wrapped in a MckoiConnection object.java.sql.DatabaseMetaDatagetMetaData()intgetNetworkTimeout()protected RowCachegetRowCache()Returns the row Cache object for this connection.java.lang.StringgetSchema()intgetTransactionIsolation()java.util.MapgetTypeMap()(package private) java.lang.StringgetURL()Returns the url string used to make this connection.java.sql.SQLWarninggetWarnings()voidinternalClose()Closes this connection by calling the 'dispose' method in the database interface.booleanisCaseInsensitiveIdentifiers()Returns true if the database has case insensitive identifiers.booleanisClosed()booleanisReadOnly()booleanisStrictGetObject()Returns true if strict get object is enabled (default).booleanisValid(int timeout)booleanisWrapperFor(java.lang.Class iface)voidlogin(java.lang.String default_schema, java.lang.String username, java.lang.String password)Attempts to login to the database interface with the given default schema, username and password.(package private) voidlogin(java.util.Properties info, java.lang.String default_schema)Logs into the JDBC server running on a remote machine.java.lang.StringnativeSQL(java.lang.String sql)java.sql.CallableStatementprepareCall(java.lang.String sql)java.sql.CallableStatementprepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency)java.sql.CallableStatementprepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)java.sql.PreparedStatementprepareStatement(java.lang.String sql)java.sql.PreparedStatementprepareStatement(java.lang.String sql, int autoGeneratedKeys)java.sql.PreparedStatementprepareStatement(java.lang.String sql, int[] columnIndexes)java.sql.PreparedStatementprepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)java.sql.PreparedStatementprepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)java.sql.PreparedStatementprepareStatement(java.lang.String sql, java.lang.String[] columnNames)voidreleaseSavepoint(java.sql.Savepoint savepoint)(package private) voidremoveStreamableObject(StreamableObject s_object)Removes the StreamableObject from the hold on the JDBC client.(package private) voidremoveTriggerListener(java.lang.String trigger_name, TriggerListener listener)Removes the TriggerListener for the given trigger name.(package private) ResultPartrequestResultPart(int result_id, int start_row, int count_rows)Called by MResultSet to query a part of a result from the server.(package private) StreamableObjectPartrequestStreamableObjectPart(int result_id, long streamable_object_id, long offset, int len)Requests a part of a streamable object from the server.voidrollback()voidrollback(java.sql.Savepoint savepoint)voidsetAutoCommit(boolean autoCommit)voidsetCaseInsensitiveIdentifiers(boolean status)Toggles whether this connection is handling identifiers as case insensitive or not.voidsetCatalog(java.lang.String catalog)voidsetClientInfo(java.lang.String name, java.lang.String value)voidsetClientInfo(java.util.Properties properties)voidsetHoldability(int holdability)voidsetNetworkTimeout(java.util.concurrent.Executor executor, int timeout)voidsetReadOnly(boolean readOnly)java.sql.SavepointsetSavepoint()java.sql.SavepointsetSavepoint(java.lang.String name)voidsetSchema(java.lang.String schema)voidsetStrictGetObject(boolean status)Toggles strict get object.voidsetTransactionIsolation(int level)voidsetTypeMap(java.util.Map map)voidsetVerboseColumnNames(boolean status)Toggles verbose column names from ResultSetMetaData.java.lang.Objectunwrap(java.lang.Class iface)private voiduploadStreamableObjects(SQLQuery sql)Uploads any streamable objects found in an SQLQuery into the database.booleanverboseColumnNames()Returns true if ResultSetMetaData should return verbose column names.
-
-
-
Field Detail
-
row_cache
private RowCache row_cache
A cache of all rows retrieved from the server. This cuts down the number of requests to the server by caching rows that are accessed frequently. Note that cells are only cached within a ResultSet bounds. Two different ResultSet's will not share cells in the cache.
-
url
private java.lang.String url
The JDBC URL used to make this connection.
-
head_warning
private java.sql.SQLWarning head_warning
SQL warnings for this connection.
-
is_closed
private boolean is_closed
Set to true if the connection is closed.
-
auto_commit
private boolean auto_commit
Set to true if the connection is in auto-commit mode. (By default, auto_commit is enabled).
-
db_interface
private DatabaseInterface db_interface
The interface to the database.
-
trigger_list
private java.util.Vector trigger_list
The list of trigger listeners registered with the connection.
-
trigger_thread
private MConnection.TriggerDispatchThread trigger_thread
A Thread that handles all dispatching of trigger events to the JDBC client.
-
strict_get_object
private boolean strict_get_object
If the ResultSet.getObject method should return the raw object type (eg. BigDecimal for Integer, String for chars, etc) then this is set to false. If this is true (the default) the 'getObject' methods return the correct object types as specified by the JDBC specification.
-
verbose_column_names
private boolean verbose_column_names
If the ResultSetMetaData.getColumnName method should return a succinct form of the column name as most JDBC implementations do, this should be set to false (the default). If old style verbose column names should be returned for compatibility with older Mckoi applications, this is set to true.
-
case_insensitive_identifiers
private boolean case_insensitive_identifiers
This is set to true if the MResultSet column lookup methods are case insensitive. This should be set to true for any database that has case insensitive identifiers.
-
s_object_hold
private java.util.Hashtable s_object_hold
A mapping from a streamable object id to InputStream used to represent the object when being uploaded to the database engine.
-
s_object_id
private long s_object_id
An unique id count given to streamable object being uploaded to the server.
-
lock
private java.lang.Object lock
-
-
Constructor Detail
-
MConnection
public MConnection(java.lang.String url, DatabaseInterface db_interface, int cache_size, int max_size)Constructor.
-
-
Method Detail
-
setStrictGetObject
public void setStrictGetObject(boolean status)
Toggles strict get object.If the 'getObject' method should return the raw object type (eg. BigDecimal for Integer, String for chars, etc) then this is set to false. If this is true (the default) the 'getObject' methods return the correct object types as specified by the JDBC specification.
The default is true.
-
isStrictGetObject
public boolean isStrictGetObject()
Returns true if strict get object is enabled (default).
-
setVerboseColumnNames
public void setVerboseColumnNames(boolean status)
Toggles verbose column names from ResultSetMetaData.If this is set to true, getColumnName will return 'APP.Part.id' for a column name. If it is false getColumnName will return 'id'. This property is for compatibility with older Mckoi applications.
-
verboseColumnNames
public boolean verboseColumnNames()
Returns true if ResultSetMetaData should return verbose column names.
-
setCaseInsensitiveIdentifiers
public void setCaseInsensitiveIdentifiers(boolean status)
Toggles whether this connection is handling identifiers as case insensitive or not. If this is true then 'getString("app.id")' will match against 'APP.id', etc.
-
isCaseInsensitiveIdentifiers
public boolean isCaseInsensitiveIdentifiers()
Returns true if the database has case insensitive identifiers.
-
getRowCache
protected final RowCache getRowCache()
Returns the row Cache object for this connection.
-
addSQLWarning
protected final void addSQLWarning(java.sql.SQLWarning warning)
Adds a new SQLWarning to the chain.
-
internalClose
public final void internalClose() throws java.sql.SQLExceptionCloses this connection by calling the 'dispose' method in the database interface.- Throws:
java.sql.SQLException
-
getMckoiConnection
MckoiConnection getMckoiConnection()
Returns this MConnection wrapped in a MckoiConnection object.
-
login
public void login(java.lang.String default_schema, java.lang.String username, java.lang.String password) throws java.sql.SQLExceptionAttempts to login to the database interface with the given default schema, username and password. If the authentication fails an SQL exception is generated.- Throws:
java.sql.SQLException
-
getURL
java.lang.String getURL()
Returns the url string used to make this connection.
-
login
void login(java.util.Properties info, java.lang.String default_schema) throws java.sql.SQLExceptionLogs into the JDBC server running on a remote machine. Throws an exception if user authentication fails.- Throws:
java.sql.SQLException
-
uploadStreamableObjects
private void uploadStreamableObjects(SQLQuery sql) throws java.sql.SQLException
Uploads any streamable objects found in an SQLQuery into the database.- Throws:
java.sql.SQLException
-
executeQueries
void executeQueries(SQLQuery[] queries, MResultSet[] results) throws java.sql.SQLException
Sends the batch of SQLQuery objects to the database to be executed. The given array of MResultSet will be the consumer objects for the query results. If a query succeeds then we are guarenteed to know that size of the result set.This method blocks until all of the queries have been processed by the database.
- Throws:
java.sql.SQLException
-
executeQuery
void executeQuery(SQLQuery sql, MResultSet result_set) throws java.sql.SQLException
Sends the SQL string to the database to be executed. The given MResultSet is the consumer for the results from the database. We are guarenteed that if the query succeeds that we know the size of the result set and at least first first row of the set.This method will block until we have received the result header information.
- Throws:
java.sql.SQLException
-
requestResultPart
ResultPart requestResultPart(int result_id, int start_row, int count_rows) throws java.sql.SQLException
Called by MResultSet to query a part of a result from the server. Returns a List that represents the result from the server.- Throws:
java.sql.SQLException
-
requestStreamableObjectPart
StreamableObjectPart requestStreamableObjectPart(int result_id, long streamable_object_id, long offset, int len) throws java.sql.SQLException
Requests a part of a streamable object from the server.- Throws:
java.sql.SQLException
-
disposeResult
void disposeResult(int result_id) throws java.sql.SQLExceptionDisposes of the server-side resources associated with the result set with result_id. This should be called either before we start the download of a new result set, or when we have finished with the resources of a result set.- Throws:
java.sql.SQLException
-
addTriggerListener
void addTriggerListener(java.lang.String trigger_name, TriggerListener listener)Adds a TriggerListener that listens for all triggers events with the name given. Triggers are created with the 'CREATE TRIGGER' syntax.
-
removeTriggerListener
void removeTriggerListener(java.lang.String trigger_name, TriggerListener listener)Removes the TriggerListener for the given trigger name.
-
createStreamableObject
StreamableObject createStreamableObject(java.io.InputStream x, int length, byte type)
Creates a StreamableObject on the JDBC client side given an InputStream, and length and a type. When this method returns, a StreamableObject entry will be added to the hold.
-
removeStreamableObject
void removeStreamableObject(StreamableObject s_object)
Removes the StreamableObject from the hold on the JDBC client. This should be called when the MPreparedStatement closes.
-
databaseEvent
public void databaseEvent(int event_type, java.lang.String event_message)Description copied from interface:DatabaseCallBackCalled when the database has generated an event that this user is listening for.NOTE: The thread that calls back these events is always a volatile thread that may not block. It is especially important that no queries are executed when this calls back. To safely act on events, it is advisable to dispatch onto another thread such as the SwingEventDispatcher thread.
- Specified by:
databaseEventin interfaceDatabaseCallBack
-
createStatement
public java.sql.Statement createStatement() throws java.sql.SQLException- Specified by:
createStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql) throws java.sql.SQLException- Specified by:
prepareStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql) throws java.sql.SQLException- Specified by:
prepareCallin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
nativeSQL
public java.lang.String nativeSQL(java.lang.String sql) throws java.sql.SQLException- Specified by:
nativeSQLin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setAutoCommit
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException- Specified by:
setAutoCommitin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getAutoCommit
public boolean getAutoCommit() throws java.sql.SQLException- Specified by:
getAutoCommitin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
commit
public void commit() throws java.sql.SQLException- Specified by:
commitin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
rollback
public void rollback() throws java.sql.SQLException- Specified by:
rollbackin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
close
public void close() throws java.sql.SQLException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
isClosed
public boolean isClosed() throws java.sql.SQLException- Specified by:
isClosedin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getMetaData
public java.sql.DatabaseMetaData getMetaData() throws java.sql.SQLException- Specified by:
getMetaDatain interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setReadOnly
public void setReadOnly(boolean readOnly) throws java.sql.SQLException- Specified by:
setReadOnlyin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
isReadOnly
public boolean isReadOnly() throws java.sql.SQLException- Specified by:
isReadOnlyin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setCatalog
public void setCatalog(java.lang.String catalog) throws java.sql.SQLException- Specified by:
setCatalogin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getCatalog
public java.lang.String getCatalog() throws java.sql.SQLException- Specified by:
getCatalogin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setTransactionIsolation
public void setTransactionIsolation(int level) throws java.sql.SQLException- Specified by:
setTransactionIsolationin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getTransactionIsolation
public int getTransactionIsolation() throws java.sql.SQLException- Specified by:
getTransactionIsolationin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getWarnings
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException- Specified by:
getWarningsin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
clearWarnings
public void clearWarnings() throws java.sql.SQLException- Specified by:
clearWarningsin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createStatement
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency) throws java.sql.SQLException- Specified by:
createStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException- Specified by:
prepareStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException- Specified by:
prepareCallin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getTypeMap
public java.util.Map getTypeMap() throws java.sql.SQLException- Specified by:
getTypeMapin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setTypeMap
public void setTypeMap(java.util.Map map) throws java.sql.SQLException- Specified by:
setTypeMapin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setHoldability
public void setHoldability(int holdability) throws java.sql.SQLException- Specified by:
setHoldabilityin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getHoldability
public int getHoldability() throws java.sql.SQLException- Specified by:
getHoldabilityin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setSavepoint
public java.sql.Savepoint setSavepoint() throws java.sql.SQLException- Specified by:
setSavepointin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setSavepoint
public java.sql.Savepoint setSavepoint(java.lang.String name) throws java.sql.SQLException- Specified by:
setSavepointin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
rollback
public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException- Specified by:
rollbackin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
releaseSavepoint
public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException- Specified by:
releaseSavepointin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createStatement
public java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException- Specified by:
createStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException- Specified by:
prepareStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareCall
public java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws java.sql.SQLException- Specified by:
prepareCallin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys) throws java.sql.SQLException- Specified by:
prepareStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes) throws java.sql.SQLException- Specified by:
prepareStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
prepareStatement
public java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames) throws java.sql.SQLException- Specified by:
prepareStatementin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createClob
public java.sql.Clob createClob() throws java.sql.SQLException- Specified by:
createClobin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createBlob
public java.sql.Blob createBlob() throws java.sql.SQLException- Specified by:
createBlobin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createNClob
public java.sql.NClob createNClob() throws java.sql.SQLException- Specified by:
createNClobin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createSQLXML
public java.sql.SQLXML createSQLXML() throws java.sql.SQLException- Specified by:
createSQLXMLin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
isValid
public boolean isValid(int timeout) throws java.sql.SQLException- Specified by:
isValidin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setClientInfo
public void setClientInfo(java.lang.String name, java.lang.String value) throws java.sql.SQLClientInfoException- Specified by:
setClientInfoin interfacejava.sql.Connection- Throws:
java.sql.SQLClientInfoException
-
setClientInfo
public void setClientInfo(java.util.Properties properties) throws java.sql.SQLClientInfoException- Specified by:
setClientInfoin interfacejava.sql.Connection- Throws:
java.sql.SQLClientInfoException
-
getClientInfo
public java.lang.String getClientInfo(java.lang.String name) throws java.sql.SQLException- Specified by:
getClientInfoin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getClientInfo
public java.util.Properties getClientInfo() throws java.sql.SQLException- Specified by:
getClientInfoin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createArrayOf
public java.sql.Array createArrayOf(java.lang.String typeName, java.lang.Object[] elements) throws java.sql.SQLException- Specified by:
createArrayOfin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
createStruct
public java.sql.Struct createStruct(java.lang.String typeName, java.lang.Object[] attributes) throws java.sql.SQLException- Specified by:
createStructin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
unwrap
public java.lang.Object unwrap(java.lang.Class iface) throws java.sql.SQLException- Specified by:
unwrapin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class iface) throws java.sql.SQLException- Specified by:
isWrapperForin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
getNetworkTimeout
public int getNetworkTimeout() throws java.sql.SQLException- Specified by:
getNetworkTimeoutin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setNetworkTimeout
public void setNetworkTimeout(java.util.concurrent.Executor executor, int timeout) throws java.sql.SQLException- Specified by:
setNetworkTimeoutin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
abort
public void abort(java.util.concurrent.Executor executor) throws java.sql.SQLException- Specified by:
abortin interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
getSchema
public java.lang.String getSchema() throws java.sql.SQLException- Specified by:
getSchemain interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
setSchema
public void setSchema(java.lang.String schema) throws java.sql.SQLException- Specified by:
setSchemain interfacejava.sql.Connection- Throws:
java.sql.SQLException
-
-