Package org.easycassandra.ClassInformation

Examples of org.easycassandra.ClassInformation.KeySpaceInformation


    }

    @Override
    public <T> InsertBuilder<T> insertBuilder(Class<T> classBean) {
        ClassInformation classInformation = ClassInformations.INSTACE.getClass(classBean);
        KeySpaceInformation key = classInformation.getKeySpace(keySpace);
        Insert insert = QueryBuilder.insertInto(key.getKeySpace(), key.getColumnFamily());
        return new InsertBuilderImpl<>(insert, session, classInformation);
    }
View Full Code Here


        if (key == null) {
            throw new KeyProblemsException(
                    "The parameter key to column family should be passed");
        }
        ClassInformation classInformations = ClassInformations.INSTACE.getClass(bean);
        KeySpaceInformation keyInformation = classInformations.getKeySpace(keySpace);
        Delete delete = QueryBuilder
                .delete()
                .all()
                .from(keyInformation.getKeySpace(),
                        keyInformation.getColumnFamily());

        FieldInformation keyField = classInformations.getKeyInformation();
        if (classInformations.isComplexKey()) {
            runComplexKey(delete, key, keyField.getSubFields().getFields());
        } else {
View Full Code Here

TOP

Related Classes of org.easycassandra.ClassInformation.KeySpaceInformation

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.