public class AssociationAttributeMetadataImpl extends AttributeMetadataImpl implements AssociationAttributeMetadata
AssociationAttributeMetadata.| Constructor and Description |
|---|
AssociationAttributeMetadataImpl(Member member,
AssociationAttributeMetadata metadata) |
AssociationAttributeMetadataImpl(Member member,
String name,
Set<Class<? extends Annotation>> parsed,
String targetEntity,
javax.persistence.FetchType fetchType,
javax.persistence.CascadeType[] cascades) |
| Modifier and Type | Method and Description |
|---|---|
Set<javax.persistence.CascadeType> |
getCascades()
Returns the cascades of the association attribute.
|
FetchStrategyType |
getFetchStrategy()
Returns the fetching strategy for eager joins.
|
javax.persistence.FetchType |
getFetchType()
Returns the fetch type of the association attribute.
|
List<JoinColumnMetadata> |
getJoinColumns()
Returns the list of join column definition.
|
JoinTableMetadata |
getJoinTable()
Returns the join table definition.
|
int |
getMaxFetchDepth()
Returns the max fetch depth for eager joins.
|
String |
getTargetEntity()
Returns the name of the target entity of the association attribute.
|
protected boolean |
handleId(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
Id annotation on OneToOne and ManyToOne annotations. |
protected String |
handleMapKey(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
MapKey annotation. |
protected String |
handleMapKeyClassName(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
MapKeyClass annotation. |
protected ColumnMetadata |
handleMapKeyColumn(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
MapKeyColumn annotation. |
protected javax.persistence.EnumType |
handleMapKeyEnumType(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
MapKeyEnumerated annotation. |
protected javax.persistence.TemporalType |
handleMapKeyTemporalType(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
MapKeyTemporal annotation. |
protected String |
handleMapsId(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
MapsId annotation. |
protected String |
handleOrderBy(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
OrderBy annotation. |
protected ColumnMetadata |
handleOrderColumn(Member member,
Set<Class<? extends Annotation>> parsed)
Handles the
OrderColumn annotation. |
getAccess, getLocator, getMember, getName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAccessgetNamegetLocatorpublic AssociationAttributeMetadataImpl(Member member, AssociationAttributeMetadata metadata)
member - the java member of association attributemetadata - the metadata definition of the association attributepublic AssociationAttributeMetadataImpl(Member member, String name, Set<Class<? extends Annotation>> parsed, String targetEntity, javax.persistence.FetchType fetchType, javax.persistence.CascadeType[] cascades)
member - the java member of association attributename - the name of the association attributeparsed - the set of annotations parsedtargetEntity - the class of the target entity of the association attributefetchType - the fetch type of the of the association attributecascades - the cascades of the of the association attributepublic Set<javax.persistence.CascadeType> getCascades()
getCascades in interface AssociationAttributeMetadatapublic FetchStrategyType getFetchStrategy()
getFetchStrategy in interface AssociationAttributeMetadatapublic javax.persistence.FetchType getFetchType()
getFetchType in interface AssociationAttributeMetadatapublic List<JoinColumnMetadata> getJoinColumns()
getJoinColumns in interface AssociationMetadatapublic JoinTableMetadata getJoinTable()
getJoinTable in interface AssociationMetadatapublic int getMaxFetchDepth()
getMaxFetchDepth in interface AssociationAttributeMetadatapublic String getTargetEntity()
getTargetEntity in interface AssociationAttributeMetadataprotected boolean handleId(Member member, Set<Class<? extends Annotation>> parsed)
Id annotation on OneToOne and ManyToOne annotations.member - the memberparsed - the list of annotations parsedprotected String handleMapKey(Member member, Set<Class<? extends Annotation>> parsed)
MapKey annotation.member - the memberparsed - the list of annotations parsedprotected String handleMapKeyClassName(Member member, Set<Class<? extends Annotation>> parsed)
MapKeyClass annotation.member - the memberparsed - the list of annotations parsedprotected ColumnMetadata handleMapKeyColumn(Member member, Set<Class<? extends Annotation>> parsed)
MapKeyColumn annotation.member - the memberparsed - the list of annotations parsedprotected javax.persistence.EnumType handleMapKeyEnumType(Member member, Set<Class<? extends Annotation>> parsed)
MapKeyEnumerated annotation.member - the memberparsed - the list of annotations parsedprotected javax.persistence.TemporalType handleMapKeyTemporalType(Member member, Set<Class<? extends Annotation>> parsed)
MapKeyTemporal annotation.member - the memberparsed - the list of annotations parsedprotected String handleMapsId(Member member, Set<Class<? extends Annotation>> parsed)
MapsId annotation.member - the memberparsed - the list of annotations parsedprotected String handleOrderBy(Member member, Set<Class<? extends Annotation>> parsed)
OrderBy annotation.member - the memberparsed - the list of annotations parsedprotected ColumnMetadata handleOrderColumn(Member member, Set<Class<? extends Annotation>> parsed)
OrderColumn annotation.member - the memberparsed - the list of annotations parsedCopyright © 2012-2013 Batoo. All Rights Reserved.