org.apache.cayenne.lifecycle.relationship
Class ObjectIdRelationshipHandler
java.lang.Object
org.apache.cayenne.lifecycle.relationship.ObjectIdRelationshipHandler
public class ObjectIdRelationshipHandler
- extends Object
- Since:
- 3.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
referenceableHandler
protected IdCoder referenceableHandler
ObjectIdRelationshipHandler
public ObjectIdRelationshipHandler(IdCoder referenceableHandler)
objectIdRelationshipName
public String objectIdRelationshipName(String uuidPropertyName)
objectIdPropertyName
public String objectIdPropertyName(DataObject object)
relate
public void relate(DataObject from,
DataObject to)
- Establishes an ObjectId relationship between two objects. Objects must be
registered in the same ObjectContext. "from" argument is the object annotated with
UuidRelationship. Second argument can optionally be null.
Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.