|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.rmi.ConnectionBean
| Field Summary | |
static java.lang.String |
CGIPATH
|
static java.lang.String |
defaultProperties
|
static java.lang.String |
HTTP
|
static java.lang.String |
HTTPPORT
|
static java.lang.String |
PASSWORD
|
static java.lang.String |
PORT
|
static java.lang.String |
REMOTE_LOCATOR_NAME
|
static java.lang.String |
SERVER_HOSTNAME
|
static java.lang.String |
SSL
|
static java.lang.String |
USER
|
| Constructor Summary | |
ConnectionBean()
Creates an instance of ConnectinBean. |
|
ConnectionBean(java.util.Properties properties)
|
|
ConnectionBean(java.lang.String propertiesResource)
|
|
| Method Summary | |
EntityResult |
delete(java.util.Hashtable keysValues,
java.lang.String entity)
Executes a delete operation against the server |
void |
endSession(int sessionId)
This method closes the specified session indicated in parameter. |
Entity |
getEntityReference(java.lang.String entity)
|
EntityReferenceLocator |
getReferenceLocator()
|
int |
getSessionId()
|
java.lang.String |
getUser()
|
protected void |
init(java.util.Properties properties)
Initializes parameters. |
EntityResult |
insert(java.util.Hashtable attributesValues,
java.lang.String entity)
|
EntityResult |
query(java.util.Hashtable keysValues,
java.util.Vector attributesValues,
java.lang.String entity)
Executes a query against the server |
protected static void |
removeRMISocketFactory()
|
EntityResult |
update(java.util.Hashtable attributesValues,
java.util.Hashtable keysValues,
java.lang.String entity)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PORT
public static final java.lang.String SERVER_HOSTNAME
public static final java.lang.String REMOTE_LOCATOR_NAME
public static final java.lang.String USER
public static final java.lang.String PASSWORD
public static final java.lang.String SSL
public static final java.lang.String HTTP
public static final java.lang.String CGIPATH
public static final java.lang.String HTTPPORT
public static java.lang.String defaultProperties
| Constructor Detail |
public ConnectionBean()
throws java.lang.Exception
ConnectinBean. The properties file
must be configured in defaultProperties
public ConnectionBean(java.lang.String propertiesResource)
throws java.lang.Exception
public ConnectionBean(java.util.Properties properties)
| Method Detail |
protected void init(java.util.Properties properties)
| attribute | values | default | required | meaning |
| Hostname | yes | Server hostname | ||
| Port | 1099 | no | Server registry port | |
| RemoteLocatorName | yes | Name of remote server reference | ||
| User | no | |||
| Password | no | |||
| SSL | yes/no | no | no | RMI with SSL |
| HTTP | yes/no | no | no | HHTP Tunneling.Sets NatRMIHTTPTunnelingSocketFactory as Socket factory. Uses the system properties 'com.ontimize.util.rmitunneling.cgipath' and 'com.ontimize.util.rmitunneling.port' |
| CGIPATH | no | Overwrite the value of 'com.ontimize.util.rmitunneling.cgipath' system property.
This parameter will be used when the client connects to multiple servers. |
||
| HTTPPORT | Overwrite the value of 'com.ontimize.util.rmitunneling.port' system property
This parameter will be used when the client connects to multiple servers. |
protected static void removeRMISocketFactory()
public int getSessionId()
throws java.lang.Exception
java.lang.Exception
public EntityResult query(java.util.Hashtable keysValues,
java.util.Vector attributesValues,
java.lang.String entity)
throws java.lang.Exception
keysValues - Filter to use in the queryattributesValues - Columns to queryentity - Name of the entity to query
java.lang.Exception
public EntityResult insert(java.util.Hashtable attributesValues,
java.lang.String entity)
throws java.lang.Exception
java.lang.Exception
public EntityResult update(java.util.Hashtable attributesValues,
java.util.Hashtable keysValues,
java.lang.String entity)
throws java.lang.Exception
java.lang.Exception
public EntityResult delete(java.util.Hashtable keysValues,
java.lang.String entity)
throws java.lang.Exception
keysValues - Filter to use in the operationentity - Name of the entity
java.lang.Exceptionpublic EntityReferenceLocator getReferenceLocator()
public Entity getEntityReference(java.lang.String entity)
public java.lang.String getUser()
public void endSession(int sessionId)
sessionId - The session identifier
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||