|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDBInterface
Main DB interface class - DB connection abstraction.
Can be viewed as a Connection analog,
while really it can be a whole pool of connections.
| Method Summary | |
|---|---|
void |
close()
Closes DB connection. |
SessionInfo[] |
getActiveSessions()
Returns active sessions descriptors. |
SessionInfo |
getCurrentSession()
Returns calling session descriptor |
ISimpleTransaction |
getSimpleTransaction()
Creates "simple" transaction. |
ITransaction |
getTransaction()
Creates transaction. |
java.lang.String |
getUserHost()
User host name. |
java.lang.String |
getUserLogin()
Returns user login (which was passed to IConnectionFactory.openConnection(java.lang.String, java.lang.String)). |
java.lang.Object |
getUserObject()
Returns user identifier object which was returned from AuthenticationHelper.authenticate(java.sql.Connection,String,String)
(null in case of direct authentication). |
void |
killSession(long sessionId)
|
IDBInterface |
migrateTo(IConnectionFactory conf)
Opens new DB connection to another application with same login and password. |
void |
ping()
Checks server for availability and signal that client is alive. |
void |
runProcess(ProcessFactory factory)
Creates background process on the server. |
| Method Detail |
|---|
ISimpleTransaction getSimpleTransaction()
throws java.rmi.RemoteException,
java.sql.SQLException
java.rmi.RemoteException
java.sql.SQLExceptionISimpleTransaction
ITransaction getTransaction()
throws java.rmi.RemoteException,
java.sql.SQLException
java.rmi.RemoteException
java.sql.SQLExceptionITransaction
void ping()
throws java.rmi.RemoteException
java.rmi.RemoteException
void close()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getUserLogin()
throws java.rmi.RemoteException
IConnectionFactory.openConnection(java.lang.String, java.lang.String)).
java.rmi.RemoteException
java.lang.String getUserHost()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.Object getUserObject()
throws java.rmi.RemoteException
AuthenticationHelper.authenticate(java.sql.Connection,String,String)
(null in case of direct authentication).
java.rmi.RemoteException
SessionInfo[] getActiveSessions()
throws java.rmi.RemoteException
java.rmi.RemoteException
void killSession(long sessionId)
throws java.rmi.RemoteException
java.rmi.RemoteException
SessionInfo getCurrentSession()
throws java.rmi.RemoteException
java.rmi.RemoteException
IDBInterface migrateTo(IConnectionFactory conf)
throws java.rmi.RemoteException,
java.sql.SQLException
conf - root object of application
java.rmi.RemoteException
java.sql.SQLException
void runProcess(ProcessFactory factory)
throws java.rmi.RemoteException,
java.sql.SQLException
factory - process factory
java.rmi.RemoteException
java.sql.SQLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||