public class SingularAttributeImpl<X,Y> extends AbstractAttribute<X,Y> implements SingularAttribute<X,Y>, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SingularAttributeImpl.Identifier<X,Y>
Subclass used to simply instantiation of singular attributes representing an entity's
identifier.
|
static class |
SingularAttributeImpl.Version<X,Y>
Subclass used to simply instantiation of singular attributes representing an entity's
version.
|
Attribute.PersistentAttributeType
Bindable.BindableType
Constructor and Description |
---|
SingularAttributeImpl(String name,
Class<Y> javaType,
AbstractManagedType<X> declaringType,
Member member,
boolean isIdentifier,
boolean isVersion,
boolean isOptional,
Type<Y> attributeType,
Attribute.PersistentAttributeType persistentAttributeType) |
Modifier and Type | Method and Description |
---|---|
Class<Y> |
getBindableJavaType()
Return the Java type of the represented object.
|
Bindable.BindableType |
getBindableType()
Return the bindable type of the represented object.
|
Type<Y> |
getType()
Return the type that represents the type of the attribute.
|
boolean |
isAssociation()
Is the attribute an association.
|
boolean |
isCollection()
Is the attribute collection-valued (represents a Collection,
Set, List, or Map).
|
boolean |
isId()
Is the attribute an id attribute.
|
boolean |
isOptional()
Can the attribute be null.
|
boolean |
isVersion()
Is the attribute a version attribute.
|
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, readObject, writeObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType
public SingularAttributeImpl(String name, Class<Y> javaType, AbstractManagedType<X> declaringType, Member member, boolean isIdentifier, boolean isVersion, boolean isOptional, Type<Y> attributeType, Attribute.PersistentAttributeType persistentAttributeType)
public boolean isId()
isId
in interface SingularAttribute<X,Y>
public boolean isVersion()
isVersion
in interface SingularAttribute<X,Y>
public boolean isOptional()
isOptional
in interface SingularAttribute<X,Y>
public Type<Y> getType()
getType
in interface SingularAttribute<X,Y>
public boolean isAssociation()
isAssociation
in interface Attribute<X,Y>
public boolean isCollection()
isCollection
in interface Attribute<X,Y>
public Bindable.BindableType getBindableType()
getBindableType
in interface Bindable<Y>
public Class<Y> 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<Y>
Copyright © 2018 JBoss by Red Hat. All rights reserved.