private void setFieldValueViaCQL(Object entity, Object thriftColumnValue, Attribute attribute)
    {
        if (attribute != null)
        {
            try
            {
                if (attribute.isCollection())
                {
                    setCollectionValue(entity, thriftColumnValue, attribute);
                }
                else if (CassandraDataTranslator.isCassandraDataTypeClass(((AbstractAttribute) attribute)
                        .getBindableJavaType()))
                {
                    PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), CassandraDataTranslator
                            .decompose(((AbstractAttribute) attribute).getBindableJavaType(), thriftColumnValue, true));
                }
                else
                {
                    PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(), (byte[]) thriftColumnValue);
                }
            }
            catch (PropertyAccessException pae)
            {
                log.warn("Error while setting field{} value via CQL, Caused by: .", attribute.getName(), pae);
            }
        }
    }
private void setFieldValueViaCQL ( Object entity , Object thriftColumnValue , Attribute attribute ) { if ( attribute != null ) { try { if ( attribute . isCollection ( ) ) { setCollectionValue ( entity , thriftColumnValue , attribute ) ; } else if ( CassandraDataTranslator . isCassandraDataTypeClass ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) ) ) { PropertyAccessorHelper . set ( entity , ( Field ) attribute . getJavaMember ( ) , CassandraDataTranslator . decompose ( ( ( AbstractAttribute ) attribute ) . getBindableJavaType ( ) , thriftColumnValue , true ) ) ; } else { PropertyAccessorHelper . set ( entity , ( Field ) attribute . getJavaMember ( ) , ( byte [ ] ) thriftColumnValue ) ; } } catch ( PropertyAccessException pae ) { log . warn ( "Error while setting field{} value via CQL, Caused by: ." , attribute . getName ( ) , pae ) ; } } }
Sets the field value via cql.

@param entity
the entity
@param thriftColumnValue
the thrift column value
@param attribute
the attribute