FileDocCategorySizeDatePackage
AttributeDetails.javaAPI DocGlassfish v2 API4846Tue May 22 16:54:44 BST 2007oracle.toplink.essentials.internal.weaving

AttributeDetails

public class AttributeDetails extends Object
INTERNAL: Internal helper class that holds details of a persistent attribute. Used by {@link ClassDetails}

Fields Summary
protected String
attributeName
protected String
referenceClass
protected boolean
weaveValueHolders
protected OneToOneMapping
mapping
protected String
getterMethodName
protected String
setterMethodName
protected boolean
collectionMapping
protected boolean
isMappedWithAttributeAccess
protected boolean
attributeOnSuperClass
Constructors Summary
public AttributeDetails(String attributeName)


	   
	    this.attributeName = attributeName;
	
Methods Summary
public java.lang.StringgetAttributeName()

	    return this.attributeName;
	
public java.lang.StringgetGetterMethodName()

        return getterMethodName;
    
public oracle.toplink.essentials.mappings.OneToOneMappinggetMapping()

        return mapping;
    
public java.lang.StringgetReferenceClass()

		return referenceClass;
	
public java.lang.StringgetSetterMethodName()

        return setterMethodName;
    
public booleanisAttributeOnSuperClass()

        return attributeOnSuperClass;
    
public booleanisCollectionMapping()

		return collectionMapping;
	
public booleanisMappedWithAttributeAccess()

        return isMappedWithAttributeAccess;
    
public voidsetAttributeOnSuperClass(boolean onSuperClass)

        attributeOnSuperClass = onSuperClass;
    
public voidsetCollectionMapping(boolean collectionMapping)

		this.collectionMapping = collectionMapping;
	
public voidsetIsMappedWithAttributeAccess(boolean isMappedWithAttributeAccess)

        this.isMappedWithAttributeAccess = isMappedWithAttributeAccess;
    
public java.lang.StringtoString()

		StringBuffer sb = new StringBuffer(attributeName);
		if (referenceClass != null) {
			sb.append("[");
			sb.append(referenceClass);
			sb.append("]");
		}
		sb.append(" weaveVH: ");
		if (weaveValueHolders()) {
			sb.append("true");
		}
		else {
			sb.append("false");
		}
		sb.append(" CM: ");
		if (isCollectionMapping()) {
			sb.append("true");
		}
		else {
			sb.append("false");
		}
		return sb.toString();
	
public voidweaveVH(boolean weaveValueHolders, oracle.toplink.essentials.mappings.OneToOneMapping mapping)

		this.weaveValueHolders = weaveValueHolders;
        this.mapping = mapping;
        this.getterMethodName = mapping.getGetMethodName();
        this.setterMethodName = mapping.getSetMethodName();
	
public booleanweaveValueHolders()

		return weaveValueHolders;