|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sas.net.sharenet.ShareNetConnection
This class establishes a session with a SAS/SHARE server.
Field Summary | |
SQLWarning |
warnings
|
Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Constructor Summary |
Method Summary | |
void |
clearWarnings()
Removes all warnings that are associated with this object. |
void |
close()
Closes all the ShareNetStatement and ShareNetPreparedStatement objects that are associated with this object and closes the connection to the server. |
void |
commit()
Closes all the open Statement and PreparedStatement objects that are associated with this object. |
Statement |
createStatement()
Creates a ShareNetStatement object. |
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. |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Creates a Statement object that will generate ResultSet objects with the given type, concurrency, and holdability.
|
boolean |
getAutoCommit()
SAS software does not support transactions. |
String |
getCatalog()
SAS software does not support SQL catalogs. |
int |
getHoldability()
Retrieves the current holdability of ResultSet objects created using this Connection object.
|
DatabaseMetaData |
getMetaData()
Creates a ShareNetDatabaseMetaData object. |
int |
getTransactionIsolation()
SAS software does not support transactions. |
Map |
getTypeMap()
JDBC 2.0 * Gets the type-map object associated with this connection as a java.util.Map object |
SQLWarning |
getWarnings()
Returns the warnings associated with this object. |
boolean |
isClosed()
Indicates whether the connection to the server is closed. |
boolean |
isReadOnly()
SAS software does not support read-only connections. |
String |
nativeSQL(String sql)
Returns the input string. |
CallableStatement |
prepareCall(String sql)
Creates a ShareNetCallableStatement object. |
CallableStatement |
prepareCall(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. |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Creates a CallableStatement object that will generate ResultSet objects with the given type, concurrency, and holdability.
|
PreparedStatement |
prepareStatement(String sql)
Creates a ShareNetPreparedStatement object. |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys)
Creates a default PreparedStatement object that has the capability to retrieve auto-generated keys.
|
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes)
Creates a default PreparedStatement object capable of returning the auto-generated keys designated by the given array.
|
PreparedStatement |
prepareStatement(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. |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Creates a PreparedStatement object that will generate ResultSet objects with the given type, concurrency, and holdability.
|
PreparedStatement |
prepareStatement(String sql,
String[] columnNames)
Creates a default PreparedStatement object capable of returning the auto-generated keys designated by the given array.
|
void |
releaseSavepoint(Savepoint savepoint)
Removes the given Savepoint object from the current transaction.
|
void |
rollback()
SAS software does not support transactions. |
void |
rollback(Savepoint savepoint)
Undoes all changes made after the given Savepoint object was set.
|
void |
setAutoCommit(boolean autoCommit)
Sets the auto-commit state. |
void |
setCatalog(String catalog)
SAS software does not support SQL catalogs. |
void |
setHoldability(int holdability)
Changes the holdability of ResultSet objects created using this Connection object to the given holdability.
|
void |
setReadOnly(boolean readOnly)
SAS software does not support read-only connections. |
Savepoint |
setSavepoint()
Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that represents it.
|
Savepoint |
setSavepoint(String name)
Creates a savepoint with the given name in the current transaction and returns the new Savepoint object that represents it.
|
void |
setTransactionIsolation(int level)
SAS software does not support transactions. |
void |
setTypeMap(Map map)
JDBC 2.0 * Sets a type-map object as the default type-map for * this connection. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public SQLWarning warnings
Constructor Detail |
Method Detail |
public Statement createStatement() throws SQLException
createStatement
in interface Connection
SQLException
- This exception is thrown if a ShareNetStatement object cannot be created.public PreparedStatement prepareStatement(String sql) throws SQLException
prepareStatement
in interface Connection
sql
- An input SQL string.SQLException
- This exception is thrown if a ShareNetPreparedStatement cannot be created.public CallableStatement prepareCall(String sql) throws SQLException
prepareCall
in interface Connection
sql
- An input SQL string.SQLException
- This exception is required by the interface, but it is never thrown.public String nativeSQL(String sql) throws SQLException
nativeSQL
in interface Connection
sql
- An input SQL string for optimization.SQLException
- This exception is required by the interface, but it is never thrown.public void setAutoCommit(boolean autoCommit) throws SQLException
setAutoCommit
in interface Connection
autoCommit
- This value must be True. SAS software does not support transactions.SQLException
- This exception is thrown if the value for autoCommit is False.public boolean getAutoCommit() throws SQLException
getAutoCommit
in interface Connection
SQLException
- This exception is required by the interface, but it is never thrown.public void commit() throws SQLException
commit
in interface Connection
SQLException
- This exception is thrown if an exception occurred while outstanding
statements were being closed.public void rollback() throws SQLException
rollback
in interface Connection
SQLException
- This exception is always thrown.public void close() throws SQLException
close
in interface Connection
SQLException
- This exception is thrown if a ShareNetException is detected.public boolean isClosed() throws SQLException
isClosed
in interface Connection
SQLException
- This exception is required by the interface, but it is never thrown.public DatabaseMetaData getMetaData() throws SQLException
getMetaData
in interface Connection
SQLException
- This exception is thrown if a ShareNetDatabaseMetaData object cannot be created.public void setReadOnly(boolean readOnly) throws SQLException
setReadOnly
in interface Connection
readOnly
- This parameter is ignored.SQLException
- This exception is required by the interface, but it is never thrown.public boolean isReadOnly() throws SQLException
isReadOnly
in interface Connection
SQLException
- This exception is required by the interface, but it is never thrown.public void setCatalog(String catalog) throws SQLException
setCatalog
in interface Connection
catalog
- This parameter is ignored.SQLException
- This exception is required by the interface, but it is never thrown.public final String getCatalog() throws SQLException
getCatalog
in interface Connection
SQLException
- This exception is required by the interface, but it is never thrown.public void setTransactionIsolation(int level) throws SQLException
setTransactionIsolation
in interface Connection
level
- The transaction level.SQLException
- This exception is thrown if the value of level is not valid.public int getTransactionIsolation() throws SQLException
getTransactionIsolation
in interface Connection
SQLException
- This exception is required by the interface, but it is never thrown.public SQLWarning getWarnings() throws SQLException
getWarnings
in interface Connection
SQLException
- This exception is required by the interface, but it is never thrown.public void clearWarnings() throws SQLException
clearWarnings
in interface Connection
SQLException
- This exception is required by the interface, but it is never thrown.public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
createStatement
in interface Connection
resultSetType
- The result set type TYPE_FORWARD_ONLY.resultSetConcurrency
- The concurrency type CONCUR_READ_ONLY.SQLException
- This exception is thrown if a Statement object cannot be created.public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareStatement
in interface Connection
sql
- The SQL statement String.resultSetType
- The result set type TYPE_FORWARD_ONLY.resultSetConcurrency
- The concurrency type CONCUR_READ_ONLY.SQLException
- This exception is thrown if a PreparedStatement object cannot be created.public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
prepareCall
in interface Connection
sql
- The SQL statement String.resultSetType
- The result set type TYPE_FORWARD_ONLY.resultSetConcurrency
- The concurrency type CONCUR_READ_ONLY.SQLException
- This exception is thrown if a CallableStatement object cannot be created.public Map getTypeMap() throws SQLException
getTypeMap
in interface Connection
SQLException
- This exception is always thrown.
public void setTypeMap(Map map) throws SQLException
setTypeMap
in interface Connection
map
- A type-map object to be associated with this connection.SQLException
- This exception is always thrown.
public void setHoldability(int holdability) throws SQLException
ResultSet
objects created using this Connection
object to the given holdability.
This method is not implemented.setHoldability
in interface Connection
SQLException
- This exception is always thrown.public int getHoldability() throws SQLException
ResultSet
objects created using this Connection
object.
This method is not implemented.getHoldability
in interface Connection
SQLException
- This exception is always thrown.public Savepoint setSavepoint() throws SQLException
Savepoint
object that represents it.
This method is not implemented.setSavepoint
in interface Connection
SQLException
- This exception is always thrown.public Savepoint setSavepoint(String name) throws SQLException
Savepoint
object that represents it.
This method is not implemented.setSavepoint
in interface Connection
SQLException
- This exception is always thrown.public void rollback(Savepoint savepoint) throws SQLException
Savepoint
object was set.
This method is not implemented.rollback
in interface Connection
SQLException
- This exception is always thrown.public void releaseSavepoint(Savepoint savepoint) throws SQLException
Savepoint
object from the current transaction.
This method is not implemented.releaseSavepoint
in interface Connection
SQLException
- This exception is always thrown.public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
ResultSet
objects with the given type, concurrency, and holdability.
This method is not implemented.createStatement
in interface Connection
SQLException
- This exception is always thrown.public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
PreparedStatement
object that will generate ResultSet
objects with the given type, concurrency, and holdability.
This method is not implemented.prepareStatement
in interface Connection
SQLException
- This exception is always thrown.public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
CallableStatement
object that will generate ResultSet
objects with the given type, concurrency, and holdability.
This method is not implemented.prepareCall
in interface Connection
SQLException
- This exception is always thrown.public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
PreparedStatement
object that has the capability to retrieve auto-generated keys.
This method is not implemented.prepareStatement
in interface Connection
SQLException
- This exception is always thrown.public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
PreparedStatement
object capable of returning the auto-generated keys designated by the given array.
This method is not implemented.prepareStatement
in interface Connection
SQLException
- This exception is always thrown.public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
PreparedStatement
object capable of returning the auto-generated keys designated by the given array.
This method is not implemented.prepareStatement
in interface Connection
SQLException
- This exception is always thrown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |