src/main/java/com/ning/metrics/goodwill/access/GoodwillSchemaField.java
@SuppressWarnings("unused")
    public String getFullSQLType()
    {
        String fullSQLType = null;

        if (sql.type == null) {
            return null;
        }
        else if (sql.type.equals("decimal") || sql.type.equals("numeric")) {
            if (sql.precision != null) {
                if (sql.scale != null) {
                    fullSQLType = sql.type + "(" + sql.precision + ", " + sql.scale + ")";
                }
                else {
                    fullSQLType = sql.type + "(" + sql.precision + ")";
                }
            }
        }
        else {
            if (sql.type.equals("nvarchar") || sql.type.equals("varchar")) {
                if (sql.length != null) {
                    fullSQLType = sql.type + "(" + sql.length + ")";
                }
            }
        }

        if (fullSQLType == null) {
            fullSQLType = sql.type;
        }

        return fullSQLType;
    }
@SuppressWarnings("unused")
    public String getFullSQLType()
    {
        String fullSQLType = null;

        if (sql.type == null) {
            return null;
        }
        else if (sql.type.equals("decimal") || sql.type.equals("numeric")) {
            if (sql.precision != null) {
                if (sql.scale != null) {
                    fullSQLType = sql.type + "(" + sql.precision + ", " + sql.scale + ")";
                }
                else {
                    fullSQLType = sql.type + "(" + sql.precision + ")";
                }
            }
        }
        else {
            if (sql.type.equals("nvarchar") || sql.type.equals("varchar")) {
                if (sql.length != null) {
                    fullSQLType = sql.type + "(" + sql.length + ")";
                }
            }
        }

        if (fullSQLType == null) {
            fullSQLType = sql.type;
        }

        return fullSQLType;
    }
@ SuppressWarnings ( "unused" ) public String getFullSQLType ( ) { String fullSQLType = null ; if ( sql . type == null ) { return null ; } else if ( sql . type . equals ( "decimal" ) || sql . type . equals ( "numeric" ) ) { if ( sql . precision != null ) { if ( sql . scale != null ) { fullSQLType = sql . type + "(" + sql . precision + ", " + sql . scale + ")" ; } else { fullSQLType = sql . type + "(" + sql . precision + ")" ; } } } else { if ( sql . type . equals ( "nvarchar" ) || sql . type . equals ( "varchar" ) ) { if ( sql . length != null ) { fullSQLType = sql . type + "(" + sql . length + ")" ; } } } if ( fullSQLType == null ) { fullSQLType = sql . type ; } return fullSQLType ; }
Pretty print the SQL type.
TODO: add layer of abstraction, too Netezza specific

@return a human readable representation of the SQL type
Pretty print the SQL type . TODO : add layer of abstraction too Netezza specific