Examples of parseValue()


Examples of org.talend.esb.sam.server.persistence.criterias.DateCriteria.parseValue()

    assertEquals("TIMESTAMP = :timestamp", value.getFilterClause().toString());
  }
 
  public void testOnDayCriteria() throws Exception {
    DateCriteria criteria = new DateCriteria("timestamp_on", "TIMESTAMP");
    Criteria[] values = criteria.parseValue("1307570400000");
    assertEquals("TIMESTAMP > :timestamp_on_after", values[0].getFilterClause().toString());
    assertEquals("TIMESTAMP < :timestamp_on_before", values[1].getFilterClause().toString());
  }

 
View Full Code Here

Examples of org.tamacat.dao.rdb.internal.SQLParser.parseValue()

                columns.append(",");
                values.append(",");
            }
            columns.append(col.getColumnName());
            if (data.isUpdate(col)) {
                values.append(parser.parseValue(col, data.getValue(col)));
            } else {
              if (col.isAutoGenerateId()) {
                String id = UniqueCodeGenerator.generate();
                  values.append(parser.parseValue(col, id));
                  data.setValue(col, id);
View Full Code Here

Examples of org.tamacat.dao.rdb.internal.SQLParser.parseValue()

            if (data.isUpdate(col)) {
                values.append(parser.parseValue(col, data.getValue(col)));
            } else {
              if (col.isAutoGenerateId()) {
                String id = UniqueCodeGenerator.generate();
                  values.append(parser.parseValue(col, id));
                  data.setValue(col, id);
              } else if (col.isAutoTimestamp()) {
                values.append(parser.parseValue(col, getTimestampString()));
              } else {
                values.append(parser.parseValue(col, data.getValue(col)));
View Full Code Here

Examples of org.tamacat.dao.rdb.internal.SQLParser.parseValue()

              if (col.isAutoGenerateId()) {
                String id = UniqueCodeGenerator.generate();
                  values.append(parser.parseValue(col, id));
                  data.setValue(col, id);
              } else if (col.isAutoTimestamp()) {
                values.append(parser.parseValue(col, getTimestampString()));
              } else {
                values.append(parser.parseValue(col, data.getValue(col)));
              }
            }
            if (col.getType() == RdbDataType.OBJECT) {
View Full Code Here

Examples of org.tamacat.dao.rdb.internal.SQLParser.parseValue()

                  values.append(parser.parseValue(col, id));
                  data.setValue(col, id);
              } else if (col.isAutoTimestamp()) {
                values.append(parser.parseValue(col, getTimestampString()));
              } else {
                values.append(parser.parseValue(col, data.getValue(col)));
              }
            }
            if (col.getType() == RdbDataType.OBJECT) {
              blobIndex++;
            }
View Full Code Here

Examples of org.xnio.Option.parseValue()

        if (entries.size() > 0) {
            OptionMap.Builder builder = OptionMap.builder();
            final ClassLoader loader = SecurityActions.getClassLoader(this.getClass());
            for (ResourceEntry entry : entries) {
                final Option option = Option.fromString(entry.getName(), loader);
                builder.set(option, option.parseValue(entry.getModel().get(CommonAttributes.VALUE).asString(), loader));
            }
            optionMap = builder.getMap();
        } else {
            optionMap = OptionMap.EMPTY;
        }
View Full Code Here

Examples of org.xnio.Option.parseValue()

                final String type = ChannelCreationOptionResource.CHANNEL_CREATION_OPTION_TYPE.resolveModelAttribute(context,propValueModel).asString();
                final String optionClassName = this.getClassNameForChannelOptionType(type);
                final String fullyQualifiedOptionName = optionClassName + "." + name;
                final Option option = Option.fromString(fullyQualifiedOptionName, loader);
                final String value = ChannelCreationOptionResource.CHANNEL_CREATION_OPTION_VALUE.resolveModelAttribute(context, propValueModel).asString();
                builder.set(option, option.parseValue(value, loader));
            }
            return builder.getMap();
        } else {
            return OptionMap.EMPTY;
        }
View Full Code Here

Examples of org.xnio.Option.parseValue()

            String name = property.getName();
            if (!name.contains(".")) {
                name = "org.xnio.Options." + name;
            }
            final Option option = Option.fromString(name, loader);
            builder.set(option, option.parseValue(property.getValue().get(CommonAttributes.VALUE).asString(), loader));
        }
    }

    private static Collection<String> asStringSet(final ModelNode node) {
        final Set<String> set = new HashSet<String>();
View Full Code Here

Examples of org.xnio.Option.parseValue()

                final String type = ChannelCreationOptionResource.CHANNEL_CREATION_OPTION_TYPE.resolveModelAttribute(context,propValueModel).asString();
                final String optionClassName = this.getClassNameForChannelOptionType(type);
                final String fullyQualifiedOptionName = optionClassName + "." + name;
                final Option option = Option.fromString(fullyQualifiedOptionName, loader);
                final String value = ChannelCreationOptionResource.CHANNEL_CREATION_OPTION_VALUE.resolveModelAttribute(context, propValueModel).asString();
                builder.set(option, option.parseValue(value, loader));
            }
            return builder.getMap();
        }
        return OptionMap.EMPTY;
    }
View Full Code Here

Examples of org.xnio.Option.parseValue()

        if (entries.size() > 0) {
            OptionMap.Builder builder = OptionMap.builder();
            final ClassLoader loader = SecurityActions.getClassLoader(this.getClass());
            for (ResourceEntry entry : entries) {
                final Option option = Option.fromString(entry.getName(), loader);
                builder.set(option, option.parseValue(entry.getModel().get(CommonAttributes.VALUE).asString(), loader));
            }
            optionMap = builder.getMap();
        } else {
            optionMap = OptionMap.EMPTY;
        }
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.