java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.mappings.CascadeMetadata

public class CascadeMetadata extends ORMetadata
INTERNAL: Object to represent the cascade types specified for a relationship mapping element. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
Since:
EclipseLink 1.0
  • Constructor Details

    • CascadeMetadata

      public CascadeMetadata()
      INTERNAL: Used for XML loading.
    • CascadeMetadata

      public CascadeMetadata(Object[] cascadeTypes, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Specified by:
      equals in class ORMetadata
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getCascadeAll

      public Boolean getCascadeAll()
      INTERNAL: Used for OX mapping.
    • getCascadeDetach

      public Boolean getCascadeDetach()
      INTERNAL: Used for OX mapping.
    • getCascadeMerge

      public Boolean getCascadeMerge()
      INTERNAL: Used for OX mapping.
    • getCascadePersist

      public Boolean getCascadePersist()
      INTERNAL: Used for OX mapping.
    • getCascadeRefresh

      public Boolean getCascadeRefresh()
      INTERNAL: Used for OX mapping.
    • getCascadeRemove

      public Boolean getCascadeRemove()
      INTERNAL: Used for OX mapping.
    • isCascadeAll

      public boolean isCascadeAll()
      INTERNAL: Used for OX mapping.
    • isCascadeDetach

      public boolean isCascadeDetach()
      INTERNAL: Used for OX mapping.
    • isCascadeMerge

      public boolean isCascadeMerge()
      INTERNAL: Used for OX mapping.
    • isCascadePersist

      public boolean isCascadePersist()
      INTERNAL: Used for OX mapping.
    • isCascadeRefresh

      public boolean isCascadeRefresh()
      INTERNAL: Used for OX mapping.
    • isCascadeRemove

      public boolean isCascadeRemove()
      INTERNAL: Used for OX mapping.
    • process

      public void process(ForeignReferenceMapping mapping)
      INTERNAL: Process the cascade types for the given mapping.
    • setCascadeAll

      public void setCascadeAll(Boolean cascadeAll)
      INTERNAL: Used for OX mapping.
    • setCascadeDetach

      public void setCascadeDetach(Boolean cascadeDetach)
      INTERNAL: Used for OX mapping.
    • setCascadeMerge

      public void setCascadeMerge(Boolean cascadeMerge)
      INTERNAL: Used for OX mapping.
    • setCascadePersist

      public void setCascadePersist(Boolean cascadePersist)
      INTERNAL: Used for OX mapping.
    • setCascadeRefresh

      public void setCascadeRefresh(Boolean cascadeRefresh)
      INTERNAL: Used for OX mapping.
    • setCascadeRemove

      public void setCascadeRemove(Boolean cascadeRemove)
      INTERNAL: Used for OX mapping.