Class ReferencedObjectException

All Implemented Interfaces:
Serializable

public class ReferencedObjectException extends DatabaseException
Thrown on an attempt to delete an object which is still referenced by a ReferenceField configured for DeleteAction.EXCEPTION.
See Also:
  • Method Details

    • getId

      public ObjId getId()
      Get the ID of the object that could not be deleted because it was referenced.
      Returns:
      referenced object's ID
    • getReferrer

      public ObjId getReferrer()
      Get the ID of the object that still refers to the object that was to be deleted.
      Returns:
      referencing object's ID
    • getFieldName

      public String getFieldName()
      Get the name of the field in the referring object that still referrs to the object that was supposed to be deleted.
      Returns:
      reference field name