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.PersistentAttributeTypeBindable.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, writeObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeTypepublic 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()
SingularAttributeisId in interface SingularAttribute<X,Y>public boolean isVersion()
SingularAttributeisVersion in interface SingularAttribute<X,Y>public boolean isOptional()
SingularAttributeisOptional in interface SingularAttribute<X,Y>public Type<Y> getType()
SingularAttributegetType in interface SingularAttribute<X,Y>public boolean isAssociation()
AttributeisAssociation in interface Attribute<X,Y>public boolean isCollection()
AttributeisCollection in interface Attribute<X,Y>public Bindable.BindableType getBindableType()
BindablegetBindableType in interface Bindable<Y>public Class<Y> getBindableJavaType()
BindablePLURAL_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 © 2017 JBoss by Red Hat. All rights reserved.