Z - the source typeX - the destination typepublic class BasicMapping<Z,X> extends Mapping<Z,X,X> implements SingularMapping<Z,X>
| Constructor and Description |
|---|
BasicMapping(ParentMapping<?,Z> parent,
BasicAttribute<? super Z,X> attribute) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fillValue(EntityTypeImpl<?> type,
ManagedInstance<?> managedInstance,
Object instance)
Fills the sequence / table generated value.
|
BasicAttribute<? super Z,X> |
getAttribute()
Returns the attribute of the mapping.
|
BasicColumn |
getColumn()
Returns the column of the mapping.
|
IdType |
getIdType()
Returns the id type of the mapping.
|
equals, get, getJavaType, getName, getParent, getPath, getRoot, hashCode, set, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitget, setpublic BasicMapping(ParentMapping<?,Z> parent, BasicAttribute<? super Z,X> attribute)
parent - the parent mappingattribute - the attributepublic boolean fillValue(EntityTypeImpl<?> type, ManagedInstance<?> managedInstance, Object instance)
The operation returns false if at least one entity needs to obtain identity from the database.
fillValue in interface SingularMapping<Z,X>type - the entity typemanagedInstance - the managed instanceinstance - the instance to fill ids.public BasicAttribute<? super Z,X> getAttribute()
getAttribute in interface SingularMapping<Z,X>getAttribute in class Mapping<Z,X,X>public BasicColumn getColumn()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.