be.SIRAPRISE.client.jsba
Interface UpdatableDBObject

All Superinterfaces:
DBObject
All Known Implementing Classes:
AbstractUpdatableDBObject, AssignmentConstraint, AssignmentConstraintCheck, Attribute, AttributeValueDistribution, Client, ConstrainedType, DatabaseConstraint, DataSpace, DbmsFile, HashingIndexSpace, Index, IndexComponent, JavaBackedType, Key, KeyAttribute, MultiHashingIndexSpace, NewAttributeDefaultValue, RecordAttribute, RecordType, Relvar, RelvarAttribute, StorageSpace, TransactionConstraint, TreeIndexSpace, TriggeredDataAction, TupleConstraint, TupleIndex, UpdatableDBObjectTemplate, User, VirtualRelvar

public interface UpdatableDBObject
extends DBObject

The UpdatableDBObject must be implemented by all classes whose objects are to be used as initiators of SIRA_PRISE update commands in the Jave/SIRA_PRISE bridge

Author:
Erwin Smout

Method Summary
 UpdatableDBObject getPreUpdateState()
          Gets The state of the object as it was built by the J/R bridging engine immediately after the object was created from a database tuple (and which should have been set by/using the setPreUpdateState() method.
 void setPreUpdateState()
          This method is called by the J/R bridging engine after an object has been setup from some tuple retrieved from the database.
 

Method Detail

setPreUpdateState

void setPreUpdateState()
This method is called by the J/R bridging engine after an object has been setup from some tuple retrieved from the database. The method must cause the object to save a copy (/clone) of all the fields that are pertinent to the database. This copy will be retrieved by the J/R bridging engine using the getPreUpdateState() method call, and will subsequently be used by the J/R bridging engine to determine which fields have changed value, and thus to determine which attributes need to be updated in the database.


getPreUpdateState

UpdatableDBObject getPreUpdateState()
Gets The state of the object as it was built by the J/R bridging engine immediately after the object was created from a database tuple (and which should have been set by/using the setPreUpdateState() method.

Returns:
The state of the object as it was built by the J/R bridging engine immediately after the object was created from a database tuple (and which should have been set by/using the setPreUpdateState() method.