Package org.teiid.jdbc
Interface TeiidConnection
-
- All Superinterfaces:
AutoCloseable
,Connection
,Wrapper
- All Known Subinterfaces:
EmbeddedConnection
- All Known Implementing Classes:
ConnectionImpl
public interface TeiidConnection extends Connection
Optional methods supported by Teiid Connections.
-
-
Field Summary
-
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changeUser(String userName, String newPassword)
Re-authenticate with the given username and password.-
Methods inherited from interface java.sql.Connection
abort, clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap
-
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
Method Detail
-
changeUser
void changeUser(String userName, String newPassword) throws SQLException
Re-authenticate with the given username and password. If the re-authentication fails the connection will remain under the current user.- Parameters:
userName
- the username to authenticate withnewPassword
- the password to authenticate with- Throws:
SQLException
-
-