| Modifier and Type | Field and Description |
|---|---|
| private BatchFetchMetadata | |
| private CascadeMetadata | |
| private Boolean | |
| private String | |
| private ForeignKeyMetadata | |
| private List | |
| private String | |
| private List | |
| private JoinTableMetadata | |
| private String | |
| private Boolean | |
| private Boolean | |
| private Boolean | |
| protected MetadataClass | |
| private MetadataClass | |
| private String |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | RelationshipAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
INTERNAL: |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addJoinTableRelationKeyFields(List<JoinColumnMetadata> joinColumns, RelationTableMechanism mechanism, String defaultFieldName, MetadataDescriptor descriptor, boolean isSource)
INTERNAL: Add the relation key fields to a many to many mapping. |
| public boolean | equals(Object
the reference object with which to compare. objectToCompare)Overrides org. |
| public BatchFetchMetadata | |
| public CascadeMetadata | |
| public Boolean | |
| public abstract String | |
| protected DatabaseTable | getDefaultTableForEntityMapKey()
INTERNAL:
Return the default table to hold the foreign key of a MapKey when
and Entity is used as the MapKey
|
| public String | |
| public ForeignKeyMetadata | |
| public List | |
| public String | |
| public List | |
| public JoinTableMetadata | |
| protected JoinTableMetadata | getJoinTableMetadata()
INTERNAL: This method will return the join table metadata to be processed with this relationship accessor. |
| protected abstract String | |
| public String | |
| public Boolean | |
| public Boolean | |
| protected DatabaseMapping | |
| public Boolean | |
| public MetadataDescriptor | getReferenceDescriptor()
INTERNAL:
Return the reference metadata descriptor for this accessor.
|
| public MetadataClass | |
| public String | |
| public int | hashCode()
Overrides org. |
| protected boolean | hasJoinTable()
INTERNAL: Return true if a join table exists for this accessor (either directly set or through an association override). |
| public boolean | hasMappedBy()
INTERNAL: Return true if this accessor is the non owning side of the relationship, that is, has a mapped by value. |
| public void | initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
Overrides org. |
| public boolean | |
| public boolean | |
| public boolean | |
| protected boolean | |
| public boolean | |
| public boolean | isValueHolderInterface()
INTERNAL: If somehow we are processing a class that was weaved to have value holders, we should ignore the processing of this mapping. |
| public void | process()
Implements abstract org. |
| protected void | processBatchFetch(ForeignReferenceMapping mapping)
INTERNAL: Set the batch fetch type on the foreign reference mapping. |
| protected void | |
| protected void | processJoinTable(ForeignReferenceMapping mapping, RelationTableMechanism mechanism, JoinTableMetadata joinTable)
INTERNAL: Process a MetadataJoinTable. |
| protected void | processMappedByRelationTable(RelationTableMechanism ownerMechanism, RelationTableMechanism mechanism)
INTERNAL: |
| protected void | processOrphanRemoval(ForeignReferenceMapping mapping)
INTERNAL: This method should be called for all mappings even though they may not support. |
| protected void | processRelationshipMapping(ForeignReferenceMapping mapping)
INTERNAL: Process settings common to ForeignReferenceMapping. |
| protected void | setAccessorMethods(DatabaseMapping mapping)
Overrides org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected boolean |
| m_batchFetch | back to summary |
|---|---|
| private BatchFetchMetadata m_batchFetch | |
| m_cascade | back to summary |
|---|---|
| private CascadeMetadata m_cascade | |
| m_cascadeOnDelete | back to summary |
|---|---|
| private Boolean m_cascadeOnDelete | |
| m_fetch | back to summary |
|---|---|
| private String m_fetch | |
| m_foreignKey | back to summary |
|---|---|
| private ForeignKeyMetadata m_foreignKey | |
| m_joinColumns | back to summary |
|---|---|
| private List<JoinColumnMetadata> m_joinColumns | |
| m_joinFetch | back to summary |
|---|---|
| private String m_joinFetch | |
| m_joinFields | back to summary |
|---|---|
| private List<JoinFieldMetadata> m_joinFields | |
| m_joinTable | back to summary |
|---|---|
| private JoinTableMetadata m_joinTable | |
| m_mappedBy | back to summary |
|---|---|
| private String m_mappedBy | |
| m_nonCacheable | back to summary |
|---|---|
| private Boolean m_nonCacheable | |
| m_orphanRemoval | back to summary |
|---|---|
| private Boolean m_orphanRemoval | |
| m_privateOwned | back to summary |
|---|---|
| private Boolean m_privateOwned | |
| m_referenceClass | back to summary |
|---|---|
| protected MetadataClass m_referenceClass | |
| m_targetEntity | back to summary |
|---|---|
| private MetadataClass m_targetEntity | |
| m_targetEntityName | back to summary |
|---|---|
| private String m_targetEntityName | |
| RelationshipAccessor | back to summary |
|---|---|
| protected RelationshipAccessor(String xmlElement) INTERNAL: | |
| RelationshipAccessor | back to summary |
|---|---|
| protected RelationshipAccessor(MetadataAnnotation annotation, MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor) INTERNAL: | |
| addJoinTableRelationKeyFields | back to summary |
|---|---|
| protected void addJoinTableRelationKeyFields(List<JoinColumnMetadata> joinColumns, RelationTableMechanism mechanism, String defaultFieldName, MetadataDescriptor descriptor, boolean isSource) INTERNAL: Add the relation key fields to a many to many mapping. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object objectToCompare) Overrides org. INTERNAL:
| |
| getBatchFetch | back to summary |
|---|---|
| public BatchFetchMetadata getBatchFetch() INTERNAL: Used for OX mapping. | |
| getCascade | back to summary |
|---|---|
| public CascadeMetadata getCascade() INTERNAL: Used for OX mapping. | |
| getCascadeOnDelete | back to summary |
|---|---|
| public Boolean getCascadeOnDelete() INTERNAL: Used for OX mapping. | |
| getDefaultFetchType | back to summary |
|---|---|
| public abstract String getDefaultFetchType() Overrides org. INTERNAL:
| |
| getDefaultTableForEntityMapKey | back to summary |
|---|---|
| protected DatabaseTable getDefaultTableForEntityMapKey() INTERNAL: Return the default table to hold the foreign key of a MapKey when and Entity is used as the MapKey
| |
| getFetch | back to summary |
|---|---|
| public String getFetch() INTERNAL: Used for OX mapping. | |
| getForeignKey | back to summary |
|---|---|
| public ForeignKeyMetadata getForeignKey() INTERNAL: Used for OX mapping. | |
| getJoinColumns | back to summary |
|---|---|
| public List INTERNAL: Used for OX mapping. | |
| getJoinFetch | back to summary |
|---|---|
| public String getJoinFetch() INTERNAL: Used for OX mapping. | |
| getJoinFields | back to summary |
|---|---|
| public List INTERNAL: Used for OX mapping. | |
| getJoinTable | back to summary |
|---|---|
| public JoinTableMetadata getJoinTable() INTERNAL: Used for OX mapping. | |
| getJoinTableMetadata | back to summary |
|---|---|
| protected JoinTableMetadata getJoinTableMetadata() INTERNAL: This method will return the join table metadata to be processed with this relationship accessor. It will first check for a join table from an association override, followed by a join table defined directly on the accessor. If neither is present, a join table metadata is defaulted. | |
| getLoggingContext | back to summary |
|---|---|
| protected abstract String getLoggingContext() INTERNAL: Return the logging context for this accessor. | |
| getMappedBy | back to summary |
|---|---|
| public String getMappedBy() INTERNAL: Used for OX mapping. | |
| getNonCacheable | back to summary |
|---|---|
| public Boolean getNonCacheable() INTERNAL: Used for OX mapping. | |
| getOrphanRemoval | back to summary |
|---|---|
| public Boolean getOrphanRemoval() INTERNAL: Used for OX mapping. | |
| getOwningMapping | back to summary |
|---|---|
| protected DatabaseMapping getOwningMapping() INTERNAL: Method to return an owner mapping. It will tell the owner class to process itself if it hasn't already done so. Assumes that a mapped by value has been specified and that a check against mappedBy has been done. | |
| getPrivateOwned | back to summary |
|---|---|
| public Boolean getPrivateOwned() INTERNAL: Used for OX mapping. | |
| getReferenceDescriptor | back to summary |
|---|---|
| public MetadataDescriptor getReferenceDescriptor() INTERNAL: Return the reference metadata descriptor for this accessor. This method does additional checks to make sure that the target entity is indeed an entity class.
| |
| getTargetEntity | back to summary |
|---|---|
| public MetadataClass getTargetEntity() INTERNAL: Return the target entity for this accessor. | |
| getTargetEntityName | back to summary |
|---|---|
| public String getTargetEntityName() INTERNAL: Used for OX mapping. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| hasJoinTable | back to summary |
|---|---|
| protected boolean hasJoinTable() INTERNAL: Return true if a join table exists for this accessor (either directly set or through an association override). | |
| hasMappedBy | back to summary |
|---|---|
| public boolean hasMappedBy() INTERNAL: Return true if this accessor is the non owning side of the relationship, that is, has a mapped by value. | |
| initXMLObject | back to summary |
|---|---|
| public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) Overrides org. INTERNAL:
| |
| isCascadeOnDelete | back to summary |
|---|---|
| public boolean isCascadeOnDelete() INTERNAL: | |
| isLazy | back to summary |
|---|---|
| public boolean isLazy() INTERNAL: Return if the accessor should be lazy fetched. | |
| isNonCacheable | back to summary |
|---|---|
| public boolean isNonCacheable() INTERNAL: Used for OX mapping. | |
| isOrphanRemoval | back to summary |
|---|---|
| protected boolean isOrphanRemoval() INTERNAL: Return true is this relationship employs orphanRemoval. | |
| isPrivateOwned | back to summary |
|---|---|
| public boolean isPrivateOwned() INTERNAL: Used for OX mapping. | |
| isValueHolderInterface | back to summary |
|---|---|
| public boolean isValueHolderInterface() INTERNAL: If somehow we are processing a class that was weaved to have value holders, we should ignore the processing of this mapping. | |
| process | back to summary |
|---|---|
| public void process() Implements abstract org. INTERNAL: Common validation done by all relationship accessors.
| |
| processBatchFetch | back to summary |
|---|---|
| protected void processBatchFetch(ForeignReferenceMapping mapping) INTERNAL: Set the batch fetch type on the foreign reference mapping. | |
| processCascadeTypes | back to summary |
|---|---|
| protected void processCascadeTypes(ForeignReferenceMapping mapping) INTERNAL: | |
| processJoinTable | back to summary |
|---|---|
| protected void processJoinTable(ForeignReferenceMapping mapping, RelationTableMechanism mechanism, JoinTableMetadata joinTable) INTERNAL: Process a MetadataJoinTable. | |
| processMappedByRelationTable | back to summary |
|---|---|
| protected void processMappedByRelationTable(RelationTableMechanism ownerMechanism, RelationTableMechanism mechanism) INTERNAL: | |
| processOrphanRemoval | back to summary |
|---|---|
| protected void processOrphanRemoval(ForeignReferenceMapping mapping) INTERNAL: This method should be called for all mappings even though they may not support. The reason is that we want to log a message for those mappings that try to employ a private owned setting when it is not supported on their mapping. Order of checking is as follows: 1 - check for orphanRemoval first. Through meta data, this can only be true for 1-1, 1-M and V1-1 2 - check for isPrivateOwned. Do no check the variable directly as the isPrivateOwned method is overridden in those classes that do not support it (to check if the user decorated the mapping with a private owned and log a warning message that we are ignoring it.) | |
| processRelationshipMapping | back to summary |
|---|---|
| protected void processRelationshipMapping(ForeignReferenceMapping mapping) INTERNAL: Process settings common to ForeignReferenceMapping. | |
| setAccessorMethods | back to summary |
|---|---|
| protected void setAccessorMethods(DatabaseMapping mapping) Overrides org. INTERNAL: Set the getter and setter access methods for this accessor.
| |
| setBatchFetch | back to summary |
|---|---|
| public void setBatchFetch(BatchFetchMetadata batchFetch) INTERNAL: Used for OX mapping. | |
| setCascade | back to summary |
|---|---|
| public void setCascade(CascadeMetadata cascade) INTERNAL: Used for OX mapping. | |
| setCascadeOnDelete | back to summary |
|---|---|
| public void setCascadeOnDelete(Boolean cascadeOnDelete) INTERNAL: Used for OX mapping. | |
| setFetch | back to summary |
|---|---|
| public void setFetch(String fetch) INTERNAL: Used for OX mapping. | |
| setForeignKey | back to summary |
|---|---|
| public void setForeignKey(ForeignKeyMetadata foreignKey) INTERNAL: Used for OX mapping. | |
| setJoinColumns | back to summary |
|---|---|
| public void setJoinColumns(List<JoinColumnMetadata> joinColumns) INTERNAL: Used for OX mapping. | |
| setJoinFetch | back to summary |
|---|---|
| public void setJoinFetch(String joinFetch) INTERNAL: Used for OX mapping. | |
| setJoinFields | back to summary |
|---|---|
| public void setJoinFields(List<JoinFieldMetadata> joinFields) INTERNAL: Used for OX mapping. | |
| setJoinTable | back to summary |
|---|---|
| public void setJoinTable(JoinTableMetadata joinTable) INTERNAL: Used for OX mapping. | |
| setMappedBy | back to summary |
|---|---|
| public void setMappedBy(String mappedBy) INTERNAL: Used for OX mapping. | |
| setNonCacheable | back to summary |
|---|---|
| public void setNonCacheable(Boolean noncacheable) INTERNAL: Used for OX mapping. | |
| setOrphanRemoval | back to summary |
|---|---|
| public void setOrphanRemoval(Boolean orphanRemoval) INTERNAL: Used for OX mapping. | |
| setPrivateOwned | back to summary |
|---|---|
| public void setPrivateOwned(Boolean privateOwned) INTERNAL: Used for OX mapping. | |
| setTargetEntity | back to summary |
|---|---|
| public void setTargetEntity(MetadataClass targetEntity) INTERNAL: | |
| setTargetEntityName | back to summary |
|---|---|
| public void setTargetEntityName(String targetEntityName) INTERNAL: Used for OX mapping. | |
| usesIndirection | back to summary |
|---|---|
| protected boolean usesIndirection() Overrides org. INTERNAL:
| |