|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sqlg2.db.LocalConnectionFactory
public final class LocalConnectionFactory
IConnectionFactory
implementation for local connection.
Field Summary | |
---|---|
static long |
ACTIVITY_CHECK_INTERVAL
Client activity check interval. |
static SqlTrace |
DEFAULT_TRACE
|
Fields inherited from interface sqlg2.db.IConnectionFactory |
---|
AUTH_BAD_APP, AUTH_BAD_PASS, AUTH_BAD_USER, AUTH_FAILED, DRIVER_NOT_FOUND |
Constructor Summary | |
---|---|
LocalConnectionFactory(AuthenticationHelper auth,
DBSpecific specific)
Constructor. |
Method Summary | |
---|---|
SessionInfo[] |
getActiveSessions()
Returns active sessions descriptors |
static LocalConnectionFactory |
newLocalOracleInstance(java.lang.String driver,
java.lang.String url)
|
IDBInterface |
openConnection(IDBInterface oldConnection,
java.lang.String password)
This method is rarely used directly, it is intended for use by IDBInterface.migrateTo(IConnectionFactory) . |
IDBInterface |
openConnection(java.lang.String user,
java.lang.String password)
Connecting to DB using external authentication (server must support that) - connection properties are taken from AuthenticationHelper . |
void |
setSqlTrace(SqlTrace trace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long ACTIVITY_CHECK_INTERVAL
public static final SqlTrace DEFAULT_TRACE
Constructor Detail |
---|
public LocalConnectionFactory(AuthenticationHelper auth, DBSpecific specific)
ConnectionFactory
Method Detail |
---|
public static LocalConnectionFactory newLocalOracleInstance(java.lang.String driver, java.lang.String url)
public IDBInterface openConnection(java.lang.String user, java.lang.String password) throws java.rmi.RemoteException, java.sql.SQLException
IConnectionFactory
AuthenticationHelper
. Given parameters
are passed to AuthenticationHelper.authenticate(java.sql.Connection,String,String)
.
openConnection
in interface IConnectionFactory
user
- external userpassword
- external password
java.rmi.RemoteException
java.sql.SQLException
public IDBInterface openConnection(IDBInterface oldConnection, java.lang.String password) throws java.rmi.RemoteException, java.sql.SQLException
IConnectionFactory
IDBInterface.migrateTo(IConnectionFactory)
.
openConnection
in interface IConnectionFactory
oldConnection
- already opened DB connectionpassword
- user password
java.rmi.RemoteException
java.sql.SQLException
public SessionInfo[] getActiveSessions()
IConnectionFactory
getActiveSessions
in interface IConnectionFactory
public void setSqlTrace(SqlTrace trace)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |