com.enspire.gemini
Interface RelationshipUpdater

All Known Implementing Classes:
CollectionPropertyRelationshipUpdater, SimplePropertyRelationshipUpdater

public interface RelationshipUpdater

Updates one end of a bidirectional relationship.

Since:
1.0
Author:
Dragan Djuric

Method Summary
 java.lang.Object set(java.lang.Object owner, java.lang.String propertyName, java.lang.Object value)
          Associates two objects through the property that this updater updates, but only if they are not already associated.
 java.lang.Object unset(java.lang.Object owner, java.lang.String propertyName, java.lang.Object value)
          Disassociates two objects that are associated through the property (denoted with propertyName attribute), but only if they are already associated.
 

Method Detail

set

java.lang.Object set(java.lang.Object owner,
                     java.lang.String propertyName,
                     java.lang.Object value)
Associates two objects through the property that this updater updates, but only if they are not already associated.

Parameters:
owner - the owner of the property
propertyName - the name of the property that should be updated
value - the value of the object that is gong to be associated with owner
Returns:
the old value of the property

unset

java.lang.Object unset(java.lang.Object owner,
                       java.lang.String propertyName,
                       java.lang.Object value)
Disassociates two objects that are associated through the property (denoted with propertyName attribute), but only if they are already associated.

Parameters:
owner - the owner of a property
propertyName -
value - the value of the object that is gong to be associated with owner the old value of the property
Returns:
the old value of the property


Copyright © 2005 e-nspire. All Rights Reserved.