FileDocCategorySizeDatePackage
AttributeAccessor.javaAPI DocGlassfish v2 API3982Tue May 22 16:54:46 BST 2007oracle.toplink.essentials.mappings

AttributeAccessor

public abstract class AttributeAccessor extends Object implements Serializable, Cloneable

Purpose: This provides an abstract class for setting and retrieving the attribute value for the mapping from an object. It can be used in advanced situations if the attribute requires advanced conversion of the mapping value, or a real attribute does not exist.

author
James
since
OracleAS TopLink 10g (10.0.3)

Fields Summary
protected String
attributeName
Stores the name of the attribute
Constructors Summary
Methods Summary
public java.lang.Objectclone()
INTERNAL: Clones itself.

        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            throw new InternalError();
        }
    
public java.lang.ClassgetAttributeClass()
Return the class type of the attribute.

        return ClassConstants.OBJECT;
    
public java.lang.StringgetAttributeName()
INTERNAL: Return the attribute name.

        return attributeName;
    
public abstract java.lang.ObjectgetAttributeValueFromObject(java.lang.Object object)
Return the attribute value from the object.

public voidinitializeAttributes(java.lang.Class descriptorClass)
Allow any initialization to be performed with the descriptor class.

        if (getAttributeName() == null) {
            throw DescriptorException.attributeNameNotSpecified();
        }
    
public voidsetAttributeName(java.lang.String attributeName)
INTERNAL: Set the attribute name.

        this.attributeName = attributeName;
    
public abstract voidsetAttributeValueInObject(java.lang.Object object, java.lang.Object value)
Set the attribute value into the object.