X - The type the represented collection belongs toE - The element type of the represented collectionpublic class CollectionAttributeImpl<X,E> extends PluralAttributeImpl<X,Collection<E>,E> implements CollectionAttribute<X,E>
CollectionAttribute.PluralAttribute.CollectionTypeAttribute.PersistentAttributeTypeBindable.BindableType| Constructor and Description |
|---|
CollectionAttributeImpl(ManagedTypeImpl<X> declaringType,
AttributeMetadata metadata,
Attribute.PersistentAttributeType attributeType) |
| Modifier and Type | Method and Description |
|---|---|
PluralAttribute.CollectionType |
getCollectionType() |
Collection<E> |
newCollection(PluralMapping<?,Collection<E>,E> mapping,
ManagedInstance<?> managedInstance,
boolean lazy)
Creates a new lazy initialized managed collection to track changes.
|
Collection<E> |
newCollection(PluralMapping<?,Collection<E>,E> mapping,
ManagedInstance<?> managedInstance,
Object values)
Creates a new managed collection to track changes.
|
create, getAttributeType, getBindableJavaType, getBindableType, getElementType, getPersistentAttributeType, isAssociation, isCollection, toStringget, getAttributeId, getDeclaringType, getJavaMember, getJavaType, getLocator, getMetadata, getMetamodel, getName, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementTypegetDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollectiongetBindableJavaType, getBindableTypepublic CollectionAttributeImpl(ManagedTypeImpl<X> declaringType, AttributeMetadata metadata, Attribute.PersistentAttributeType attributeType)
declaringType - the declaring typemetadata - the metadataattributeType - attribute typepublic PluralAttribute.CollectionType getCollectionType()
getCollectionType in interface PluralAttribute<X,Collection<E>,E>public Collection<E> newCollection(PluralMapping<?,Collection<E>,E> mapping, ManagedInstance<?> managedInstance, boolean lazy)
newCollection in class PluralAttributeImpl<X,Collection<E>,E>mapping - the mappingmanagedInstance - the managed instancelazy - if the collection is lazypublic Collection<E> newCollection(PluralMapping<?,Collection<E>,E> mapping, ManagedInstance<?> managedInstance, Object values)
newCollection in class PluralAttributeImpl<X,Collection<E>,E>mapping - the mappingmanagedInstance - the managed instancevalues - the valuesCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.