|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the basic methods that must be implemented by any class (entity) that provides and receives data from the Ontimize client classes (for example, forms and trees).
Defines four methods corresponding to the basic operations that generally can
be done when managing data:
Classes that implement these methods must ensure that the argument objects passed to the methods are not modified. This interface extends java.rmi.Remote so that methods of this interface can be called using RMI, but this is not required, and instances of objects can be used locally.
| Method Summary | |
EntityResult |
delete(java.util.Hashtable keysValues,
int sessionId)
This method must implement a standard delete operation over the set of records defined by keysValues. |
EntityResult |
insert(java.util.Hashtable attributesValues,
int sessionId)
This method must implement a standard insert operation with the data contained in attributesValues parameter. |
EntityResult |
query(java.util.Hashtable keysValues,
java.util.Vector attributes,
int sessionId)
This method must implement a standard query operation returning the set of data that matches the conditions specified by the keysValues parameter. |
EntityResult |
update(java.util.Hashtable attributesValues,
java.util.Hashtable keysValues,
int sessionId)
This method must implement a standard update operation with the data specified in attributesValues over the set
of records defined by keysValues. |
| Method Detail |
public EntityResult query(java.util.Hashtable keysValues,
java.util.Vector attributes,
int sessionId)
throws java.lang.Exception
keysValues parameter. The attributes
defines which attributes (or columns if data is obtained from a database) must be recovered, and
keysValues specifies which set of records must be recovered.
keysValues - a Hashtable specifying conditions that must comply the set of records returned. Cannot be null.attributes - a list of columns or attributes that must be recovered for each record returned. Cannot be null. If empty, all attributes should be returned.sessionId - a integer identifying the user or session that performs the action.
java.lang.Exception - if any exception occurs
public EntityResult insert(java.util.Hashtable attributesValues,
int sessionId)
throws java.lang.Exception
attributesValues parameter.
attributesValues - a Hashtable specifying pairs of key-value corresponding to the attribute (or column of a table in a database) and the value that must be stored.sessionId - a integer identifying the user or session that performs the action.
java.lang.Exception - if any exception occurs
public EntityResult update(java.util.Hashtable attributesValues,
java.util.Hashtable keysValues,
int sessionId)
throws java.lang.Exception
attributesValues over the set
of records defined by keysValues. So, only the records that comply with the conditions specified by keysValues
will be updated to the new values specified by attributesValues.
attributesValues - the data for updating the records to. The keys specify the attributes (or columns) and the values, the values for these columns.keysValues - the conditions that the records to be updated must fulfill. The keys specify the attributes (or columns) and the values, the values for these columns.sessionId - a integer identifying the user or session that performs the action.
java.lang.Exception - if any exception occurs
public EntityResult delete(java.util.Hashtable keysValues,
int sessionId)
throws java.lang.Exception
keysValues. So, only the records that comply with the conditions specified by keysValues
will be deleted.
keysValues - the conditions that the records to be deleted must fulfill. The keys specify the attributes (or columns) and the values, the values for these columns.sessionId - a integer identifying the user or session that performs the action.
java.lang.Exception - if any exception occurs
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||