final static int getType(Root root, Class klass) { return root.getAdapter(klass).defaultJDBCType();
final static int getType(Root root, Object obj) { if (obj == null) { return Types.INTEGER; } else { return getType(root, obj.getClass()); }
    final static int getType(Root root, Class klass) {        return root.getAdapter(klass).defaultJDBCType();    }