Package org.easycassandra

Examples of org.easycassandra.IndexProblemException


  static <T> void checkFieldNull(Class<T> bean, List<FieldInformation> fields) {
    if (fields.isEmpty()) {
      StringBuilder erro = new StringBuilder();
      erro.append("No found some field with @org.easycassandra.Index within ");
      erro.append(bean.getName()).append(" class.");
      throw new IndexProblemException(erro.toString());
    }
  }
View Full Code Here


    static <T> void checkIndexProblem(Class<T> bean, QueryBean byKeyBean) {
        if (byKeyBean.getSearchField() == null) {
            StringBuilder erro = new StringBuilder();
            erro.append("Some field in a class ").append(bean.getName());
            erro.append(" should be a annotation: @org.easycassandra.annotations.Index ");
            throw new IndexProblemException(erro.toString());
        }
    }
View Full Code Here

TOP

Related Classes of org.easycassandra.IndexProblemException

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.