org.datanucleus.jpa.metamodel
Class SingularAttributeImpl<X,T>

java.lang.Object
  extended by org.datanucleus.jpa.metamodel.AttributeImpl<X,T>
      extended by org.datanucleus.jpa.metamodel.SingularAttributeImpl<X,T>
Type Parameters:
X - The type containing the represented attribute
T - The type of the represented attribute
All Implemented Interfaces:
javax.persistence.metamodel.Attribute<X,T>, javax.persistence.metamodel.Bindable<T>, javax.persistence.metamodel.SingularAttribute<X,T>

public class SingularAttributeImpl<X,T>
extends AttributeImpl<X,T>
implements javax.persistence.metamodel.SingularAttribute<X,T>

Implementation of JPA2 Metamodel "SingularAttribute".


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Attribute
javax.persistence.metamodel.Attribute.PersistentAttributeType
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Bindable
javax.persistence.metamodel.Bindable.BindableType
 
Constructor Summary
SingularAttributeImpl(org.datanucleus.metadata.AbstractMemberMetaData mmd, ManagedTypeImpl<X> owner)
          Constructor for a single-valued attribute.
 
Method Summary
 java.lang.Class<T> getBindableJavaType()
           
 javax.persistence.metamodel.Bindable.BindableType getBindableType()
           
 boolean isId()
           
 boolean isOptional()
           
 boolean isVersion()
           
 
Methods inherited from class org.datanucleus.jpa.metamodel.AttributeImpl
getDeclaringType, getJavaMember, getJavaType, getMetadata, getName, getPersistentAttributeType, getType, isAssociation, isCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.persistence.metamodel.SingularAttribute
getType
 
Methods inherited from interface javax.persistence.metamodel.Attribute
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
 

Constructor Detail

SingularAttributeImpl

public SingularAttributeImpl(org.datanucleus.metadata.AbstractMemberMetaData mmd,
                             ManagedTypeImpl<X> owner)
Constructor for a single-valued attribute.

Parameters:
mmd - Metadata for the member
owner - The owner type
Method Detail

isId

public boolean isId()
Specified by:
isId in interface javax.persistence.metamodel.SingularAttribute<X,T>

isOptional

public boolean isOptional()
Specified by:
isOptional in interface javax.persistence.metamodel.SingularAttribute<X,T>

isVersion

public boolean isVersion()
Specified by:
isVersion in interface javax.persistence.metamodel.SingularAttribute<X,T>

getBindableJavaType

public java.lang.Class<T> getBindableJavaType()
Specified by:
getBindableJavaType in interface javax.persistence.metamodel.Bindable<T>

getBindableType

public javax.persistence.metamodel.Bindable.BindableType getBindableType()
Specified by:
getBindableType in interface javax.persistence.metamodel.Bindable<T>


Copyright © 2011. All Rights Reserved.