Package org.restsql.core

Examples of org.restsql.core.ColumnMetaData.normalizeValue()


    }
    if (request.getResourceIdentifiers() != null) {
      for (final RequestValue param : request.getResourceIdentifiers()) {
        final ColumnMetaData column = table.getColumns().get(param.getName());
        if (column != null && !column.isNonqueriedForeignKey()) {
          column.normalizeValue(param); // this is called in the SQL Builder as well, but it's required here
                          // for parent res ids
          responseValues.add(new ResponseValue(param.getName(), param.getValue(), column
              .getColumnNumber()));
        }
      }
View Full Code Here


          if (column.isCharOrDateTimeType()) {
            sql.getClause().append('\'');
          }

          // Convert String to appropriate object
          column.normalizeValue(param);

          // Set the value in the printable clause, the ? in the prepared clause, and prepared clause value
          sql.getClause().append(param.getValue().toString());
          sql.getPreparedClause().append(buildPreparedParameterSql(column));
          sql.getPreparedValues().add(param.getValue());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.