|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.enspire.gemini.updaters.SimplePropertyRelationshipUpdater
public class SimplePropertyRelationshipUpdater
Updates one end of a relationship, that have the upper multiplicity 1, and is represented as a simple Java property, not including primitive Java types.
Constructor Summary | |
---|---|
SimplePropertyRelationshipUpdater()
Constructs an object leaving its dependencies unset. |
|
SimplePropertyRelationshipUpdater(com.enspire.reflection.PropertyReflection reflection)
Constructs an object and sets the propertyReflection dependency. |
Method Summary | |
---|---|
com.enspire.reflection.PropertyReflection |
getPropertyReflection()
Gets propertyReflection - the object that is used to manipulate JavaBean properties. |
java.lang.Object |
set(java.lang.Object owner,
java.lang.String propertyName,
java.lang.Object value)
Sets the the property to new value if it is diferent from the old value. |
void |
setPropertyReflection(com.enspire.reflection.PropertyReflection propertyReflection)
Sets propertyReflection - the object that is used to manipulate JavaBean properties. |
java.lang.Object |
unset(java.lang.Object owner,
java.lang.String propertyName,
java.lang.Object value)
Sets the property to null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplePropertyRelationshipUpdater()
public SimplePropertyRelationshipUpdater(com.enspire.reflection.PropertyReflection reflection)
reflection
- the object that is used to manipulate JavaBean properties.Method Detail |
---|
public com.enspire.reflection.PropertyReflection getPropertyReflection()
public void setPropertyReflection(com.enspire.reflection.PropertyReflection propertyReflection)
propertyReflection
- the propertyReflection to set.public java.lang.Object set(java.lang.Object owner, java.lang.String propertyName, java.lang.Object value)
set
in interface RelationshipUpdater
owner
- the owner of the propertypropertyName
- the name of the property that should be updatedvalue
- the value of the object that is gong to be associated with
owner
RelationshipUpdater.set(java.lang.Object, java.lang.String, java.lang.Object)
public java.lang.Object unset(java.lang.Object owner, java.lang.String propertyName, java.lang.Object value)
null
.
unset
in interface RelationshipUpdater
owner
- the owner of a propertyvalue
- the value of the object that is gong to be associated with
owner
the old value of the property
RelationshipUpdater.unset(java.lang.Object, java.lang.String, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |