Class CpoAttributeBean

java.lang.Object
org.synchronoss.cpo.core.meta.bean.CpoAttributeBean
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CpoAttribute

public class CpoAttributeBean extends Object implements Serializable
Plain-data holder for the fields of a CPO attribute as loaded from meta XML: the Java-side name/type, the datastore-side name/type, and an optional CpoTransform class name. CpoAttribute extends this with the runtime behavior (reflective getter/setter resolution, transform instantiation, etc).
Author:
dberry
See Also:
  • Constructor Details

    • CpoAttributeBean

      public CpoAttributeBean()
      Creates an empty instance.
  • Method Details

    • getDataName

      public String getDataName()
      Gets the name of the datastore-side column/field this attribute binds to.
      Returns:
      the datastore-side name
    • setDataName

      public void setDataName(String dataName)
      Sets the name of the datastore-side column/field this attribute binds to.
      Parameters:
      dataName - the datastore-side name
    • getDataType

      public String getDataType()
      Gets the name of the native datastore data type of this attribute.
      Returns:
      the native data type name
    • setDataType

      public void setDataType(String dataType)
      Sets the name of the native datastore data type of this attribute.
      Parameters:
      dataType - the native data type name
    • getDescription

      public String getDescription()
      Gets the human-readable description of this attribute, as loaded from the meta XML.
      Returns:
      the description, or null if none was specified
    • setDescription

      public void setDescription(String description)
      Sets the human-readable description of this attribute.
      Parameters:
      description - the description
    • getJavaName

      public String getJavaName()
      Gets the name of the JavaBean property this attribute binds to.
      Returns:
      the JavaBean property name
    • setJavaName

      public void setJavaName(String javaName)
      Sets the name of the JavaBean property this attribute binds to.
      Parameters:
      javaName - the JavaBean property name
    • getJavaType

      public String getJavaType()
      Gets the Java type name of the bound JavaBean property.
      Returns:
      the Java type name
    • setJavaType

      public void setJavaType(String javaType)
      Sets the Java type name of the bound JavaBean property.
      Parameters:
      javaType - the Java type name
    • getTransformClassName

      public String getTransformClassName()
      Gets the fully-qualified class name of the CpoTransform to apply to this attribute's value, if any.
      Returns:
      the transform class name, or null if no transform is configured
    • setTransformClassName

      public void setTransformClassName(String transformClassName)
      Sets the fully-qualified class name of the CpoTransform to apply to this attribute's value.
      Parameters:
      transformClassName - the transform class name
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object