org.apache.cayenne.lifecycle.relationship
Class ObjectIdRelationshipHandler

java.lang.Object
  extended by org.apache.cayenne.lifecycle.relationship.ObjectIdRelationshipHandler

public class ObjectIdRelationshipHandler
extends Object

Since:
3.1

Field Summary
protected  IdCoder referenceableHandler
           
 
Constructor Summary
ObjectIdRelationshipHandler(IdCoder referenceableHandler)
           
 
Method Summary
 String objectIdPropertyName(DataObject object)
           
 String objectIdRelationshipName(String uuidPropertyName)
           
 void relate(DataObject from, DataObject to)
          Establishes an ObjectId relationship between two objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referenceableHandler

protected IdCoder referenceableHandler
Constructor Detail

ObjectIdRelationshipHandler

public ObjectIdRelationshipHandler(IdCoder referenceableHandler)
Method Detail

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.