Class CpoAttributeBean
java.lang.Object
org.synchronoss.cpo.core.meta.bean.CpoAttributeBean
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CpoAttribute
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the name of the datastore-side column/field this attribute binds to.Gets the name of the native datastore data type of this attribute.Gets the human-readable description of this attribute, as loaded from the meta XML.Gets the name of the JavaBean property this attribute binds to.Gets the Java type name of the bound JavaBean property.Gets the fully-qualified class name of theCpoTransformto apply to this attribute's value, if any.inthashCode()voidsetDataName(String dataName) Sets the name of the datastore-side column/field this attribute binds to.voidsetDataType(String dataType) Sets the name of the native datastore data type of this attribute.voidsetDescription(String description) Sets the human-readable description of this attribute.voidsetJavaName(String javaName) Sets the name of the JavaBean property this attribute binds to.voidsetJavaType(String javaType) Sets the Java type name of the bound JavaBean property.voidsetTransformClassName(String transformClassName) Sets the fully-qualified class name of theCpoTransformto apply to this attribute's value.toString()
-
Constructor Details
-
CpoAttributeBean
public CpoAttributeBean()Creates an empty instance.
-
-
Method Details
-
getDataName
Gets the name of the datastore-side column/field this attribute binds to.- Returns:
- the datastore-side name
-
setDataName
Sets the name of the datastore-side column/field this attribute binds to.- Parameters:
dataName- the datastore-side name
-
getDataType
Gets the name of the native datastore data type of this attribute.- Returns:
- the native data type name
-
setDataType
Sets the name of the native datastore data type of this attribute.- Parameters:
dataType- the native data type name
-
getDescription
Gets the human-readable description of this attribute, as loaded from the meta XML.- Returns:
- the description, or
nullif none was specified
-
setDescription
Sets the human-readable description of this attribute.- Parameters:
description- the description
-
getJavaName
Gets the name of the JavaBean property this attribute binds to.- Returns:
- the JavaBean property name
-
setJavaName
Sets the name of the JavaBean property this attribute binds to.- Parameters:
javaName- the JavaBean property name
-
getJavaType
Gets the Java type name of the bound JavaBean property.- Returns:
- the Java type name
-
setJavaType
Sets the Java type name of the bound JavaBean property.- Parameters:
javaType- the Java type name
-
getTransformClassName
Gets the fully-qualified class name of theCpoTransformto apply to this attribute's value, if any.- Returns:
- the transform class name, or
nullif no transform is configured
-
setTransformClassName
Sets the fully-qualified class name of theCpoTransformto apply to this attribute's value.- Parameters:
transformClassName- the transform class name
-
equals
-
hashCode
public int hashCode() -
toString
-