public abstract class PluralAttributeImpl<X,C,E> extends AbstractAttribute<X,C> implements PluralAttribute<X,C,E>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PluralAttributeImpl.Builder<X,C,E,K> |
PluralAttribute.CollectionType
Attribute.PersistentAttributeType
Bindable.BindableType
Modifier and Type | Method and Description |
---|---|
static <X,C,E,K> PluralAttributeImpl.Builder<X,C,E,K> |
create(AbstractManagedType<X> ownerType,
Type<E> attrType,
Class<C> collectionClass,
Type<K> keyType) |
Class<E> |
getBindableJavaType()
Return the Java type of the represented object.
|
Bindable.BindableType |
getBindableType()
Return the bindable type of the represented object.
|
Type<E> |
getElementType()
Return the type representing the element type of the
collection.
|
boolean |
isAssociation()
Is the attribute an association.
|
boolean |
isCollection()
Is the attribute collection-valued (represents a Collection,
Set, List, or Map).
|
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, readObject, writeObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectionType
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType
public static <X,C,E,K> PluralAttributeImpl.Builder<X,C,E,K> create(AbstractManagedType<X> ownerType, Type<E> attrType, Class<C> collectionClass, Type<K> keyType)
public Type<E> getElementType()
getElementType
in interface PluralAttribute<X,C,E>
public boolean isAssociation()
isAssociation
in interface Attribute<X,C>
public boolean isCollection()
isCollection
in interface Attribute<X,C>
public Bindable.BindableType getBindableType()
getBindableType
in interface Bindable<E>
public Class<E> getBindableJavaType()
PLURAL_ATTRIBUTE
,
the Java element type is returned. If the bindable type is
SINGULAR_ATTRIBUTE
or ENTITY_TYPE
,
the Java type of the
represented entity or attribute is returned.getBindableJavaType
in interface Bindable<E>
Copyright © 2018 JBoss by Red Hat. All rights reserved.