EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference

javax.persistence.metamodel
Interface Attribute<X,T>

Type Parameters:
X - The type containing the represented attribute
T - The type of the represented attribute
All Superinterfaces:
Bindable<T>, Member<X,T>

public interface Attribute<X,T>
extends Member<X,T>, Bindable<T>

Instances of the type Attribute represents persistent non-collection-valued properties or fields.


Nested Class Summary
static class Attribute.Multiplicity
           
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Bindable
Bindable.BindableType
 
Method Summary
 Type<T> getAttributeType()
          Return the type that represents the type of the attribute.
 Attribute.Multiplicity getMultiplicity()
          Return the multiplicity of the attribute.
 boolean isId()
          Is the attribute an id attribute.
 boolean isOptional()
          Can the attribute be null.
 boolean isVersion()
          Is the attribute a version attribute.
 
Methods inherited from interface javax.persistence.metamodel.Member
getDeclaringType, getJavaMember, getMemberJavaType, getName, isAssociation, isCollection
 
Methods inherited from interface javax.persistence.metamodel.Bindable
getBindableType, getJavaType
 

Method Detail

getMultiplicity

Attribute.Multiplicity getMultiplicity()
Return the multiplicity of the attribute.

Returns:
multiplicity

isId

boolean isId()
Is the attribute an id attribute.

Returns:
boolean indicating whether or not an id

isVersion

boolean isVersion()
Is the attribute a version attribute.

Returns:
boolean indicating whether or not a version attribute

isOptional

boolean isOptional()
Can the attribute be null.

Returns:
boolean indicating whether or not the attribute can be null

getAttributeType

Type<T> getAttributeType()
Return the type that represents the type of the attribute.

Returns:
type of attribute

EclipseLink 2.0.0_ 2.0.0.v20090424-r4050 API Reference