public abstract class AbstractAttribute<X,Y> extends Object implements Attribute<X,Y>, AttributeImplementor<X,Y>, Serializable
Attribute
hierarchy.Attribute.PersistentAttributeType
Constructor and Description |
---|
AbstractAttribute(String name,
Class<Y> javaType,
AbstractManagedType<X> declaringType,
Member member,
Attribute.PersistentAttributeType persistentAttributeType) |
Modifier and Type | Method and Description |
---|---|
ManagedType<X> |
getDeclaringType()
Return the managed type representing the type in which
the attribute was declared.
|
Member |
getJavaMember()
Return the
java.lang.reflect.Member for the represented
attribute. |
Class<Y> |
getJavaType()
Return the Java type of the represented attribute.
|
String |
getName()
Return the name of the attribute.
|
Attribute.PersistentAttributeType |
getPersistentAttributeType()
Return the persistent attribute type for the attribute.
|
protected void |
readObject(ObjectInputStream ois)
Used by JDK serialization...
|
protected void |
writeObject(ObjectOutputStream oos)
Used by JDK serialization...
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAssociation, isCollection
public AbstractAttribute(String name, Class<Y> javaType, AbstractManagedType<X> declaringType, Member member, Attribute.PersistentAttributeType persistentAttributeType)
public String getName()
Attribute
public ManagedType<X> getDeclaringType()
Attribute
getDeclaringType
in interface Attribute<X,Y>
public Class<Y> getJavaType()
Attribute
getJavaType
in interface Attribute<X,Y>
public Member getJavaMember()
Attribute
java.lang.reflect.Member
for the represented
attribute.getJavaMember
in interface Attribute<X,Y>
java.lang.reflect.Member
public Attribute.PersistentAttributeType getPersistentAttributeType()
Attribute
getPersistentAttributeType
in interface Attribute<X,Y>
protected void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
ois
- The input stream from which we are being read...IOException
- Indicates a general IO stream exceptionClassNotFoundException
- Indicates a class resolution issueprotected void writeObject(ObjectOutputStream oos) throws IOException
oos
- The output stream to which we are being written...IOException
- Indicates a general IO stream exceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.