X - The type containing the represented attributeT - The type of the represented attributepublic final class BasicAttribute<X,T> extends SingularAttributeImpl<X,T>
SingularAttribute for basic, version and id attributes.| Constructor and Description |
|---|
BasicAttribute(IdentifiableTypeImpl<X> declaringType,
VersionAttributeMetadata metadata)
Constructor for version attributes.
|
BasicAttribute(ManagedTypeImpl<X> declaringType,
BasicAttributeMetadata metadata)
Constructor for basic attributes.
|
BasicAttribute(ManagedTypeImpl<X> declaringType,
IdAttributeMetadata metadata)
Constructor for basic id attributes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
fillValue(EntityTypeImpl<?> type,
ManagedInstance<?> managedInstance,
Object instance)
Fills the sequence / table generated value.
|
javax.persistence.EnumType |
getEnumType()
Returns the enum type of the attribute.
|
IdType |
getIdType()
Returns the id type of the attribute.
|
IndexMetadata |
getIndex()
Returns the index of the basic attribute.
|
PhysicalAttributeMetadata |
getMetadata()
Returns the metadata of the attribute.
|
javax.persistence.metamodel.Attribute.PersistentAttributeType |
getPersistentAttributeType() |
javax.persistence.TemporalType |
getTemporalType()
Returns the temporal type of the attribute.
|
BasicTypeImpl<T> |
getType() |
boolean |
isAssociation() |
boolean |
isId() |
boolean |
isLob()
Returns if the attribute is lob.
|
boolean |
isOptional() |
boolean |
isVersion() |
getBindableJavaType, getBindableType, isCollection, toStringget, getAttributeId, getDeclaringType, getJavaMember, getJavaType, getLocator, getMetamodel, getName, setpublic BasicAttribute(IdentifiableTypeImpl<X> declaringType, VersionAttributeMetadata metadata)
declaringType - the declaring typemetadata - the metadatapublic BasicAttribute(ManagedTypeImpl<X> declaringType, BasicAttributeMetadata metadata)
declaringType - the declaring typemetadata - the metadatapublic BasicAttribute(ManagedTypeImpl<X> declaringType, IdAttributeMetadata metadata)
declaringType - the declaring typemetadata - the metadatapublic boolean fillValue(EntityTypeImpl<?> type, ManagedInstance<?> managedInstance, Object instance)
The operation returns false if at least one entity needs to obtain identity from the database.
type - the entity typemanagedInstance - the managed instanceinstance - the instance to fill ids.public javax.persistence.EnumType getEnumType()
public IdType getIdType()
public IndexMetadata getIndex()
public PhysicalAttributeMetadata getMetadata()
getMetadata in class AttributeImpl<X,T>public javax.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
public javax.persistence.TemporalType getTemporalType()
public BasicTypeImpl<T> getType()
public boolean isAssociation()
public boolean isId()
public boolean isLob()
public boolean isOptional()
public boolean isVersion()
Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.