public abstract class AbstractManagedType<X> extends AbstractType<X> implements ManagedType<X>, Serializable
ManagedType
hierarchy of interfaces.Modifier and Type | Class and Description |
---|---|
static interface |
AbstractManagedType.Builder<X> |
Type.PersistenceType
Modifier | Constructor and Description |
---|---|
protected |
AbstractManagedType(Class<X> javaType,
String typeName,
AbstractManagedType<? super X> superType) |
Modifier and Type | Method and Description |
---|---|
Attribute<? super X,?> |
getAttribute(String name)
Return the attribute of the managed
type that corresponds to the specified name.
|
Set<Attribute<? super X,?>> |
getAttributes()
Return the attributes of the managed type.
|
AbstractManagedType.Builder<X> |
getBuilder() |
CollectionAttribute<? super X,?> |
getCollection(String name)
Return the Collection-valued attribute of the managed type
that corresponds to the specified name.
|
<E> CollectionAttribute<? super X,E> |
getCollection(String name,
Class<E> elementType)
Return the Collection-valued attribute of the managed type
that corresponds to the specified name and Java element type.
|
Attribute<X,?> |
getDeclaredAttribute(String name)
Return the attribute declared by the managed
type that corresponds to the specified name.
|
Set<Attribute<X,?>> |
getDeclaredAttributes()
Return the attributes declared by the managed type.
|
CollectionAttribute<X,?> |
getDeclaredCollection(String name)
Return the Collection-valued attribute declared by the
managed type that corresponds to the specified name.
|
<E> CollectionAttribute<X,E> |
getDeclaredCollection(String name,
Class<E> elementType)
Return the Collection-valued attribute declared by the
managed type that corresponds to the specified name and Java
element type.
|
ListAttribute<X,?> |
getDeclaredList(String name)
Return the List-valued attribute declared by the managed
type that corresponds to the specified name.
|
<E> ListAttribute<X,E> |
getDeclaredList(String name,
Class<E> elementType)
Return the List-valued attribute declared by the managed
type that corresponds to the specified name and Java
element type.
|
MapAttribute<X,?,?> |
getDeclaredMap(String name)
Return the Map-valued attribute declared by the managed
type that corresponds to the specified name.
|
<K,V> MapAttribute<X,K,V> |
getDeclaredMap(String name,
Class<K> keyType,
Class<V> valueType)
Return the Map-valued attribute declared by the managed
type that corresponds to the specified name and Java key
and value types.
|
Set<PluralAttribute<X,?,?>> |
getDeclaredPluralAttributes()
Return all multi-valued attributes (Collection-, Set-,
List-, and Map-valued attributes) declared by the
managed type.
|
SetAttribute<X,?> |
getDeclaredSet(String name)
Return the Set-valued attribute declared by the managed type
that corresponds to the specified name.
|
<E> SetAttribute<X,E> |
getDeclaredSet(String name,
Class<E> elementType)
Return the Set-valued attribute declared by the managed type
that corresponds to the specified name and Java element type.
|
SingularAttribute<X,?> |
getDeclaredSingularAttribute(String name)
Return the single-valued attribute declared by the managed
type that corresponds to the specified name.
|
<Y> SingularAttribute<X,Y> |
getDeclaredSingularAttribute(String name,
Class<Y> javaType)
Return the single-valued attribute declared by the
managed type that corresponds to the specified name and
Java type.
|
Set<SingularAttribute<X,?>> |
getDeclaredSingularAttributes()
Return the single-valued attributes declared by the managed
type.
|
ListAttribute<? super X,?> |
getList(String name)
Return the List-valued attribute of the managed type that
corresponds to the specified name.
|
<E> ListAttribute<? super X,E> |
getList(String name,
Class<E> elementType)
Return the List-valued attribute of the managed type that
corresponds to the specified name and Java element type.
|
MapAttribute<? super X,?,?> |
getMap(String name)
Return the Map-valued attribute of the managed type that
corresponds to the specified name.
|
<K,V> MapAttribute<? super X,K,V> |
getMap(String name,
Class<K> keyType,
Class<V> valueType)
Return the Map-valued attribute of the managed type that
corresponds to the specified name and Java key and value
types.
|
Set<PluralAttribute<? super X,?,?>> |
getPluralAttributes()
Return all multi-valued attributes (Collection-, Set-,
List-, and Map-valued attributes) of the managed type.
|
SetAttribute<? super X,?> |
getSet(String name)
Return the Set-valued attribute of the managed type that
corresponds to the specified name.
|
<E> SetAttribute<? super X,E> |
getSet(String name,
Class<E> elementType)
Return the Set-valued attribute of the managed type that
corresponds to the specified name and Java element type.
|
SingularAttribute<? super X,?> |
getSingularAttribute(String name)
Return the single-valued attribute of the managed type that
corresponds to the specified name.
|
<Y> SingularAttribute<? super X,Y> |
getSingularAttribute(String name,
Class<Y> type)
Return the single-valued attribute of the managed
type that corresponds to the specified name and Java type.
|
Set<SingularAttribute<? super X,?>> |
getSingularAttributes()
Return the single-valued attributes of the managed type.
|
protected AbstractManagedType<? super X> |
getSupertype() |
protected <Y> boolean |
isPrimitiveVariant(SingularAttribute<?,?> attribute,
Class<Y> javaType) |
void |
lock() |
getJavaType, getTypeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJavaType, getPersistenceType
protected AbstractManagedType(Class<X> javaType, String typeName, AbstractManagedType<? super X> superType)
protected AbstractManagedType<? super X> getSupertype()
public AbstractManagedType.Builder<X> getBuilder()
public void lock()
public Set<Attribute<? super X,?>> getAttributes()
ManagedType
getAttributes
in interface ManagedType<X>
public Set<Attribute<X,?>> getDeclaredAttributes()
ManagedType
getDeclaredAttributes
in interface ManagedType<X>
public Attribute<? super X,?> getAttribute(String name)
ManagedType
getAttribute
in interface ManagedType<X>
name
- the name of the represented attributepublic Attribute<X,?> getDeclaredAttribute(String name)
ManagedType
getDeclaredAttribute
in interface ManagedType<X>
name
- the name of the represented attributepublic Set<SingularAttribute<? super X,?>> getSingularAttributes()
ManagedType
getSingularAttributes
in interface ManagedType<X>
public Set<SingularAttribute<X,?>> getDeclaredSingularAttributes()
ManagedType
getDeclaredSingularAttributes
in interface ManagedType<X>
public SingularAttribute<? super X,?> getSingularAttribute(String name)
ManagedType
getSingularAttribute
in interface ManagedType<X>
name
- the name of the represented attributepublic SingularAttribute<X,?> getDeclaredSingularAttribute(String name)
ManagedType
getDeclaredSingularAttribute
in interface ManagedType<X>
name
- the name of the represented attributepublic <Y> SingularAttribute<? super X,Y> getSingularAttribute(String name, Class<Y> type)
ManagedType
getSingularAttribute
in interface ManagedType<X>
name
- the name of the represented attributetype
- the type of the represented attributepublic <Y> SingularAttribute<X,Y> getDeclaredSingularAttribute(String name, Class<Y> javaType)
ManagedType
getDeclaredSingularAttribute
in interface ManagedType<X>
name
- the name of the represented attributejavaType
- the type of the represented attributeprotected <Y> boolean isPrimitiveVariant(SingularAttribute<?,?> attribute, Class<Y> javaType)
public Set<PluralAttribute<? super X,?,?>> getPluralAttributes()
ManagedType
getPluralAttributes
in interface ManagedType<X>
public Set<PluralAttribute<X,?,?>> getDeclaredPluralAttributes()
ManagedType
getDeclaredPluralAttributes
in interface ManagedType<X>
public CollectionAttribute<? super X,?> getCollection(String name)
ManagedType
getCollection
in interface ManagedType<X>
name
- the name of the represented attributepublic CollectionAttribute<X,?> getDeclaredCollection(String name)
ManagedType
getDeclaredCollection
in interface ManagedType<X>
name
- the name of the represented attributepublic SetAttribute<? super X,?> getSet(String name)
ManagedType
getSet
in interface ManagedType<X>
name
- the name of the represented attributepublic SetAttribute<X,?> getDeclaredSet(String name)
ManagedType
getDeclaredSet
in interface ManagedType<X>
name
- the name of the represented attributepublic ListAttribute<? super X,?> getList(String name)
ManagedType
getList
in interface ManagedType<X>
name
- the name of the represented attributepublic ListAttribute<X,?> getDeclaredList(String name)
ManagedType
getDeclaredList
in interface ManagedType<X>
name
- the name of the represented attributepublic MapAttribute<? super X,?,?> getMap(String name)
ManagedType
getMap
in interface ManagedType<X>
name
- the name of the represented attributepublic MapAttribute<X,?,?> getDeclaredMap(String name)
ManagedType
getDeclaredMap
in interface ManagedType<X>
name
- the name of the represented attributepublic <E> CollectionAttribute<? super X,E> getCollection(String name, Class<E> elementType)
ManagedType
getCollection
in interface ManagedType<X>
name
- the name of the represented attributeelementType
- the element type of the represented
attributepublic <E> CollectionAttribute<X,E> getDeclaredCollection(String name, Class<E> elementType)
ManagedType
getDeclaredCollection
in interface ManagedType<X>
name
- the name of the represented attributeelementType
- the element type of the represented
attributeCollectionAttribute
of the given name and
element typepublic <E> SetAttribute<? super X,E> getSet(String name, Class<E> elementType)
ManagedType
getSet
in interface ManagedType<X>
name
- the name of the represented attributeelementType
- the element type of the represented
attributepublic <E> SetAttribute<X,E> getDeclaredSet(String name, Class<E> elementType)
ManagedType
getDeclaredSet
in interface ManagedType<X>
name
- the name of the represented attributeelementType
- the element type of the represented
attributepublic <E> ListAttribute<? super X,E> getList(String name, Class<E> elementType)
ManagedType
getList
in interface ManagedType<X>
name
- the name of the represented attributeelementType
- the element type of the represented
attributepublic <E> ListAttribute<X,E> getDeclaredList(String name, Class<E> elementType)
ManagedType
getDeclaredList
in interface ManagedType<X>
name
- the name of the represented attributeelementType
- the element type of the represented
attributepublic <K,V> MapAttribute<? super X,K,V> getMap(String name, Class<K> keyType, Class<V> valueType)
ManagedType
getMap
in interface ManagedType<X>
name
- the name of the represented attributekeyType
- the key type of the represented attributevalueType
- the value type of the represented attributepublic <K,V> MapAttribute<X,K,V> getDeclaredMap(String name, Class<K> keyType, Class<V> valueType)
ManagedType
getDeclaredMap
in interface ManagedType<X>
name
- the name of the represented attributekeyType
- the key type of the represented attributevalueType
- the value type of the represented attributeCopyright © 2016 JBoss by Red Hat. All rights reserved.