|
Sybase eWay API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.sybaseadapter.base.SessionImpl com.stc.connector.sybaseadapter.SybaseSession
public class SybaseSession
Session hosts a Connection interface
Field Summary |
---|
Fields inherited from class com.stc.connector.sybaseadapter.base.SessionImpl |
---|
bSupportsBatch, conn, dataSource, dbms, dmd, isConnected, password, sessionEventListeners, sqlException, userName |
Fields inherited from interface com.stc.connector.db.Session |
---|
DBMS_TYPE_UNKNOWN |
Constructor Summary | |
---|---|
SybaseSession(javax.sql.DataSource dataSource,
java.lang.String userName,
java.lang.String password)
SybaseSession constructor. |
Method Summary | |
---|---|
void |
checkConnection(java.sql.SQLException sqlException)
Connection status check if there is a SQL exception. |
boolean |
isNativeDriver()
Check to see if it is a native driver |
void |
open()
Opens the session. |
void |
setDBMS(int dbmsType)
Sets the DBMS type. |
Methods inherited from class com.stc.connector.sybaseadapter.base.SessionImpl |
---|
addSessionEventListener, close, commit, connect, connInvoke, getAutoCommit, getCatalog, getConcurrencyType, getConnection, getDBMS, getMetaData, getNewTypeFlag, getResultSetType, getSupportsBatch, getTransactionIsolation, getTypeMap, inValidateConnection, isClosed, isConnected, isReadOnly, releaseResources, removeSessionEventListener, requestReset, rollback, setAutoCommit, setCatalog, setConcurrencyType, setNewTypeFlag, setReadOnly, setResultSetType, setTransactionIsolation, setTypeMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SybaseSession(javax.sql.DataSource dataSource, java.lang.String userName, java.lang.String password)
dataSource
- a DataSource instance used to create a connection.userName
- user name for login.password
- password for login.Method Detail |
---|
public void open() throws java.sql.SQLException
open
in interface com.stc.connector.db.Session
open
in class SessionImpl
java.sql.SQLException
- when SQL problems occur.public void setDBMS(int dbmsType) throws java.sql.SQLException
setDBMS
in interface com.stc.connector.db.Session
setDBMS
in class SessionImpl
dbmsType
- the database vendor type.
java.sql.SQLException
- when there is any SQL problem.public boolean isNativeDriver()
public void checkConnection(java.sql.SQLException sqlException) throws java.sql.SQLException
checkConnection
in interface com.stc.connector.db.Session
checkConnection
in class SessionImpl
sqlException
- a SQLException instance.
java.sql.SQLException
- when SQL problems occur.
|
Sybase eWay API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |