Z - the source typeX - the destination typepublic abstract class ParentMapping<Z,X> extends Mapping<Z,X,X>
| Constructor and Description |
|---|
ParentMapping(ParentMapping<?,Z> parent,
EmbeddedAttribute<? super Z,X> attribute,
Class<X> javaType,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssociations(List<AssociationMapping<?,?,?>> associations)
Adds the associations to the list of associations.
|
void |
addBasicMappings(List<BasicMapping<?,?>> 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<PluralMapping<?,?,?>> elementCollections)
Adds the plural mappings to the list of element collections.
|
void |
addSingularMappings(List<Mapping<?,?,?>> mappings)
Adds the singular mappings to the list of mappings.
|
void |
createMappings()
Creates the mappings.
|
Mapping<? super X,?,?> |
getChild(String name)
Returns the mapping corresponding to the 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.
|
public ParentMapping(ParentMapping<?,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<AssociationMapping<?,?,?>> associations)
associations - the list of associationspublic void addBasicMappings(List<BasicMapping<?,?>> mappings)
mappings - the list of mappingspublic void addJoinedMappings(List<JoinedMapping<?,?,?>> mappingsJoined)
mappingsJoined - the list of mappingspublic void addPluralMappings(List<PluralMapping<?,?,?>> elementCollections)
elementCollections - the list of element collectionspublic void addSingularMappings(List<Mapping<?,?,?>> mappings)
mappings - the list of mappingspublic void createMappings()
public Mapping<? super X,?,?> getChild(String name)
name - the name of the child mappingpublic Collection<Mapping<? super X,?,?>> getChildren()
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.