Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metadata.mappings

public Class CascadeMetadata

extends ORMetadata
Class Inheritance
Imports
org.eclipse.persistence.internal.jpa.metadata.ORMetadata, org.eclipse.persistence.internal.jpa.metadata.accessors.MetadataAccessor, org.eclipse.persistence.mappings.ForeignReferenceMapping

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.
Author
Guy Pelletier
Since
EclipseLink 1.0

Field Summary

Modifier and TypeField and Description
private Boolean
private Boolean
private Boolean
private Boolean
private Boolean
private Boolean
Inherited from org.eclipse.persistence.internal.jpa.metadata.ORMetadata:
m_project

Constructor Summary

AccessConstructor and Description
public
CascadeMetadata()

INTERNAL: Used for XML loading.

public
CascadeMetadata(Object[] cascadeTypes, MetadataAccessor accessor)

INTERNAL: Used for annotation loading.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
objectToCompare
)

Implements abstract org.eclipse.persistence.internal.jpa.metadata.ORMetadata.equals.

INTERNAL:
public Boolean
getCascadeAll()

INTERNAL: Used for OX mapping.

public Boolean
getCascadeDetach()

INTERNAL: Used for OX mapping.

public Boolean
getCascadeMerge()

INTERNAL: Used for OX mapping.

public Boolean
getCascadePersist()

INTERNAL: Used for OX mapping.

public Boolean
getCascadeRefresh()

INTERNAL: Used for OX mapping.

public Boolean
getCascadeRemove()

INTERNAL: Used for OX mapping.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
public boolean
isCascadeAll()

INTERNAL: Used for OX mapping.

public boolean
isCascadeDetach()

INTERNAL: Used for OX mapping.

public boolean
isCascadeMerge()

INTERNAL: Used for OX mapping.

public boolean
isCascadePersist()

INTERNAL: Used for OX mapping.

public boolean
isCascadeRefresh()

INTERNAL: Used for OX mapping.

public boolean
isCascadeRemove()

INTERNAL: Used for OX mapping.

public void
process(ForeignReferenceMapping mapping)

INTERNAL: Process the cascade types for the given mapping.

public void
setCascadeAll(Boolean cascadeAll)

INTERNAL: Used for OX mapping.

public void
setCascadeDetach(Boolean cascadeDetach)

INTERNAL: Used for OX mapping.

public void
setCascadeMerge(Boolean cascadeMerge)

INTERNAL: Used for OX mapping.

public void
setCascadePersist(Boolean cascadePersist)

INTERNAL: Used for OX mapping.

public void
setCascadeRefresh(Boolean cascadeRefresh)

INTERNAL: Used for OX mapping.

public void
setCascadeRemove(Boolean cascadeRemove)

INTERNAL: Used for OX mapping.

Inherited from org.eclipse.persistence.internal.jpa.metadata.ORMetadata:
getAccessibleObjectgetAccessibleObjectNamegetAnnotationgetBoxedTypegetDatabaseTypeEnumgetEntityMappingsgetFullyQualifiedClassNamegetIdentifiergetJavaClassgetJavaClassNamegetLoadergetLocationgetLoggergetMetadataClassgetMetadataClassgetMetadataClassgetMetadataFactorygetNamegetPrimitiveClassForNamegetProjectgetTextgetXMLElementhasIdentifierhasTextinitXMLClassNameinitXMLObjectinitXMLObjectinitXMLObjectsinitXMLTextObjectloadedFromAnnotationloadedFromEclipseLinkXMLloadedFromXMLmergemergeORObjectListsmergeORObjectsmergeSimpleObjectsreloadEntityreloadMappedSuperclasssetAccessibleObjectsetEntityMappingssetFieldNamesetFieldNamesetProjectshouldOverridevaluesMatchvaluesMatch

Field Detail

m_cascadeAllback to summary
private Boolean m_cascadeAll
m_cascadeDetachback to summary
private Boolean m_cascadeDetach
m_cascadeMergeback to summary
private Boolean m_cascadeMerge
m_cascadePersistback to summary
private Boolean m_cascadePersist
m_cascadeRefreshback to summary
private Boolean m_cascadeRefresh
m_cascadeRemoveback to summary
private Boolean m_cascadeRemove

Constructor Detail

CascadeMetadataback to summary
public CascadeMetadata()

INTERNAL: Used for XML loading.

CascadeMetadataback to summary
public CascadeMetadata(Object[] cascadeTypes, MetadataAccessor accessor)

INTERNAL: Used for annotation loading.

Method Detail

equalsback to summary
public boolean equals(Object objectToCompare)

Implements abstract org.eclipse.persistence.internal.jpa.metadata.ORMetadata.equals.

INTERNAL:

Parameters
objectToCompare:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getCascadeAllback to summary
public Boolean getCascadeAll()

INTERNAL: Used for OX mapping.

getCascadeDetachback to summary
public Boolean getCascadeDetach()

INTERNAL: Used for OX mapping.

getCascadeMergeback to summary
public Boolean getCascadeMerge()

INTERNAL: Used for OX mapping.

getCascadePersistback to summary
public Boolean getCascadePersist()

INTERNAL: Used for OX mapping.

getCascadeRefreshback to summary
public Boolean getCascadeRefresh()

INTERNAL: Used for OX mapping.

getCascadeRemoveback to summary
public Boolean getCascadeRemove()

INTERNAL: Used for OX mapping.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
isCascadeAllback to summary
public boolean isCascadeAll()

INTERNAL: Used for OX mapping.

isCascadeDetachback to summary
public boolean isCascadeDetach()

INTERNAL: Used for OX mapping.

isCascadeMergeback to summary
public boolean isCascadeMerge()

INTERNAL: Used for OX mapping.

isCascadePersistback to summary
public boolean isCascadePersist()

INTERNAL: Used for OX mapping.

isCascadeRefreshback to summary
public boolean isCascadeRefresh()

INTERNAL: Used for OX mapping.

isCascadeRemoveback to summary
public boolean isCascadeRemove()

INTERNAL: Used for OX mapping.

processback to summary
public void process(ForeignReferenceMapping mapping)

INTERNAL: Process the cascade types for the given mapping.

setCascadeAllback to summary
public void setCascadeAll(Boolean cascadeAll)

INTERNAL: Used for OX mapping.

setCascadeDetachback to summary
public void setCascadeDetach(Boolean cascadeDetach)

INTERNAL: Used for OX mapping.

setCascadeMergeback to summary
public void setCascadeMerge(Boolean cascadeMerge)

INTERNAL: Used for OX mapping.

setCascadePersistback to summary
public void setCascadePersist(Boolean cascadePersist)

INTERNAL: Used for OX mapping.

setCascadeRefreshback to summary
public void setCascadeRefresh(Boolean cascadeRefresh)

INTERNAL: Used for OX mapping.

setCascadeRemoveback to summary
public void setCascadeRemove(Boolean cascadeRemove)

INTERNAL: Used for OX mapping.