Package org.tamacat.dao.rdb

Examples of org.tamacat.dao.rdb.RdbInvalidParameterException


      String colName = MappingUtils.getColumnName(column);
        StringBuffer search = new StringBuffer(colName + condition.getCondition());
        if (values != null) {
            if (values.length == 1){
              String value = values[0];
              if (value == null) throw new RdbInvalidParameterException("Column [" + colName + "] is required.");
             
                if (column.getType() == RdbDataType.STRING //for LIKE 'String Data'
                  && condition.getCondition().indexOf(" like ") >= 0) {
                    search.append(parseLikeStringValue(condition, column, value));
                } else if (condition.getCondition().equals(" in ")) { //IN
View Full Code Here


          for (RdbTableMetaData table : tables) {
            tableName = table.getTableName();
            break;
          }
            if (tableName == null) {
              throw new RdbInvalidParameterException();
            }
        }
        String query = DELETE.replace("${TABLE}", tableName);
        return query + where.toString();
    }
View Full Code Here

TOP

Related Classes of org.tamacat.dao.rdb.RdbInvalidParameterException

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.