E - The type of the container entityT - The type of the entity inside of the collectionpublic class CollectionProperty<E,T> extends PluralProperty<E,Collection<T>,T>
EntityClass that contains more than one value.| Constructor and Description |
|---|
CollectionProperty(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override)
Creates a new collection 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.
|
protected String |
getKeyColumn()
An optional column that contains the index / key of the values.
|
String |
getOrderColumn()
The name of the column that saves the order of the entries in the collection.
|
Collection<T> |
getValue(E entity)
Resolves the current value for this property on the given entity.
|
addInsertExpression, buildEmbeddedProperties, buildIdColumn, buildIdColumn, buildTableName, buildTableName, buildValueColumn, createDirectValueStatement, createValueExpression, createValueStatement, generatePendingStatements, getContext, getEmbeddedProperties, getIdColumn, getMappedBy, getMappedId, getPropertyArgument, getRequiredEmbeddedProperties, getTable, getValueClass, getValueColumn, getValueConverter, getValueEntityClass, isEmbedded, isEntityReference, isRequired, isTableColumn, isUseTargetTablecreatePreInsertStatements, failIfRequired, getAttribute, getExpression, getName, getPredicate, setValue, toStringpublic CollectionProperty(EntityClass<?> sourceClass, AttributeAccessor attribute, javax.persistence.AssociationOverride override)
sourceClass - the description of the current inspected class that contains this propertyattribute - accessor to the represented attributeoverride - the configured assocation overridepublic List<EntityStatement> createPostInsertStatements(E entity)
PropertycreatePostInsertStatements in class Property<E,Collection<T>>entity - the inspected entitypublic Collection<?> findReferencedEntities(E entity)
PropertyfindReferencedEntities in class Property<E,Collection<T>>entity - the inspected entityprotected String getKeyColumn()
PluralPropertygetKeyColumn in class PluralProperty<E,Collection<T>,T>public Collection<T> getValue(E entity)
PropertygetValue in class Property<E,Collection<T>>entity - the entity to inspectnull if entity is null@Generated(value="lombok") public String getOrderColumn()
Copyright © 2017 fastnate.org. All rights reserved.