novie-core/src/main/java/com/groupon/novie/utils/SchemaDefinitionImpl.java
@Override
    public ColumnDataType getInformationType(String dimensionName, String informationName) {
        if (StringUtils.isNotBlank(dimensionName)) {
            DimensionTable dim = dimensions.get(dimensionName.toUpperCase());
            if (dim == null) {
                throw new IllegalArgumentException("Unknown dimension named " + dimensionName + ".");
            }
            if (StringUtils.isBlank(informationName)) {
                return dim.getDefaultSearchColumn().getColumnType();
            }
            AbstractSqlColumn information = dim.getSqlTableColumnByInformationName(informationName);
            if (information == null) {
                throw new IllegalArgumentException("Unknown information named " + informationName + " for dimension " + dimensionName + ".");
            }
            return information.getColumnType();
        }
        throw new IllegalArgumentException("Dimension name can't be null or blank");
    }
@Override
    public ColumnDataType getInformationType(String dimensionName, String informationName) {
        if (StringUtils.isNotBlank(dimensionName)) {
            DimensionTable dim = dimensions.get(dimensionName.toUpperCase());
            if (dim == null) {
                throw new IllegalArgumentException("Unknown dimension named " + dimensionName + ".");
            }
            if (StringUtils.isBlank(informationName)) {
                return dim.getDefaultSearchColumn().getColumnType();
            }
            AbstractSqlColumn information = dim.getSqlTableColumnByInformationName(informationName);
            if (information == null) {
                throw new IllegalArgumentException("Unknown information named " + informationName + " for dimension " + dimensionName + ".");
            }
            return information.getColumnType();
        }
        throw new IllegalArgumentException("Dimension name can't be null or blank");
    }
@ Override public ColumnDataType getInformationType ( String dimensionName , String informationName ) { if ( StringUtils . isNotBlank ( dimensionName ) ) { DimensionTable dim = dimensions . get ( dimensionName . toUpperCase ( ) ) ; if ( dim == null ) { throw new IllegalArgumentException ( "Unknown dimension named " + dimensionName + "." ) ; } if ( StringUtils . isBlank ( informationName ) ) { return dim . getDefaultSearchColumn ( ) . getColumnType ( ) ; } AbstractSqlColumn information = dim . getSqlTableColumnByInformationName ( informationName ) ; if ( information == null ) { throw new IllegalArgumentException ( "Unknown information named " + informationName + " for dimension " + dimensionName + "." ) ; } return information . getColumnType ( ) ; } throw new IllegalArgumentException ( "Dimension name can't be null or blank" ) ; }
/*
(non-Javadoc)

@see com.groupon.novie.SchemaConfig#getInformationType(java.lang.String,
java.lang.String)
/ * ( non - Javadoc )