|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IConnectionFactory
Root interface for DB objects hierarchy - all other objects are produced
by IConnectionFactory. When working through RMI the object of this class
should be obtained by Naming, when working with direct DB connection -
by LocalConnectionFactory.LocalConnectionFactory(AuthenticationHelper, DBSpecific).
| Field Summary | |
|---|---|
static java.lang.String |
AUTH_BAD_APP
Error message ( Throwable.getMessage())
for "No access to chosen application" |
static java.lang.String |
AUTH_BAD_PASS
Error message ( Throwable.getMessage())
for "Bad password" |
static java.lang.String |
AUTH_BAD_USER
Error message ( Throwable.getMessage())
for "Bad username" |
static java.lang.String |
AUTH_FAILED
Error message ( Throwable.getMessage())
for "Authentication failed (for unknown reason)" |
static java.lang.String |
DRIVER_NOT_FOUND
Error message ( Throwable.getMessage())
for "JDBC driver not found" |
| Method Summary | |
|---|---|
SessionInfo[] |
getActiveSessions()
Returns active sessions descriptors |
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. |
| Field Detail |
|---|
static final java.lang.String DRIVER_NOT_FOUND
Throwable.getMessage())
for "JDBC driver not found"
static final java.lang.String AUTH_FAILED
Throwable.getMessage())
for "Authentication failed (for unknown reason)"
static final java.lang.String AUTH_BAD_PASS
Throwable.getMessage())
for "Bad password"
static final java.lang.String AUTH_BAD_APP
Throwable.getMessage())
for "No access to chosen application"
static final java.lang.String AUTH_BAD_USER
Throwable.getMessage())
for "Bad username"
| Method Detail |
|---|
IDBInterface openConnection(java.lang.String user,
java.lang.String password)
throws java.rmi.RemoteException,
java.sql.SQLException
AuthenticationHelper. Given parameters
are passed to AuthenticationHelper.authenticate(java.sql.Connection,String,String).
user - external userpassword - external password
java.rmi.RemoteException
java.sql.SQLException
IDBInterface openConnection(IDBInterface oldConnection,
java.lang.String password)
throws java.rmi.RemoteException,
java.sql.SQLException
IDBInterface.migrateTo(IConnectionFactory).
oldConnection - already opened DB connectionpassword - user password
java.rmi.RemoteException
java.sql.SQLException
SessionInfo[] getActiveSessions()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||