Class CassandraCpoAttribute

All Implemented Interfaces:
Serializable, Cloneable

public class CassandraCpoAttribute extends CpoAttribute implements 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 Details

    • CassandraCpoAttribute

      public CassandraCpoAttribute()
      Constructs the CassandraCpoAttribute
  • Method Details

    • getKeyType

      public String getKeyType()
      Gets the keytype class name
      Returns:
      The keytype class name
    • setKeyType

      public void setKeyType(String keyType)
      Sets the Key Type
      Parameters:
      keyType - The keytype class name
    • getValueType

      public String getValueType()
      Gets the Value Type classname
      Returns:
      the Value Type classname
    • setValueType

      public void setValueType(String valueType)
      Sets the Value Type classname
      Parameters:
      valueType - the Value Type classname
    • getKeyTypeClass

      public Class<?> getKeyTypeClass()
      Sets the Value Type classname
      Returns:
      the Value Type classname
    • setKeyTypeClass

      public void setKeyTypeClass(Class<?> keyTypeClass)
      Sets the Key Type Clazz
      Parameters:
      keyTypeClass - the Key Type Clazz
    • getValueTypeClass

      public Class<?> getValueTypeClass()
      Gets the Value Type Clazz
      Returns:
      the Value Type Clazz
    • setValueTypeClass

      public void setValueTypeClass(Class<?> valueTypeClass)
      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: CpoAttribute
      Resolves this attribute's reflective getter/setter methods against metaClass, and instantiates and resolves its configured transform (if any) via metaDescriptor. Must be called before CpoAttribute.invokeGetter(Object), CpoAttribute.invokeSetter(Object, CpoData), or any of the getter/setter/transform accessor methods are used.
      Overrides:
      loadRunTimeInfo in class CpoAttribute
      Parameters:
      metaDescriptor - the owning descriptor, used to instantiate the transform class
      metaClass - the concrete bean class to resolve the getter/setter against, or null to skip getter/setter resolution
      Throws:
      CpoException - if the transform cannot be instantiated, or the getter/setter cannot be found