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 javax.persistence.metamodel.PluralAttribute<X,C,E>
PluralAttribute.javax.persistence.metamodel.PluralAttribute.CollectionType| Constructor and Description |
|---|
PluralAttributeImpl(ManagedTypeImpl<X> declaringType,
AttributeMetadata metadata,
javax.persistence.metamodel.Attribute.PersistentAttributeType attributeType,
int valueIndexNo) |
| Modifier and Type | Method and Description |
|---|---|
static <X> PluralAttributeImpl<X,?,?> |
create(ManagedTypeImpl<X> declaringType,
AttributeMetadata metadata,
javax.persistence.metamodel.Attribute.PersistentAttributeType attributeType)
Creates an associated plural attribute corresponding to member type
|
javax.persistence.metamodel.Attribute.PersistentAttributeType |
getAttributeType()
Returns the attributeType of the PluralAttributeImpl.
|
Class<E> |
getBindableJavaType() |
javax.persistence.metamodel.Bindable.BindableType |
getBindableType() |
TypeImpl<E> |
getElementType() |
javax.persistence.metamodel.Attribute.PersistentAttributeType |
getPersistentAttributeType() |
boolean |
isAssociation() |
boolean |
isCollection() |
abstract C |
newCollection(PluralMappingEx<?,C,E> mapping,
ManagedInstance<?> managedInstance,
boolean lazy)
Creates a new lazy initialized managed collection to track changes.
|
abstract C |
newCollection(PluralMappingEx<?,C,E> mapping,
ManagedInstance<?> managedInstance,
Object values)
Creates a new managed collection to track changes.
|
String |
toString() |
clone, get, getAttributeId, getDeclaringType, getJavaMember, getJavaType, getLocator, getMetadata, getMetamodel, getName, setpublic PluralAttributeImpl(ManagedTypeImpl<X> declaringType, AttributeMetadata metadata, javax.persistence.metamodel.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, javax.persistence.metamodel.Attribute.PersistentAttributeType attributeType)
X - the type of the managed typedeclaringType - the declaring typemetadata - the metadataattributeType - the attribute typepublic javax.persistence.metamodel.Attribute.PersistentAttributeType getAttributeType()
public final Class<E> getBindableJavaType()
getBindableJavaType in interface javax.persistence.metamodel.Bindable<E>public final javax.persistence.metamodel.Bindable.BindableType getBindableType()
getBindableType in interface javax.persistence.metamodel.Bindable<E>public final javax.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
public final boolean isAssociation()
public final boolean isCollection()
public abstract C newCollection(PluralMappingEx<?,C,E> mapping, ManagedInstance<?> managedInstance, boolean lazy)
mapping - the mappingmanagedInstance - the managed instancelazy - if the collection is lazypublic abstract C newCollection(PluralMappingEx<?,C,E> mapping, ManagedInstance<?> managedInstance, Object values)
mapping - the mappingmanagedInstance - the managed instancevalues - the valuesCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.