public int translateDBColumnType(String type){
  try {
    String value=PROPERTIES.getProperty(type);
    String typeUnderscore=type.replaceAll(" ","_");
    if (value == null) {
      value=PROPERTIES.getProperty(typeUnderscore);
    }
    return Integer.parseInt(value);
  }
 catch (  NumberFormatException e) {
    throw new IllegalArgumentException("Unknown data type: " + type + ". "+ "Add entry in "+ PROPERTY_FILE+ ".\n"+ "If the type contains blanks, either escape them with a backslash "+ "or use underscores instead of blanks.");
  }
}

public int translateDBColumnType ( String type ) { try { String value = PROPERTIES . getProperty ( type ) ; String typeUnderscore = type . replaceAll ( " " , "_" ) ; if ( value == null ) { value = PROPERTIES . getProperty ( typeUnderscore ) ; } return Integer . parseInt ( value ) ; } catch ( NumberFormatException e ) { throw new IllegalArgumentException ( "Unknown data type: " + type + ". " + "Add entry in " + PROPERTY_FILE + ".\n" + "If the type contains blanks, either escape them with a backslash " + "or use underscores instead of blanks." ) ; } }
translates the column data type string to an integer value that indicates which data type / get ( ) - method to use in order to retrieve values from the database ( see databaseutils . properties , instancequery ( ) ) . blanks in the type are replaced with underscores " _ " , since java property names can ' t contain blanks .
