public String getSQLType ( boolean bIncludeLength , Map < String , Object > properties ) { String strType = ( String ) properties . get ( DBSQLTypes . STRING ) ; if ( strType == null ) strType = "VARCHAR" ; // The default SQL Type if ( this . getMaxLength ( ) < 127 ) { String strStart = ( String ) properties . get ( "LONGSTRINGSTART" ) ; if ( strStart != null ) { int iStart = Integer . parseInt ( strStart ) ; if ( iStart < this . getMaxLength ( ) ) strType = ( String ) properties . get ( "LONGSTRING" ) ; } } if ( bIncludeLength ) strType += "(" + Integer . toString ( this . getMaxLength ( ) ) + ")" ; return strType ; }
Get the SQL type of this field . Typically STRING VARCHAR or LONGSTRING if over 127 chars .