X - managed type.T - attribute type.public class DefaultSingularAttribute<X,T> extends AbstractAttribute<X,T> implements javax.persistence.metamodel.SingularAttribute<X,T>
SetAttribute interface.
Offers metadata information implementation for collection attribute as per
jpa.| Modifier and Type | Field and Description |
|---|---|
private boolean |
isId
Attribute is an id?
|
private static org.slf4j.Logger |
log
the log used by this class.
|
attribType, member| Constructor and Description |
|---|
DefaultSingularAttribute(String attribName,
javax.persistence.metamodel.Attribute.PersistentAttributeType persistenceAttribType,
Field member,
javax.persistence.metamodel.Type<T> attribType,
javax.persistence.metamodel.ManagedType<X> managedType,
boolean isId) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.metamodel.Bindable.BindableType |
getBindableType() |
Class<T> |
getJavaType() |
javax.persistence.metamodel.Type<T> |
getType() |
boolean |
isCollection() |
boolean |
isId() |
boolean |
isOptional() |
boolean |
isVersion() |
getBindableJavaType, getDeclaringType, getFieldAnnotation, getJavaMember, getJPAColumnName, getName, getPersistentAttributeType, getTableName, isAssociation, setColumnNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate static org.slf4j.Logger log
private boolean isId
public DefaultSingularAttribute(String attribName, javax.persistence.metamodel.Attribute.PersistentAttributeType persistenceAttribType, Field member, javax.persistence.metamodel.Type<T> attribType, javax.persistence.metamodel.ManagedType<X> managedType, boolean isId)
attribName - attribute name.persistenceAttribType - persistent attribute type.member - attribute's java member..attribType - attribute type.managedType - managed type.public boolean isCollection()
isCollection in interface javax.persistence.metamodel.Attribute<X,T>isCollection in class AbstractAttribute<X,T>public javax.persistence.metamodel.Bindable.BindableType getBindableType()
getBindableType in interface javax.persistence.metamodel.Bindable<T>getBindableType in class AbstractAttribute<X,T>public boolean isId()
public boolean isVersion()
public boolean isOptional()
public javax.persistence.metamodel.Type<T> getType()
Copyright © 2015. All Rights Reserved.