Пример #1
0
 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();
 }
Пример #2
0
 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;
 }