Package org.easycassandra

Examples of org.easycassandra.CustomData


     */
    class CustomInsert implements InsertColumn {

        @Override
        public Object getObject(Object bean, FieldInformation field) {
            CustomData customData = field.getField().getAnnotation(CustomData.class);
            Customizable customizable = (Customizable) ReflectionUtil.INSTANCE
                    .newInstance(customData.classCustmo());
            return customizable.read(ReflectionUtil.INSTANCE.getMethod(bean,
                    field.getField()));
        }
View Full Code Here


            Definition column = mapDefinition.get(field.getName().toLowerCase());
            ByteBuffer buffer = (ByteBuffer) RelationShipJavaCassandra.INSTANCE
                    .getObject(row, column.getType().getName(),
                            column.getName());
            CustomData customData = field.getField().getAnnotation(CustomData.class);
            Customizable customizable = Customizable.class
                    .cast(ReflectionUtil.INSTANCE.newInstance(customData
                            .classCustmo()));

            return customizable.write(buffer);
        }
View Full Code Here

TOP

Related Classes of org.easycassandra.CustomData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.