public boolean requiresQuoting(int oid) throws SQLException { int sqlType = getSQLType(oid); switch(sqlType) { case Types.BIGINT: case Types.DOUBLE: case Types.FLOAT: case Types.INTEGER: case Types.REAL: case Types.SMALLINT: case Types.TINYINT: case Types.NUMERIC: case Types.DECIMAL: return false; } return true; }
public int getSQLType(int oid) throws SQLException { return getSQLType(getPGType(oid)); }
public synchronized String getJavaClass(int oid) throws SQLException { String pgTypeName = getPGType(oid); String result = (String)_pgNameToJavaClass.get(pgTypeName); if (result != null) { return result; } if (getSQLType(pgTypeName) == Types.ARRAY) { result = "java.sql.Array"; _pgNameToJavaClass.put(pgTypeName, result); } return result; }
public boolean requiresQuoting(int oid) throws SQLException { int sqlType = getSQLType(oid); switch(sqlType) { case Types.BIGINT: case Types.DOUBLE: case Types.FLOAT: case Types.INTEGER: case Types.REAL: case Types.SMALLINT: case Types.TINYINT: case Types.NUMERIC: case Types.DECIMAL: return false; } return true; }
public boolean requiresQuoting(int oid) throws SQLException { int sqlType = getSQLType(oid); switch(sqlType) { case Types.BIGINT: case Types.DOUBLE: case Types.FLOAT: case Types.INTEGER: case Types.REAL: case Types.SMALLINT: case Types.TINYINT: case Types.NUMERIC: case Types.DECIMAL: return false; } return true; }
public int getSQLType(int oid) throws SQLException { return getSQLType(getPGType(oid)); }
public int getSQLType(int oid) throws SQLException { return getSQLType(getPGType(oid)); }
public synchronized String getJavaClass(int oid) throws SQLException { String pgTypeName = getPGType(oid); String result = (String)_pgNameToJavaClass.get(pgTypeName); if (result != null) { return result; } if (getSQLType(pgTypeName) == Types.ARRAY) { result = "java.sql.Array"; _pgNameToJavaClass.put(pgTypeName, result); } return result; }
public synchronized String getJavaClass(int oid) throws SQLException { String pgTypeName = getPGType(oid); String result = (String)_pgNameToJavaClass.get(pgTypeName); if (result != null) { return result; } if (getSQLType(pgTypeName) == Types.ARRAY) { result = "java.sql.Array"; _pgNameToJavaClass.put(pgTypeName, result); } return result; }