/** * Return the JDBC type for the given database field. */ public int getJDBCType(DatabaseField field) { if (field != null) { // If the field has a specified JDBC type, use it, // otherwise compute the type from the Java class type. if (field.getSqlType() != -1) { return field.getSqlType(); } else { return getJDBCType(ConversionManager.getObjectClass(field.getType())); } } else { return getJDBCType((Class)null); } }