Package org.easycassandra

Examples of org.easycassandra.KeyProblemsException


        StringBuilder erro = new StringBuilder();
        erro.append("The parameter key should be the"
                + " same type of the key of column family, the type passed was ");
        erro.append(key.getClass().getName()).append(" and was expected ")
                .append(keyClass.getName());
        throw new KeyProblemsException(erro.toString());
    }
View Full Code Here


        this.keySpace = keySpace;
    }

    public Update runUpdate(Object key, Class<?> bean) {
        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);
View Full Code Here

    }

    private void verifyKeyNull(Object bean, List<FieldInformation> fields) {
        for (FieldInformation field : fields) {
            if (ReflectionUtil.INSTANCE.getMethod(bean, field.getField()) == null) {
                throw new KeyProblemsException("Key is mandatory to insert a new column family,"
                        + "check: " + field.getName());
            }
        }
    }
View Full Code Here

                        + "you may to use either javax.persistence.Id");
        erroMensage.append(" to simple id or javax.persistence.EmbeddedId");
        erroMensage
                .append(" to complex id, another object with one "
                        + "or more fields annotated with java.persistence.Column.");
        throw new KeyProblemsException(erroMensage.toString());
    }
View Full Code Here


    public Delete runDelete(Object key, Class<?> bean,
            ConsistencyLevel consistency) {
        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
View Full Code Here

TOP

Related Classes of org.easycassandra.KeyProblemsException

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.