public int translateSqlType(String typeName) throws BuildException { String mappedType = TypeMap.getMappedType(_upgrader.getTypeMaps(), typeName, "java"); Integer sqlTypeInteger = (Integer) SQL_TYPES.get(mappedType); if (sqlTypeInteger == null) { throw new BuildException("No type mapping for: " + typeName); } return sqlTypeInteger.intValue(); }
public String getDBSpecificTypeName(String typeName) throws BuildException { String mappedType = TypeMap.getMappedType(_upgrader.getTypeMaps(), typeName, _upgrader.getDBType()); if (mappedType == null) { throw new BuildException("No type mapping for: " + typeName); } return mappedType; }