Package org.pentaho.metadata.model.concept.types

Examples of org.pentaho.metadata.model.concept.types.DataType


    if (type == null || DataType.class.equals(type))
    {
      return value;
    }

    DataType dataTypeSettings = (DataType) value;
//    public static final int DATA_TYPE_STRING = 1;
//    public static final int DATA_TYPE_DATE = 2;
//    public static final int DATA_TYPE_BOOLEAN = 3;
//    public static final int DATA_TYPE_NUMERIC = 4;
//    public static final int DATA_TYPE_BINARY = 5;
View Full Code Here


    TypedMetaTableModel tableModel = new TypedMetaTableModel();
    for (final Selection selection : selections)
    {
      LogicalColumn logicalColumn = selection.getLogicalColumn();
      String id = logicalColumn.getId();
      DataType dataType = logicalColumn.getDataType();
      tableModel.addColumn(id, mapDataType(dataType));
    }
    return new PmdMetaTableModel(tableModel, selections);
  }
View Full Code Here

    if (type == null || Object.class.equals(type) ||  DataType.class.equals(type))
    {
      return value;
    }

    final DataType dataTypeSettings = (DataType) value;
//    public static final int DATA_TYPE_STRING = 1;
//    public static final int DATA_TYPE_DATE = 2;
//    public static final int DATA_TYPE_BOOLEAN = 3;
//    public static final int DATA_TYPE_NUMERIC = 4;
//    public static final int DATA_TYPE_BINARY = 5;
View Full Code Here

      // TODO this should take a locale
      String desc = column.getFieldType().getDescription();
      desc = org.pentaho.pms.messages.Messages.getString( desc );
      columnNode.addElement( "column_field_type" ).setText( desc ); //$NON-NLS-1$
    }
    DataType dataType = column.getDataType();
    if ( dataType != null ) {
      columnNode.addElement( "column_type" ).setText( dataType.getName() ); //$NON-NLS-1$
    }
    if ( column.getProperty( "lookup" ) != null ) { //$NON-NLS-1$
      columnNode.addElement( "column_lookup" ).setText( "true" ); //$NON-NLS-1$ //$NON-NLS-2$
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.metadata.model.concept.types.DataType

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.