Package org.easycassandra

Examples of org.easycassandra.FieldInformation


    }

    public <T> boolean deleteByKey(T bean, Session session,
            ConsistencyLevel consistency) {
        ClassInformation classInformation = ClassInformations.INSTACE.getClass(bean.getClass());
        FieldInformation keyField = classInformation.getKeyInformation();

        return deleteByKey(ReflectionUtil.INSTANCE.getMethod(bean, keyField.getField()),
                bean.getClass(), session, consistency);
    }
View Full Code Here


                .delete()
                .all()
                .from(keyInformation.getKeySpace(),
                        keyInformation.getColumnFamily());

        FieldInformation keyField = classInformations.getKeyInformation();
        if (classInformations.isComplexKey()) {
            runComplexKey(delete, key, keyField.getSubFields().getFields());
        } else {
            delete.where(QueryBuilder.eq(keyField.getName(), key));
        }

        delete.setConsistencyLevel(consistency);
        return delete;
    }
View Full Code Here

TOP

Related Classes of org.easycassandra.FieldInformation

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.