com.sas.net.sharenet
Class ShareNetConnection

com.sas.net.sharenet.ShareNetConnection
All Implemented Interfaces:
java.lang.AutoCloseable, java.sql.Connection, java.sql.Wrapper

@SASScope(value="ALL")
public class ShareNetConnection
implements java.sql.Connection

This class establishes a session with a SAS/SHARE server.

See Also:
DriverManager.getConnection(java.lang.String, java.util.Properties), Statement, ResultSet, DatabaseMetaData

Field Summary
protected  com.sas.net.sharenet.Wqecon con
           
protected  com.sas.net.sharenet.Defdestroy defdes
           
protected  com.sas.net.sharenet.Tcpmsg msg
           
protected  int resultSetConcurrency
           
protected  int resultSetType
           
protected  int sharenetType
           
protected  java.lang.String version_msg
           
 java.sql.SQLWarning warnings
           
protected  com.sas.net.sharenet.Xherscon xher1
           
 
Constructor Summary
ShareNetConnection(java.lang.String host, int port, java.util.Properties info, com.sas.net.sharenet.Wqecon con)
          Constructs a ShareNetConnection object.
ShareNetConnection(java.lang.String url, java.util.Properties info)
          Constructs a ShareNetConnection object.
 
Method Summary
 void abort(java.util.concurrent.Executor executor)
          This method is not supported and will always throw a SQLException.
 void clearWarnings()
          
 void close()
          Closes all the ShareNetStatement and ShareNetPreparedStatement objects that are associated with this object and closes the connection to the server.
 void commit()
          
protected  void connect(java.lang.String myhost, int port)
          Connect to the server.
 java.sql.Array createArrayOf(java.lang.String typeName, java.lang.Object[] elements)
          This method is not supported and will always throw a SQLException.
 java.sql.Blob createBlob()
          This method is not supported and will always throw a SQLException.
 java.sql.Clob createClob()
          This method is not supported and will always throw a SQLException.
 java.sql.NClob createNClob()
          This method is not supported and will always throw a SQLException.
 java.sql.SQLXML createSQLXML()
          This method is not supported and will always throw a SQLException.
 java.sql.Statement createStatement()
          
 java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency)
          JDBC 2.0 Creates a Statement object by allowing the default result set type and result set concurrency type to be overridden.
 java.sql.Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          This method is not supported and will always throw a SQLException.
 java.sql.Struct createStruct(java.lang.String typeName, java.lang.Object[] attributes)
          This method is not supported and will always throw a SQLException.
protected  void deleteStatement(java.lang.Object statement)
          Protected method which deletes statements associated with this object.
protected  int execute(java.lang.String command)
          Execute a command on the remote server.
protected  void finalize()
          Protected method which cleans up state associated with this object.
protected static java.lang.String formatMsg(int acc, com.sas.net.sharenet.Ans1 ans1, com.sas.net.sharenet.Rcmsg rcmsg)
          Format the response from the server.
 boolean getAutoCommit()
          SAS software does not support transactions.
 java.lang.String getCatalog()
          SAS software does not support SQL catalogs.
 java.util.Properties getClientInfo()
          The SAS/SHARE JDBC driver does not have any client info properties.
 java.lang.String getClientInfo(java.lang.String name)
          The SAS/SHARE JDBC driver does not have any client info properties.
 int getHoldability()
          This method is not supported and will always throw a SQLException.
 java.sql.DatabaseMetaData getMetaData()
          Creates a ShareNetDatabaseMetaData object.
 int getNetworkTimeout()
          
protected  boolean getRemarks()
          Protected method
 java.lang.String getSchema()
          This method is not supported and will always throw a SQLException.
 int getTransactionIsolation()
          SAS software does not support transactions.
 java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
          This method is not supported and will always throw a SQLException.
protected  java.lang.String getUrl()
          Protected method
protected  java.lang.String getUser()
          Protected method
 java.sql.SQLWarning getWarnings()
          
 boolean isClosed()
          
 boolean isReadOnly()
          SAS software does not support read-only connections.
 boolean isValid(int timeout)
          This method is not supported and will always throw a SQLException.
 boolean isWrapperFor(java.lang.Class<?> iface)
          
 java.lang.String nativeSQL(java.lang.String sql)
          
 java.sql.CallableStatement prepareCall(java.lang.String sql)
          
 java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency)
          JDBC 2.0 Creates a CallableStatement object by allowing the default result set type and result set concurrency type to be overridden.
 java.sql.CallableStatement prepareCall(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          This method is not supported and will always throw a SQLException.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql)
          
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int autoGeneratedKeys)
          This method is not supported and will always throw a SQLException.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int[] columnIndexes)
          This method is not supported and will always throw a SQLException.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency)
          JDBC 2.0 Creates a PreparedStatement object by allowing the default result set type and result set concurrency type to be overridden.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          This method is not supported and will always throw a SQLException.
 java.sql.PreparedStatement prepareStatement(java.lang.String sql, java.lang.String[] columnNames)
          This method is not supported and will always throw a SQLException.
 void releaseSavepoint(java.sql.Savepoint savepoint)
          This method is not supported and will always throw a SQLException.
 void rollback()
          SAS software does not support transactions.
 void rollback(java.sql.Savepoint savepoint)
          This method is not supported and will always throw a SQLException.
 void setAutoCommit(boolean autoCommit)
          SAS software does not support transactions.
 void setCatalog(java.lang.String catalog)
          SAS software does not support SQL catalogs.
 void setClientInfo(java.util.Properties properties)
          The SAS/SHARE JDBC driver does not have any client info properties.
 void setClientInfo(java.lang.String name, java.lang.String value)
          The SAS/SHARE JDBC driver does not have any client info properties.
 void setHoldability(int holdability)
          This method is not supported and will always throw a SQLException.
 void setNetworkTimeout(java.util.concurrent.Executor executor, int milliseconds)
          
 void setReadOnly(boolean readOnly)
          SAS software does not support read-only connections.
 java.sql.Savepoint setSavepoint()
          This method is not supported and will always throw a SQLException.
 java.sql.Savepoint setSavepoint(java.lang.String name)
          This method is not supported and will always throw a SQLException.
 void setSchema(java.lang.String schema)
          This method is not supported and will always throw a SQLException.
 void setTransactionIsolation(int level)
          SAS software does not support transactions.
 void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
          This method is not supported and will always throw a SQLException.
<T> T
unwrap(java.lang.Class<T> iface)
          
 

Field Detail

warnings

public java.sql.SQLWarning warnings

con

protected com.sas.net.sharenet.Wqecon con

xher1

protected com.sas.net.sharenet.Xherscon xher1

defdes

protected com.sas.net.sharenet.Defdestroy defdes

msg

protected com.sas.net.sharenet.Tcpmsg msg

sharenetType

protected int sharenetType

version_msg

protected java.lang.String version_msg

resultSetType

protected int resultSetType

resultSetConcurrency

protected int resultSetConcurrency
Constructor Detail

ShareNetConnection

public ShareNetConnection(java.lang.String url,
                          java.util.Properties info)
                   throws java.sql.SQLException
Constructs a ShareNetConnection object.

Parameters:
url - initial input url
info - properties needed to obtain a connection
Throws:
java.sql.SQLException - This exception is thrown if a ShareNetException is detected.

ShareNetConnection

public ShareNetConnection(java.lang.String host,
                          int port,
                          java.util.Properties info,
                          com.sas.net.sharenet.Wqecon con)
                   throws java.sql.SQLException
Constructs a ShareNetConnection object.

Throws:
java.sql.SQLException - This exception is thrown if a ShareNetException is detected.
Method Detail

createStatement

public java.sql.Statement createStatement()
                                   throws java.sql.SQLException

Specified by:
createStatement in interface java.sql.Connection
Throws:
java.sql.SQLException

prepareStatement

public java.sql.PreparedStatement prepareStatement(java.lang.String sql)
                                            throws java.sql.SQLException

Specified by:
prepareStatement in interface java.sql.Connection
Throws:
java.sql.SQLException

prepareCall

public java.sql.CallableStatement prepareCall(java.lang.String sql)
                                       throws java.sql.SQLException

Specified by:
prepareCall in interface java.sql.Connection
Throws:
java.sql.SQLException

nativeSQL

public java.lang.String nativeSQL(java.lang.String sql)
                           throws java.sql.SQLException

Specified by:
nativeSQL in interface java.sql.Connection
Throws:
java.sql.SQLException

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws java.sql.SQLException
SAS software does not support transactions. All statements are committed individually. The current auto-commit state is always True.

Specified by:
setAutoCommit in interface java.sql.Connection
Throws:
java.sql.SQLException

getAutoCommit

public boolean getAutoCommit()
                      throws java.sql.SQLException
SAS software does not support transactions. All statements are committed individually. The current auto-commit state is always True.

Specified by:
getAutoCommit in interface java.sql.Connection
Throws:
java.sql.SQLException

commit

public void commit()
            throws java.sql.SQLException

Specified by:
commit in interface java.sql.Connection
Throws:
java.sql.SQLException

rollback

public void rollback()
              throws java.sql.SQLException
SAS software does not support transactions. This method is not supported.

Specified by:
rollback in interface java.sql.Connection
Throws:
java.sql.SQLException - This exception is always thrown.

close

public void close()
           throws java.sql.SQLException
Closes all the ShareNetStatement and ShareNetPreparedStatement objects that are associated with this object and closes the connection to the server.

Specified by:
close in interface java.lang.AutoCloseable
Specified by:
close in interface java.sql.Connection
Throws:
java.sql.SQLException - This exception is thrown if a ShareNetException is detected.

isClosed

public boolean isClosed()
                 throws java.sql.SQLException

Specified by:
isClosed in interface java.sql.Connection
Throws:
java.sql.SQLException

getMetaData

public java.sql.DatabaseMetaData getMetaData()
                                      throws java.sql.SQLException
Creates a ShareNetDatabaseMetaData object. This class will only create DatabaseMetaData objects for connections to SQLVIEW databases. DatabaseMetaData objects will not be created for other databases such as Oracle databases.

Specified by:
getMetaData in interface java.sql.Connection
Returns:
A ShareNetDatabaseMetaData object.
Throws:
java.sql.SQLException - This exception is thrown if a ShareNetDatabaseMetaData object cannot be created.

setReadOnly

public void setReadOnly(boolean readOnly)
                 throws java.sql.SQLException
SAS software does not support read-only connections. The input value is ignored.

Specified by:
setReadOnly in interface java.sql.Connection
Parameters:
readOnly - This parameter is ignored.
Throws:
java.sql.SQLException - This exception is required by the interface, but it is never thrown.

isReadOnly

public boolean isReadOnly()
                   throws java.sql.SQLException
SAS software does not support read-only connections. The readOnly value is always False.

Specified by:
isReadOnly in interface java.sql.Connection
Returns:
False.
Throws:
java.sql.SQLException - This exception is required by the interface, but it is never thrown.

setCatalog

public void setCatalog(java.lang.String catalog)
                throws java.sql.SQLException
SAS software does not support SQL catalogs. The input parameter is ignored.

Specified by:
setCatalog in interface java.sql.Connection
Throws:
java.sql.SQLException

getCatalog

public final java.lang.String getCatalog()
                                  throws java.sql.SQLException
SAS software does not support SQL catalogs. This method always returns a NULL.

Specified by:
getCatalog in interface java.sql.Connection
Throws:
java.sql.SQLException

setTransactionIsolation

public void setTransactionIsolation(int level)
                             throws java.sql.SQLException
SAS software does not support transactions. The only valid input value is java.sql.Connection.TRANSACTION_NONE.

Specified by:
setTransactionIsolation in interface java.sql.Connection
Throws:
java.sql.SQLException

getTransactionIsolation

public int getTransactionIsolation()
                            throws java.sql.SQLException
SAS software does not support transactions. This method always returns TRANSACTION_NONE

Specified by:
getTransactionIsolation in interface java.sql.Connection
Throws:
java.sql.SQLException

getWarnings

public java.sql.SQLWarning getWarnings()
                                throws java.sql.SQLException

Specified by:
getWarnings in interface java.sql.Connection
Throws:
java.sql.SQLException

clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException

Specified by:
clearWarnings in interface java.sql.Connection
Throws:
java.sql.SQLException

createStatement

public java.sql.Statement createStatement(int resultSetType,
                                          int resultSetConcurrency)
                                   throws java.sql.SQLException
JDBC 2.0 Creates a Statement object by allowing the default result set type and result set concurrency type to be overridden. Currently, you cannot override the default result set types and concurrency types. We support only TYPE_FORWARD_ONLY result type and CONCUR_READ_ONLY result set concurrency type.

Specified by:
createStatement in interface java.sql.Connection
Parameters:
resultSetType - The result set type TYPE_FORWARD_ONLY.
resultSetConcurrency - The concurrency type CONCUR_READ_ONLY.
Returns:
A new Statement object.
Throws:
java.sql.SQLException - This exception is thrown if a Statement object cannot be created.

prepareStatement

public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                   int resultSetType,
                                                   int resultSetConcurrency)
                                            throws java.sql.SQLException
JDBC 2.0 Creates a PreparedStatement object by allowing the default result set type and result set concurrency type to be overridden. Currently, you cannot override the default result set types and concurrency types. We support only TYPE_FORWARD_ONLY result type and CONCUR_READ_ONLY result set concurrency type.

Specified by:
prepareStatement in interface java.sql.Connection
Parameters:
sql - The SQL statement String.
resultSetType - The result set type TYPE_FORWARD_ONLY.
resultSetConcurrency - The concurrency type CONCUR_READ_ONLY.
Returns:
A new PreparedStatement object containing the pre-compiled SQL statement.
Throws:
java.sql.SQLException - This exception is thrown if a PreparedStatement object cannot be created.

prepareCall

public java.sql.CallableStatement prepareCall(java.lang.String sql,
                                              int resultSetType,
                                              int resultSetConcurrency)
                                       throws java.sql.SQLException
JDBC 2.0 Creates a CallableStatement object by allowing the default result set type and result set concurrency type to be overridden. Currently, you cannot override the default result set types and concurrency types. We support only TYPE_FORWARD_ONLY result type and CONCUR_READ_ONLY result set concurrency type.

Specified by:
prepareCall in interface java.sql.Connection
Parameters:
sql - The SQL statement String.
resultSetType - The result set type TYPE_FORWARD_ONLY.
resultSetConcurrency - The concurrency type CONCUR_READ_ONLY.
Returns:
A new CallableStatement object containing the pre-compiled SQL statement.
Throws:
java.sql.SQLException - This exception is thrown if a CallableStatement object cannot be created.

getTypeMap

public java.util.Map<java.lang.String,java.lang.Class<?>> getTypeMap()
                                                              throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
getTypeMap in interface java.sql.Connection
Throws:
java.sql.SQLException

setTypeMap

public void setTypeMap(java.util.Map<java.lang.String,java.lang.Class<?>> map)
                throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
setTypeMap in interface java.sql.Connection
Throws:
java.sql.SQLException

setHoldability

public void setHoldability(int holdability)
                    throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
setHoldability in interface java.sql.Connection
Throws:
java.sql.SQLException

getHoldability

public int getHoldability()
                   throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
getHoldability in interface java.sql.Connection
Throws:
java.sql.SQLException

setSavepoint

public java.sql.Savepoint setSavepoint()
                                throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
setSavepoint in interface java.sql.Connection
Throws:
java.sql.SQLException

setSavepoint

public java.sql.Savepoint setSavepoint(java.lang.String name)
                                throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
setSavepoint in interface java.sql.Connection
Throws:
java.sql.SQLException

rollback

public void rollback(java.sql.Savepoint savepoint)
              throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
rollback in interface java.sql.Connection
Throws:
java.sql.SQLException

releaseSavepoint

public void releaseSavepoint(java.sql.Savepoint savepoint)
                      throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
releaseSavepoint in interface java.sql.Connection
Throws:
java.sql.SQLException

createStatement

public java.sql.Statement createStatement(int resultSetType,
                                          int resultSetConcurrency,
                                          int resultSetHoldability)
                                   throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
createStatement in interface java.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
This method is not supported and will always throw a SQLException.

Specified by:
prepareStatement in interface java.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
This method is not supported and will always throw a SQLException.

Specified by:
prepareCall in interface java.sql.Connection
Throws:
java.sql.SQLException

prepareStatement

public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                   int autoGeneratedKeys)
                                            throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
prepareStatement in interface java.sql.Connection
Throws:
java.sql.SQLException

prepareStatement

public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                   int[] columnIndexes)
                                            throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
prepareStatement in interface java.sql.Connection
Throws:
java.sql.SQLException

prepareStatement

public java.sql.PreparedStatement prepareStatement(java.lang.String sql,
                                                   java.lang.String[] columnNames)
                                            throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
prepareStatement in interface java.sql.Connection
Throws:
java.sql.SQLException

deleteStatement

protected void deleteStatement(java.lang.Object statement)
Protected method which deletes statements associated with this object. Called by the statement's close method.

Parameters:
statement - statement object to be removed from the statementList

getUser

protected java.lang.String getUser()
Protected method

Returns:
String username associated with this object

getUrl

protected java.lang.String getUrl()
Protected method

Returns:
String url associated with this object

getRemarks

protected boolean getRemarks()
Protected method

Returns:
boolean remarks

finalize

protected void finalize()
                 throws java.lang.Throwable
Protected method which cleans up state associated with this object.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Exception - Throwable is required, but it is never thrown.
java.lang.Throwable

connect

protected void connect(java.lang.String myhost,
                       int port)
                throws ShareNetException
Connect to the server.

Parameters:
host - host machine name
port - TCP/IP port number
Throws:
ShareNetException - if an IOException is detected

execute

protected int execute(java.lang.String command)
               throws ShareNetException
Execute a command on the remote server. Typically, this is used to define new data sets.

Parameters:
command - command
Returns:
count number of records updated
Throws:
ShareNetException - if an IOException is detected

formatMsg

protected static java.lang.String formatMsg(int acc,
                                            com.sas.net.sharenet.Ans1 ans1,
                                            com.sas.net.sharenet.Rcmsg rcmsg)
                                     throws ShareNetException
Format the response from the server.

Parameters:
acc - response code from server
ans1 - answer segment one from the server
rcmsg - response message from the server
Throws:
ShareNetException - if an IOException is detected

createClob

public java.sql.Clob createClob()
                         throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
createClob in interface java.sql.Connection
Throws:
java.sql.SQLException

createBlob

public java.sql.Blob createBlob()
                         throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
createBlob in interface java.sql.Connection
Throws:
java.sql.SQLException

createNClob

public java.sql.NClob createNClob()
                           throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
createNClob in interface java.sql.Connection
Throws:
java.sql.SQLException

createSQLXML

public java.sql.SQLXML createSQLXML()
                             throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
createSQLXML in interface java.sql.Connection
Throws:
java.sql.SQLException

isValid

public boolean isValid(int timeout)
                throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
isValid in interface java.sql.Connection
Throws:
java.sql.SQLException

setClientInfo

public void setClientInfo(java.lang.String name,
                          java.lang.String value)
                   throws java.sql.SQLClientInfoException
The SAS/SHARE JDBC driver does not have any client info properties.

Specified by:
setClientInfo in interface java.sql.Connection
Throws:
java.sql.SQLClientInfoException

setClientInfo

public void setClientInfo(java.util.Properties properties)
                   throws java.sql.SQLClientInfoException
The SAS/SHARE JDBC driver does not have any client info properties.

Specified by:
setClientInfo in interface java.sql.Connection
Throws:
java.sql.SQLClientInfoException

getClientInfo

public java.lang.String getClientInfo(java.lang.String name)
                               throws java.sql.SQLException
The SAS/SHARE JDBC driver does not have any client info properties.

Specified by:
getClientInfo in interface java.sql.Connection
Throws:
java.sql.SQLException

getClientInfo

public java.util.Properties getClientInfo()
                                   throws java.sql.SQLException
The SAS/SHARE JDBC driver does not have any client info properties.

Specified by:
getClientInfo in interface java.sql.Connection
Throws:
java.sql.SQLException

createArrayOf

public java.sql.Array createArrayOf(java.lang.String typeName,
                                    java.lang.Object[] elements)
                             throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
createArrayOf in interface java.sql.Connection
Throws:
java.sql.SQLException

createStruct

public java.sql.Struct createStruct(java.lang.String typeName,
                                    java.lang.Object[] attributes)
                             throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
createStruct in interface java.sql.Connection
Throws:
java.sql.SQLException

unwrap

public <T> T unwrap(java.lang.Class<T> iface)
         throws java.sql.SQLException

Specified by:
unwrap in interface java.sql.Wrapper
Throws:
java.sql.SQLException

isWrapperFor

public boolean isWrapperFor(java.lang.Class<?> iface)
                     throws java.sql.SQLException

Specified by:
isWrapperFor in interface java.sql.Wrapper
Throws:
java.sql.SQLException

setSchema

public void setSchema(java.lang.String schema)
               throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
setSchema in interface java.sql.Connection
Throws:
java.sql.SQLException

getSchema

public java.lang.String getSchema()
                           throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
getSchema in interface java.sql.Connection
Throws:
java.sql.SQLException

abort

public void abort(java.util.concurrent.Executor executor)
           throws java.sql.SQLException
This method is not supported and will always throw a SQLException.

Specified by:
abort in interface java.sql.Connection
Throws:
java.sql.SQLException

setNetworkTimeout

public void setNetworkTimeout(java.util.concurrent.Executor executor,
                              int milliseconds)
                       throws java.sql.SQLException

Specified by:
setNetworkTimeout in interface java.sql.Connection
Throws:
java.sql.SQLException

getNetworkTimeout

public int getNetworkTimeout()
                      throws java.sql.SQLException

Specified by:
getNetworkTimeout in interface java.sql.Connection
Throws:
java.sql.SQLException



Copyright © 2009 SAS Institute Inc. All Rights Reserved.