public class SQLServerConnection extends Object implements ISQLServerConnection
TRANSACTION_SNAPSHOTTRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLEpublic final boolean getSendTimeAsDatetime()
public static void registerColumnEncryptionKeyStoreProviders(Map<String,SQLServerColumnEncryptionKeyStoreProvider> clientKeyStoreProviders) throws SQLServerException
SQLServerExceptionpublic static void setColumnEncryptionTrustedMasterKeyPaths(Map<String,List<String>> trustedKeyPaths)
public static void updateColumnEncryptionTrustedMasterKeyPaths(String server, List<String> trustedKeyPaths)
public static void removeColumnEncryptionTrustedMasterKeyPaths(String server)
public static Map<String,List<String>> getColumnEncryptionTrustedMasterKeyPaths()
public UUID getClientConnectionId() throws SQLServerException
getClientConnectionId in interface ISQLServerConnectionSQLServerExceptionpublic String toString()
public Statement createStatement() throws SQLServerException
createStatement in interface ConnectionSQLServerExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLServerException
prepareStatement in interface ConnectionSQLServerExceptionpublic CallableStatement prepareCall(String sql) throws SQLServerException
prepareCall in interface ConnectionSQLServerExceptionpublic String nativeSQL(String sql) throws SQLServerException
nativeSQL in interface ConnectionSQLServerExceptionpublic void setAutoCommit(boolean newAutoCommitMode)
throws SQLServerException
setAutoCommit in interface ConnectionSQLServerExceptionpublic boolean getAutoCommit()
throws SQLServerException
getAutoCommit in interface ConnectionSQLServerExceptionpublic void commit()
throws SQLServerException
commit in interface ConnectionSQLServerException - if no transaction exists.public void rollback()
throws SQLServerException
rollback in interface ConnectionSQLServerException - if no transaction exists or if the connection is in auto-commit mode.public void abort(Executor executor) throws SQLException
abort in interface ConnectionSQLExceptionpublic void close()
throws SQLServerException
close in interface AutoCloseableclose in interface ConnectionSQLServerExceptionpublic boolean isClosed()
throws SQLServerException
isClosed in interface ConnectionSQLServerExceptionpublic DatabaseMetaData getMetaData() throws SQLServerException
getMetaData in interface ConnectionSQLServerExceptionpublic void setReadOnly(boolean readOnly)
throws SQLServerException
setReadOnly in interface ConnectionSQLServerExceptionpublic boolean isReadOnly()
throws SQLServerException
isReadOnly in interface ConnectionSQLServerExceptionpublic void setCatalog(String catalog) throws SQLServerException
setCatalog in interface ConnectionSQLServerExceptionpublic String getCatalog() throws SQLServerException
getCatalog in interface ConnectionSQLServerExceptionpublic void setTransactionIsolation(int level)
throws SQLServerException
setTransactionIsolation in interface ConnectionSQLServerExceptionpublic int getTransactionIsolation()
throws SQLServerException
getTransactionIsolation in interface ConnectionSQLServerExceptionpublic SQLWarning getWarnings() throws SQLServerException
getWarnings in interface ConnectionSQLServerExceptionpublic void clearWarnings()
throws SQLServerException
clearWarnings in interface ConnectionSQLServerExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLServerException
createStatement in interface ConnectionSQLServerExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLServerException
prepareStatement in interface ConnectionSQLServerExceptionpublic CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLServerException
prepareCall in interface ConnectionSQLServerExceptionpublic void setTypeMap(Map<String,Class<?>> map) throws SQLServerException
setTypeMap in interface ConnectionSQLServerExceptionpublic Map<String,Class<?>> getTypeMap() throws SQLServerException
getTypeMap in interface ConnectionSQLServerExceptionpublic Statement createStatement(int nType, int nConcur, int statementHoldability) throws SQLServerException
createStatement in interface ConnectionSQLServerExceptionpublic Statement createStatement(int nType, int nConcur, int statementHoldability, SQLServerStatementColumnEncryptionSetting stmtColEncSetting) throws SQLServerException
SQLServerExceptionpublic PreparedStatement prepareStatement(String sql, int nType, int nConcur, int statementHoldability) throws SQLServerException
prepareStatement in interface ConnectionSQLServerExceptionpublic PreparedStatement prepareStatement(String sql, int nType, int nConcur, int statementHoldability, SQLServerStatementColumnEncryptionSetting stmtColEncSetting) throws SQLServerException
SQLServerExceptionpublic CallableStatement prepareCall(String sql, int nType, int nConcur, int statementHoldability) throws SQLServerException
prepareCall in interface ConnectionSQLServerExceptionpublic CallableStatement prepareCall(String sql, int nType, int nConcur, int statementHoldability, SQLServerStatementColumnEncryptionSetting stmtColEncSetiing) throws SQLServerException
SQLServerExceptionpublic PreparedStatement prepareStatement(String sql, int flag) throws SQLServerException
prepareStatement in interface ConnectionSQLServerExceptionpublic PreparedStatement prepareStatement(String sql, int flag, SQLServerStatementColumnEncryptionSetting stmtColEncSetting) throws SQLServerException
SQLServerExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLServerException
prepareStatement in interface ConnectionSQLServerExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes, SQLServerStatementColumnEncryptionSetting stmtColEncSetting) throws SQLServerException
SQLServerExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLServerException
prepareStatement in interface ConnectionSQLServerExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames, SQLServerStatementColumnEncryptionSetting stmtColEncSetting) throws SQLServerException
SQLServerExceptionpublic void releaseSavepoint(Savepoint savepoint) throws SQLServerException
releaseSavepoint in interface ConnectionSQLServerExceptionpublic Savepoint setSavepoint(String sName) throws SQLServerException
setSavepoint in interface ConnectionSQLServerExceptionpublic Savepoint setSavepoint() throws SQLServerException
setSavepoint in interface ConnectionSQLServerExceptionpublic void rollback(Savepoint s) throws SQLServerException
rollback in interface ConnectionSQLServerExceptionpublic int getHoldability()
throws SQLServerException
getHoldability in interface ConnectionSQLServerExceptionpublic void setHoldability(int holdability)
throws SQLServerException
setHoldability in interface ConnectionSQLServerExceptionpublic int getNetworkTimeout()
throws SQLException
getNetworkTimeout in interface ConnectionSQLExceptionpublic void setNetworkTimeout(Executor executor, int timeout) throws SQLException
setNetworkTimeout in interface ConnectionSQLExceptionpublic String getSchema() throws SQLException
getSchema in interface ConnectionSQLExceptionpublic void setSchema(String schema) throws SQLException
setSchema in interface ConnectionSQLExceptionpublic void setSendTimeAsDatetime(boolean sendTimeAsDateTimeValue)
public Array createArrayOf(String typeName, Object[] elements) throws SQLException
createArrayOf in interface ConnectionSQLExceptionpublic Blob createBlob() throws SQLException
createBlob in interface ConnectionSQLExceptionpublic Clob createClob() throws SQLException
createClob in interface ConnectionSQLExceptionpublic NClob createNClob() throws SQLException
createNClob in interface ConnectionSQLExceptionpublic SQLXML createSQLXML() throws SQLException
createSQLXML in interface ConnectionSQLExceptionpublic Struct createStruct(String typeName, Object[] attributes) throws SQLException
createStruct in interface ConnectionSQLExceptionpublic Properties getClientInfo() throws SQLException
getClientInfo in interface ConnectionSQLExceptionpublic String getClientInfo(String name) throws SQLException
getClientInfo in interface ConnectionSQLExceptionpublic void setClientInfo(Properties properties) throws SQLClientInfoException
setClientInfo in interface ConnectionSQLClientInfoExceptionpublic void setClientInfo(String name, String value) throws SQLClientInfoException
setClientInfo in interface ConnectionSQLClientInfoExceptionpublic boolean isValid(int timeout)
throws SQLException
isValid in interface Connectiontimeout - The time in seconds to wait for the database operation used to validate the
connection to complete. If the timeout period expires before the operation
completes, this method returns false. A value of 0 indicates a timeout is
not applied to the database operation. Note that if the value is 0, the call
to isValid may block indefinitely if the connection is not valid...SQLException - if the value supplied for the timeout is less than 0.public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic static void setColumnEncryptionKeyCacheTtl(int columnEncryptionKeyCacheTTL,
TimeUnit unit)
throws SQLServerException
SQLServerExceptionCopyright © 2016. All rights reserved.