Z - the source typeX - the destination typepublic abstract class AbstractParentMapping<Z,X> extends AbstractMapping<Z,X,X> implements ParentMapping<Z,X>
| Constructor and Description |
|---|
AbstractParentMapping(AbstractParentMapping<?,Z> parent,
EmbeddedAttribute<? super Z,X> attribute,
Class<X> javaType,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociations(List<AssociationMappingImpl<?,?,?>> associations)
Adds the associations to the list of associations.
|
void |
addBasicMappings(List<BasicMappingImpl<?,?>> mappings)
Adds the basic mappings to the list of mappings.
|
void |
addJoinedMappings(List<JoinedMapping<?,?,?>> mappingsJoined)
Adds the joined mappings to the list of mappings.
|
void |
addPluralMappings(List<PluralMappingEx<?,?,?>> elementCollections)
Adds the plural mappings to the list of element collections.
|
void |
addSingularMappings(List<AbstractMapping<?,?,?>> mappings)
Adds the singular mappings to the list of mappings.
|
void |
createMappings()
Creates the mappings.
|
AbstractMapping<? super X,?,?> |
getChild(String name) |
Collection<Mapping<? super X,?,?>> |
getChildren()
Returns the children of the mapping.
|
JoinedMapping<?,?,?>[] |
getEagerMappings()
Returns the eager mappings.
|
AttributeImpl<?,?> |
getRootAttribute(AttributeImpl<?,?> attribute)
Returns the root attribute.
|
String |
getRootPath(String path)
Returns the root path.
|
abstract ManagedTypeImpl<? super X> |
getType()
Returns the entity or embeddable type of the mapping.
|
protected void |
inherit(Collection<Mapping<? super X,?,?>> children)
Inherits the mappings from the parent.
|
abstract boolean |
isId()
Returns if the mapping is part of an id attribute.
|
equals, get, getAttribute, getJavaMember, getJavaType, getLocator, getName, getParent, getPath, getRoot, hashCode, isCollection, set, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, getJavaMember, getJavaType, getLocator, getName, getParent, getPath, getRoot, isCollection, setpublic AbstractParentMapping(AbstractParentMapping<?,Z> parent, EmbeddedAttribute<? super Z,X> attribute, Class<X> javaType, String name)
parent - the parent mappingattribute - the attributejavaType - the java typename - the name of the mappingpublic void addAssociations(List<AssociationMappingImpl<?,?,?>> associations)
associations - the list of associationspublic void addBasicMappings(List<BasicMappingImpl<?,?>> mappings)
mappings - the list of mappingspublic void addJoinedMappings(List<JoinedMapping<?,?,?>> mappingsJoined)
mappingsJoined - the list of mappingspublic void addPluralMappings(List<PluralMappingEx<?,?,?>> elementCollections)
elementCollections - the list of element collectionspublic void addSingularMappings(List<AbstractMapping<?,?,?>> mappings)
mappings - the list of mappingspublic void createMappings()
public AbstractMapping<? super X,?,?> getChild(String name)
getChild in interface ParentMapping<Z,X>public Collection<Mapping<? super X,?,?>> getChildren()
getChildren in interface ParentMapping<Z,X>public JoinedMapping<?,?,?>[] getEagerMappings()
public AttributeImpl<?,?> getRootAttribute(AttributeImpl<?,?> attribute)
attribute - the current attributepublic String getRootPath(String path)
path - the current pathpublic abstract ManagedTypeImpl<? super X> getType()
protected void inherit(Collection<Mapping<? super X,?,?>> children)
children - the children to inheritpublic abstract boolean isId()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.