org.teiid.jdbc
Interface TeiidConnection

All Superinterfaces:
java.sql.Connection, java.sql.Wrapper
All Known Implementing Classes:
ConnectionImpl

public interface TeiidConnection
extends java.sql.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
 void changeUser(java.lang.String userName, java.lang.String newPassword)
          Re-authenticate with the given username and password.
 
Methods inherited from interface java.sql.Connection
clearWarnings, close, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Method Detail

changeUser

void changeUser(java.lang.String userName,
                java.lang.String newPassword)
                throws java.sql.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 with
newPassword - the password to authenticate with
Throws:
java.sql.SQLException


Copyright © 2011. All Rights Reserved.