X - The type the represented collection belongs toC - The type of the represented collectionE - The element type of the represented collectionpublic abstract class PluralAttributeImpl<X,C,E> extends AttributeImpl<X,C> implements PluralAttribute<X,C,E>
PluralAttribute.PluralAttribute.CollectionTypeAttribute.PersistentAttributeTypeBindable.BindableType| Constructor and Description |
|---|
PluralAttributeImpl(ManagedTypeImpl<X> declaringType,
AttributeMetadata metadata,
Attribute.PersistentAttributeType attributeType,
int valueIndexNo) |
| Modifier and Type | Method and Description |
|---|---|
static <X> PluralAttributeImpl<X,?,?> |
create(ManagedTypeImpl<X> declaringType,
AttributeMetadata metadata,
Attribute.PersistentAttributeType attributeType)
Creates an associated plural attribute corresponding to member type
|
Attribute.PersistentAttributeType |
getAttributeType()
Returns the attributeType of the PluralAttributeImpl.
|
Class<E> |
getBindableJavaType() |
Bindable.BindableType |
getBindableType() |
TypeImpl<E> |
getElementType() |
Attribute.PersistentAttributeType |
getPersistentAttributeType() |
boolean |
isAssociation() |
boolean |
isCollection() |
abstract C |
newCollection(PluralMapping<?,C,E> mapping,
ManagedInstance<?> managedInstance,
boolean lazy)
Creates a new lazy initialized managed collection to track changes.
|
abstract C |
newCollection(PluralMapping<?,C,E> mapping,
ManagedInstance<?> managedInstance,
Object values)
Creates a new managed collection to track changes.
|
String |
toString() |
get, getAttributeId, getDeclaringType, getJavaMember, getJavaType, getLocator, getMetadata, getMetamodel, getName, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCollectionTypegetDeclaringType, getJavaMember, getJavaType, getNamepublic PluralAttributeImpl(ManagedTypeImpl<X> declaringType, AttributeMetadata metadata, Attribute.PersistentAttributeType attributeType, int valueIndexNo)
declaringType - the declaring typemetadata - the metadataattributeType - the attribute typevalueIndexNo - the index of the generic value parameter, typically 0 for Collection, List and Set attributes and
1 for Map attributespublic static <X> PluralAttributeImpl<X,?,?> create(ManagedTypeImpl<X> declaringType, AttributeMetadata metadata, Attribute.PersistentAttributeType attributeType)
X - the type of the managed typedeclaringType - the declaring typemetadata - the metadataattributeType - the attribute typepublic Attribute.PersistentAttributeType getAttributeType()
public final Class<E> getBindableJavaType()
getBindableJavaType in interface Bindable<E>public final Bindable.BindableType getBindableType()
getBindableType in interface Bindable<E>public TypeImpl<E> getElementType()
getElementType in interface PluralAttribute<X,C,E>public final Attribute.PersistentAttributeType getPersistentAttributeType()
getPersistentAttributeType in interface Attribute<X,C>public final boolean isAssociation()
isAssociation in interface Attribute<X,C>public final boolean isCollection()
isCollection in interface Attribute<X,C>public abstract C newCollection(PluralMapping<?,C,E> mapping, ManagedInstance<?> managedInstance, boolean lazy)
mapping - the mappingmanagedInstance - the managed instancelazy - if the collection is lazypublic abstract C newCollection(PluralMapping<?,C,E> mapping, ManagedInstance<?> managedInstance, Object values)
mapping - the mappingmanagedInstance - the managed instancevalues - the valuesCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.