Examples of FieldType


Examples of com.atlantbh.nutch.filter.xpath.config.FieldType

      if(FilterUtils.isMatch(xPathIndexerProperties.getPageUrlFilterRegex(), new String(url.getBytes()).substring(0, url.getLength()))) {
       
        List<XPathIndexerPropertiesField> xPathIndexerPropertiesFieldList = xPathIndexerProperties.getXPathIndexerPropertiesFieldList();
        for(XPathIndexerPropertiesField xPathIndexerPropertiesField : xPathIndexerPropertiesFieldList) {
         
          FieldType type = xPathIndexerPropertiesField.getType();
          for(String stringValue : metadata.getValues(xPathIndexerPropertiesField.getName())) {
           
            Object value;
            switch(type) {
              case STRING:
View Full Code Here

Examples of com.atlassian.jira.rest.client.api.domain.FieldType

public class ChangelogItemJsonParser implements JsonObjectParser<ChangelogItem> {
  @Override
  public ChangelogItem parse(JSONObject json) throws JSONException {
    final String fieldTypeStr = JsonParseUtil.getNestedString(json, "fieldtype");
    final FieldType fieldType;
    if ("jira".equalsIgnoreCase(fieldTypeStr)) {
      fieldType = FieldType.JIRA;
    } else if ("custom".equalsIgnoreCase(fieldTypeStr)) {
      fieldType = FieldType.CUSTOM;
    } else {
View Full Code Here

Examples of com.github.dactiv.common.FieldType

    String restrictionsNameAndClassType = StringUtils.substringBefore(expression, "_");
   
    String restrictionsName = StringUtils.substring(restrictionsNameAndClassType, 0,restrictionsNameAndClassType.length() - 1);
    String classType = StringUtils.substring(restrictionsNameAndClassType, restrictionsNameAndClassType.length() - 1, restrictionsNameAndClassType.length());
   
    FieldType FieldType = null;
    try {
      FieldType = FieldType.valueOf(classType);
    } catch (Exception e) {
      throw new IllegalAccessError("[" + expression + "]表达式找不到相应的属性类型,获取的值为:" + classType);
    }
   
    String[] propertyNames = null;
View Full Code Here

Examples of com.github.rnewson.couchdb.lucene.couchdb.FieldType

        database.handleAttachment(id, attachment.attachmentName, handler);
    }

    private void addField(final RhinoField field, final ViewSettings defaults, final Document out) throws ParseException {
        final ViewSettings settings = new ViewSettings(field.settings, defaults);
        final FieldType type = settings.getFieldType();
        out.add(type.toField(settings.getField(), field.value, settings));
    }
View Full Code Here

Examples of com.google.code.lightssh.project.log.entity.Field.FieldType

     
      Object nv = null;
      if( newObj != null && npMap.get(p) != null )
        nv = ReflectionUtil.reflectGetValue( newObj ,p );
     
      FieldType type = FieldType.NO_CHANGE;
      if( originalObj != null && newObj != null ){
        if( opMap.get(p) == null )
          type = FieldType.ADD_FIELD;
        if( npMap.get(p) == null )
          type = FieldType.REMOVE_FIELD;
View Full Code Here

Examples of com.j256.ormlite.field.FieldType

    }
  }

  public static <T, ID> MappedUpdateId<T, ID> build(DatabaseType databaseType, TableInfo<T, ID> tableInfo)
      throws SQLException {
    FieldType idField = tableInfo.getIdField();
    if (idField == null) {
      throw new SQLException("Cannot update-id in " + tableInfo.getDataClass()
          + " because it doesn't have an id field");
    }
    StringBuilder sb = new StringBuilder(64);
View Full Code Here

Examples of com.j256.ormlite.field.FieldType

    super(tableInfo, statement, argFieldTypes);
  }

  public static <T, ID> MappedDelete<T, ID> build(DatabaseType databaseType, TableInfo<T, ID> tableInfo)
      throws SQLException {
    FieldType idField = tableInfo.getIdField();
    if (idField == null) {
      throw new SQLException("Cannot delete from " + tableInfo.getDataClass()
          + " because it doesn't have an id field");
    }
    StringBuilder sb = new StringBuilder(64);
View Full Code Here

Examples of com.j256.ormlite.field.FieldType

  /**
   * This is private because the execute is the only method that should be called here.
   */
  private static <T, ID> MappedDeleteCollection<T, ID> build(DatabaseType databaseType, TableInfo<T, ID> tableInfo,
      int dataSize) throws SQLException {
    FieldType idField = tableInfo.getIdField();
    if (idField == null) {
      throw new SQLException("Cannot delete " + tableInfo.getDataClass()
          + " because it doesn't have an id field defined");
    }
    StringBuilder sb = new StringBuilder(128);
View Full Code Here

Examples of com.j256.ormlite.field.FieldType

  /**
   * Add a column to be set to a value for UPDATE statements. This will generate something like columnName = 'value'
   * with the value escaped if necessary.
   */
  public StatementBuilder<T, ID> updateColumnValue(String columnName, Object value) throws SQLException {
    FieldType fieldType = verifyColumnName(columnName);
    if (fieldType.isForeignCollection()) {
      throw new SQLException("Can't update foreign colletion field: " + columnName);
    }
    addUpdateColumnToList(columnName, new SetValue(columnName, fieldType, value));
    return this;
  }
View Full Code Here

Examples of com.j256.ormlite.field.FieldType

    this.dao = dao;
    this.dataClass = tableConfig.getDataClass();
    this.tableName = tableConfig.getTableName();
    this.fieldTypes = tableConfig.getFieldTypes(databaseType);
    // find the id field
    FieldType findIdFieldType = null;
    for (FieldType fieldType : fieldTypes) {
      if (fieldType.isId() || fieldType.isGeneratedId() || fieldType.isGeneratedIdSequence()) {
        if (findIdFieldType != null) {
          throw new SQLException("More than 1 idField configured for class " + dataClass + " ("
              + findIdFieldType + "," + fieldType + ")");
        }
        findIdFieldType = fieldType;
      }
    }
    // if we just have 1 field and it is a generated-id then inserts will be blank which is not allowed.
    if (fieldTypes.length == 1 && findIdFieldType != null && findIdFieldType.isGeneratedId()) {
      throw new SQLException("Must have more than a single field which is a generated-id for class " + dataClass);
    }
    // can be null if there is no id field
    this.idField = findIdFieldType;
    this.constructor = tableConfig.getConstructor();
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.