Class CassandraCpoAttribute
java.lang.Object
org.synchronoss.cpo.core.meta.bean.CpoAttributeBean
org.synchronoss.cpo.core.meta.domain.CpoAttribute
org.synchronoss.cpo.cassandra.meta.CassandraCpoAttribute
- All Implemented Interfaces:
Serializable,Cloneable
CassandraCpoAttribute. A class that includes the Cassandra-specific attributes (map/collection
key and value types) that are additional to the
CpoAttribute attributes.- Author:
- david berry
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the keytype class nameClass<?> Sets the Value Type classnameGets the Value Type classnameClass<?> Gets the Value Type ClazzvoidloadRunTimeInfo(CpoMetaDescriptor metaDescriptor, Class<?> metaClass) Resolves this attribute's reflective getter/setter methods againstmetaClass, and instantiates and resolves its configured transform (if any) viametaDescriptor.voidsetKeyType(String keyType) Sets the Key TypevoidsetKeyTypeClass(Class<?> keyTypeClass) Sets the Key Type ClazzvoidsetValueType(String valueType) Sets the Value Type classnamevoidsetValueTypeClass(Class<?> valueTypeClass) Sets the Value Type ClazzMethods inherited from class org.synchronoss.cpo.core.meta.domain.CpoAttribute
getCpoTransform, getDataTypeInt, getGetterReturnType, getSetterParamType, getTransformInMethod, getTransformInParamType, getTransformOutMethod, invokeGetter, invokeSetter, isPrimitiveAssignableFrom, setDataTypeInt, toString, toStringFullMethods inherited from class org.synchronoss.cpo.core.meta.bean.CpoAttributeBean
equals, getDataName, getDataType, getDescription, getJavaName, getJavaType, getTransformClassName, hashCode, setDataName, setDataType, setDescription, setJavaName, setJavaType, setTransformClassName
-
Constructor Details
-
CassandraCpoAttribute
public CassandraCpoAttribute()Constructs the CassandraCpoAttribute
-
-
Method Details
-
getKeyType
Gets the keytype class name- Returns:
- The keytype class name
-
setKeyType
Sets the Key Type- Parameters:
keyType- The keytype class name
-
getValueType
Gets the Value Type classname- Returns:
- the Value Type classname
-
setValueType
Sets the Value Type classname- Parameters:
valueType- the Value Type classname
-
getKeyTypeClass
Sets the Value Type classname- Returns:
- the Value Type classname
-
setKeyTypeClass
Sets the Key Type Clazz- Parameters:
keyTypeClass- the Key Type Clazz
-
getValueTypeClass
Gets the Value Type Clazz- Returns:
- the Value Type Clazz
-
setValueTypeClass
Sets the Value Type Clazz- Parameters:
valueTypeClass- the Value Type Clazz
-
loadRunTimeInfo
public void loadRunTimeInfo(CpoMetaDescriptor metaDescriptor, Class<?> metaClass) throws CpoException Description copied from class:CpoAttributeResolves this attribute's reflective getter/setter methods againstmetaClass, and instantiates and resolves its configured transform (if any) viametaDescriptor. Must be called beforeCpoAttribute.invokeGetter(Object),CpoAttribute.invokeSetter(Object, CpoData), or any of the getter/setter/transform accessor methods are used.- Overrides:
loadRunTimeInfoin classCpoAttribute- Parameters:
metaDescriptor- the owning descriptor, used to instantiate the transform classmetaClass- the concrete bean class to resolve the getter/setter against, ornullto skip getter/setter resolution- Throws:
CpoException- if the transform cannot be instantiated, or the getter/setter cannot be found
-