E
- The type of the container entityK
- The type of the key of the mapT
- The type of the entity inside of the collectionpublic class MapProperty<E,K,T> extends PluralProperty<E,Map<K,T>,T>
EntityClass
that is a Map
.Constructor and Description |
---|
MapProperty(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override)
Creates a new map property.
|
Modifier and Type | Method and Description |
---|---|
List<EntityStatement> |
createPostInsertStatements(E entity)
Creates additional SQL statements that are necessary after this property is written (e.g. for mapping tables) .
|
Collection<?> |
findReferencedEntities(E entity)
Finds all entities in the current property, that are referenced.
|
List<EntityStatement> |
generatePendingStatements(E entity,
Object writtenEntity,
Object... arguments)
Generates the update statements for an entity that are required after another entity was generated.
|
Map<K,T> |
getValue(E entity)
Resolves the current value for this property on the given entity.
|
addInsertExpression, buildEmbeddedProperties, buildIdColumn, buildIdColumn, buildTableName, buildTableName, buildValueColumn, getIdColumn, getPropertyArgument, getTable, getValueColumn, isEmbedded, isRequired, isTableColumn
createPreInsertStatements, failIfRequired, getExpression, getName, getPredicate, setValue, toString
public MapProperty(EntityClass<?> sourceClass, AttributeAccessor attribute, javax.persistence.AssociationOverride override)
sourceClass
- the description of the current inspected class of the fieldattribute
- the accessor of the represented attributeoverride
- the configured assocation overridepublic List<EntityStatement> createPostInsertStatements(E entity)
Property
public Collection<?> findReferencedEntities(E entity)
Property
public List<EntityStatement> generatePendingStatements(E entity, Object writtenEntity, Object... arguments)
Property
EntityClass.markPendingUpdates(E, V, org.fastnate.generator.context.Property<V, ?>, java.lang.Object...)
was called before for writtenEntity
Copyright © 2016 fastnate.org. All rights reserved.