Package gistoolkit.features

Examples of gistoolkit.features.AttributeType


                int dec = myHeader.getFieldDecimalCount(i);
                // create the appropriate type based on the dbase type
                switch (myHeader.getFieldType(i)) {
                case 'L':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.BOOLEAN, len, dec);
                    break;
                case 'C':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.STRING, len, dec);
                    break;
                case 'D':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.TIMESTAMP, len, dec);
                    break;
                case 'N':
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.FLOAT, len, dec);
                    break;
                case 'F':
                    // the -1 decimal length indicates that this is a 'F'
                    // field when writing the record in DbaseFileWriter
                    myFieldTypes[i] =
                        new AttributeType(AttributeType.FLOAT, len, -1);
                    break;
                default:
                    myFieldTypes[i] = null;
                    break;
                }
View Full Code Here


            tempComp = "<";
        }
        String tempAttributeValue = (String) getAttributeValue();
        if (tempAttributeValue == null) return null;
        if (tempAttributeValue.length() == 0) return null;
        return getAttributeName()+tempComp+inConverter.toSQLString(tempAttributeValue, new AttributeType(AttributeType.STRING));
    }   
View Full Code Here

        }
        if (tempComparison == ATTRIBUTE_LESS){
            tempComp = "<";
        }
       
        return getAttributeName()+tempComp+inSQLConverter.toSQLDate((java.util.Date)getAttributeValue(), new AttributeType(AttributeType.TIMESTAMP));
    }
View Full Code Here

        StringBuffer tempSB = new StringBuffer();
        tempSB.append(getAttributeName());
        tempSB.append(" IN(");
        for (int i=0; i<tempList.size(); i++){
            if (i>0) tempSB.append(",");
            tempSB.append(inConverter.toSQLString(tempAttributeValue, new AttributeType(AttributeType.STRING)));
        }
        tempSB.append(")");
        return tempSB.toString();
    }   
View Full Code Here

    if (tempComparison == ATTRIBUTE_LESS){
      tempComp = "<";
    }
    Double tempAttributeValue = (Double) getAttributeValue();
    if (tempAttributeValue == null) return null;
        return getAttributeName()+tempComp+inConverter.toSQLDecimal(tempAttributeValue, new AttributeType(AttributeType.FLOAT));
  }       
View Full Code Here

TOP

Related Classes of gistoolkit.features.AttributeType

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.