Class ObjectIdRelationshipHandler

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

public class ObjectIdRelationshipHandler extends Object
Since:
3.1
  • Field Details

    • referenceableHandler

      protected IdCoder referenceableHandler
  • Constructor Details

    • ObjectIdRelationshipHandler

      public ObjectIdRelationshipHandler(IdCoder referenceableHandler)
  • Method Details

    • 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.