@Override
 public Object getObject(Object bean, Field field) {
   CustomData customData = field.getAnnotation(CustomData.class);
   Customizable customizable =
       (Customizable) ReflectionUtil.INSTANCE.newInstance(customData.classCustmo());
   return customizable.read(ReflectionUtil.INSTANCE.getMethod(bean, field));
 }
예제 #2
0
    @Override
    public Object getObject(Map<String, Definition> mapDefinition, Field field, Row row) {
      Definition column = mapDefinition.get(ColumnUtil.INTANCE.getColumnName(field).toLowerCase());
      ByteBuffer buffer =
          (ByteBuffer)
              RelationShipJavaCassandra.INSTANCE.getObject(
                  row, column.getType().getName(), column.getName());
      CustomData customData = field.getAnnotation(CustomData.class);
      Customizable customizable =
          Customizable.class.cast(ReflectionUtil.INSTANCE.newInstance(customData.classCustmo()));

      return customizable.write(buffer);
    }