Package com.sforce.soap.partner

Examples of com.sforce.soap.partner.FieldType


  private void addColumns(DescribeSObjectResult objectMetadata, Table table) throws TranslatorException {
    List<Field> fields = objectMetadata.getFields();
    for (Field field : fields) {
      String normalizedName = NameUtil.normalizeName(field.getName());
      FieldType fieldType = field.getType();
      if(!this.connectorEnv.isModelAuditFields() && isAuditField(field.getName())) {
        continue;
      }
      String sfTypeName = fieldType.value();
      Column column = null;
      if(sfTypeName.equals(FieldType.STRING) || //string
          sfTypeName.equals(FieldType.COMBOBOX) || //"combobox"
          sfTypeName.equals(FieldType.REFERENCE) || //"reference"
          sfTypeName.equals(FieldType.PHONE) || //"phone"
View Full Code Here


                int i = 0;
                for (final Field field : fields) {
                    final String columnName = field.getName();
                    final String columnLabel = field.getLabel();
                    final Boolean nillable = field.isNillable();
                    final FieldType type = field.getType();
                    final Integer columnSize = field.getLength();
                    final ColumnType columnType = toColumnType(type);

                    final MutableColumn column = new MutableColumn(columnName, columnType);
                    column.setTable(SalesforceTable.this);
                    column.setRemarks(columnLabel);
                    column.setNullable(nillable);
                    column.setNativeType(type.toString());
                    column.setColumnSize(columnSize);
                    column.setColumnNumber(i);

                    if (type == FieldType.id) {
                        column.setPrimaryKey(true);
View Full Code Here

     * @return Force.com API field type
     */
    public FieldType getType() {
        if (field == null) return null;
       
        FieldType type = field.getType();
       
        if (type == FieldType._double && field.getScale() == 0) {
        type = FieldType._int;
        }
       
View Full Code Here

TOP

Related Classes of com.sforce.soap.partner.FieldType

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.