public abstract class AbstractRemoteReference extends UnicastRemoteObject
| Modifier and Type | Field and Description |
|---|---|
static String |
DATABASE_CONNECTION_MANAGER_ID |
protected String |
dbConnectionManagerId |
protected EntityReferenceLocator |
locator |
ref| Constructor and Description |
|---|
AbstractRemoteReference(int port,
EntityReferenceLocator locator,
Hashtable params) |
| Modifier and Type | Method and Description |
|---|---|
OntimizeConnection |
connect() |
OntimizeConnection |
connect(int sessionId) |
void |
disconnect(OntimizeConnection connection)
Returns the connection to the DatabaseConnectionManager, by calling
unlock(connection) method. |
protected DatabaseConnectionManager |
getDatabaseConnectionManager()
Get the reference to the
DatabaseConnectionManager |
Entity |
getEntityReference(String entityName)
Get an Entity reference
|
protected boolean |
hasSession(int sessionId) |
protected void |
init(Hashtable params) |
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic static final String DATABASE_CONNECTION_MANAGER_ID
protected EntityReferenceLocator locator
protected String dbConnectionManagerId
public AbstractRemoteReference(int port,
EntityReferenceLocator locator,
Hashtable params)
throws Exception
Exceptionprotected void init(Hashtable params)
public Entity getEntityReference(String entityName) throws Exception
entityName - Name of the entityExceptionprotected DatabaseConnectionManager getDatabaseConnectionManager()
DatabaseConnectionManagerpublic OntimizeConnection connect(int sessionId) throws Exception
Exceptionpublic OntimizeConnection connect() throws Exception
Exceptionpublic void disconnect(OntimizeConnection connection)
unlock(connection) method.connection - protected boolean hasSession(int sessionId)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.