org.hibernate.ejb.metamodel
Class AbstractAttribute<X,Y>

java.lang.Object
  extended by org.hibernate.ejb.metamodel.AbstractAttribute<X,Y>
All Implemented Interfaces:
Serializable, javax.persistence.metamodel.Attribute<X,Y>, AttributeImplementor<X,Y>
Direct Known Subclasses:
PluralAttributeImpl, SingularAttributeImpl

public abstract class AbstractAttribute<X,Y>
extends Object
implements javax.persistence.metamodel.Attribute<X,Y>, AttributeImplementor<X,Y>, Serializable

Models the commonality of the JPA Attribute hierarchy.

Author:
Steve Ebersole
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Attribute
javax.persistence.metamodel.Attribute.PersistentAttributeType
 
Constructor Summary
AbstractAttribute(String name, Class<Y> javaType, AbstractManagedType<X> declaringType, Member member, javax.persistence.metamodel.Attribute.PersistentAttributeType persistentAttributeType)
           
 
Method Summary
 javax.persistence.metamodel.ManagedType<X> getDeclaringType()
          
 Member getJavaMember()
          
 Class<Y> getJavaType()
          
 String getName()
          
 javax.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()
          
protected  void readObject(ObjectInputStream ois)
          Used by JDK serialization...
protected  void writeObject(ObjectOutputStream oos)
          Used by JDK serialization...
 
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.Attribute
isAssociation, isCollection
 

Constructor Detail

AbstractAttribute

public AbstractAttribute(String name,
                         Class<Y> javaType,
                         AbstractManagedType<X> declaringType,
                         Member member,
                         javax.persistence.metamodel.Attribute.PersistentAttributeType persistentAttributeType)
Method Detail

getName

public String getName()

Specified by:
getName in interface javax.persistence.metamodel.Attribute<X,Y>

getDeclaringType

public javax.persistence.metamodel.ManagedType<X> getDeclaringType()

Specified by:
getDeclaringType in interface javax.persistence.metamodel.Attribute<X,Y>

getJavaType

public Class<Y> getJavaType()

Specified by:
getJavaType in interface javax.persistence.metamodel.Attribute<X,Y>

getJavaMember

public Member getJavaMember()

Specified by:
getJavaMember in interface javax.persistence.metamodel.Attribute<X,Y>

getPersistentAttributeType

public javax.persistence.metamodel.Attribute.PersistentAttributeType getPersistentAttributeType()

Specified by:
getPersistentAttributeType in interface javax.persistence.metamodel.Attribute<X,Y>

readObject

protected void readObject(ObjectInputStream ois)
                   throws IOException,
                          ClassNotFoundException
Used by JDK serialization...

Parameters:
ois - The input stream from which we are being read...
Throws:
IOException - Indicates a general IO stream exception
ClassNotFoundException - Indicates a class resolution issue

writeObject

protected void writeObject(ObjectOutputStream oos)
                    throws IOException
Used by JDK serialization...

Parameters:
oos - The output stream to which we are being written...
Throws:
IOException - Indicates a general IO stream exception


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.