public AbstractJdbc3gConnection(String host, int port, String user, String database, Properties info, String url) throws SQLException { super(host, port, user, database, info, url); TypeInfo types = getTypeInfo(); if (haveMinimumServerVersion("8.3")) { types.addCoreType("uuid", Oid.UUID, java.sql.Types.OTHER, "java.util.UUID", Oid.UUID_ARRAY); } }
public void setObject(int parameterIndex, Object x) throws SQLException { if (x instanceof SQLXML) { setSQLXML(parameterIndex, (SQLXML)x); } else { super.setObject(parameterIndex, x); } }
protected Object internalGetObject(int columnIndex, Field field) throws SQLException { switch(getSQLType(columnIndex)) { case Types.SQLXML: return getSQLXML(columnIndex); } return super.internalGetObject(columnIndex, field); }
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { if (targetSqlType == Types.OTHER && x instanceof UUID && connection.haveMinimumServerVersion("8.3")) { setString(parameterIndex, x.toString(), Oid.UUID); } else { super.setObject(parameterIndex, x, targetSqlType, scale); } } }
public void setNull(int parameterIndex, int targetSqlType) throws SQLException { checkClosed(); int oid; switch (targetSqlType) { case Types.SQLXML: oid = Oid.XML; break; default: super.setNull(parameterIndex, targetSqlType); return; } if (adjustIndex) parameterIndex--; preparedParameters.setNull(parameterIndex, oid); }
public AbstractJdbc3gConnection(String host, int port, String user, String database, Properties info, String url) throws SQLException { super(host, port, user, database, info, url); TypeInfo types = getTypeInfo(); if (haveMinimumServerVersion("8.3")) { types.addCoreType("uuid", Oid.UUID, java.sql.Types.OTHER, "java.util.UUID", Oid.UUID_ARRAY); } }
public void setObject(int parameterIndex, Object x) throws SQLException { if (x instanceof UUID && connection.haveMinimumServerVersion("8.3")) { setString(parameterIndex, x.toString(), Oid.UUID); } else { super.setObject(parameterIndex, x); } }
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { checkClosed(); if (x == null) { setNull(parameterIndex, targetSqlType); return; } switch (targetSqlType) { case Types.SQLXML: if (x instanceof SQLXML) { setSQLXML(parameterIndex, (SQLXML)x); } else { setSQLXML(parameterIndex, new Jdbc4SQLXML(connection, x.toString())); } break; default: super.setObject(parameterIndex, x, targetSqlType, scale); } }
protected Object internalGetObject(int columnIndex, Field field) throws SQLException { switch(getSQLType(columnIndex)) { case Types.SQLXML: return getSQLXML(columnIndex); } return super.internalGetObject(columnIndex, field); }
public void setNull(int parameterIndex, int targetSqlType) throws SQLException { checkClosed(); int oid; switch (targetSqlType) { case Types.SQLXML: oid = Oid.XML; break; default: super.setNull(parameterIndex, targetSqlType); return; } if (adjustIndex) parameterIndex--; preparedParameters.setNull(parameterIndex, oid); }
public AbstractJdbc3gConnection(String host, int port, String user, String database, Properties info, String url) throws SQLException { super(host, port, user, database, info, url); TypeInfo types = getTypeInfo(); if (haveMinimumServerVersion("8.3")) { types.addCoreType("uuid", Oid.UUID, java.sql.Types.OTHER, "java.util.UUID", Oid.UUID_ARRAY); } }
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { if (targetSqlType == Types.OTHER && x instanceof UUID && connection.haveMinimumServerVersion("8.3")) { setString(parameterIndex, x.toString(), Oid.UUID); } else { super.setObject(parameterIndex, x, targetSqlType, scale); } } }
public void setObject(int parameterIndex, Object x) throws SQLException { if (x instanceof SQLXML) { setSQLXML(parameterIndex, (SQLXML)x); } else { super.setObject(parameterIndex, x); } }
protected Object internalGetObject(int columnIndex, Field field) throws SQLException { switch(getSQLType(columnIndex)) { case Types.SQLXML: return getSQLXML(columnIndex); } return super.internalGetObject(columnIndex, field); }
public void setNull(int parameterIndex, int targetSqlType) throws SQLException { checkClosed(); int oid; switch (targetSqlType) { case Types.SQLXML: oid = Oid.XML; break; default: super.setNull(parameterIndex, targetSqlType); return; } if (adjustIndex) parameterIndex--; preparedParameters.setNull(parameterIndex, oid); }
public void setObject(int parameterIndex, Object x) throws SQLException { if (x instanceof UUID && connection.haveMinimumServerVersion("8.3")) { setString(parameterIndex, x.toString(), Oid.UUID); } else { super.setObject(parameterIndex, x); } }
public void setObject(int parameterIndex, Object x) throws SQLException { if (x instanceof SQLXML) { setSQLXML(parameterIndex, (SQLXML)x); } else { super.setObject(parameterIndex, x); } }
public void setObject(int parameterIndex, Object x) throws SQLException { if (x instanceof UUID && connection.haveMinimumServerVersion("8.3")) { setString(parameterIndex, x.toString(), Oid.UUID); } else { super.setObject(parameterIndex, x); } }
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { checkClosed(); if (x == null) { setNull(parameterIndex, targetSqlType); return; } switch (targetSqlType) { case Types.SQLXML: if (x instanceof SQLXML) { setSQLXML(parameterIndex, (SQLXML)x); } else { setSQLXML(parameterIndex, new Jdbc4SQLXML(connection, x.toString())); } break; default: super.setObject(parameterIndex, x, targetSqlType, scale); } }
public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { if (targetSqlType == Types.OTHER && x instanceof UUID && connection.haveMinimumServerVersion("8.3")) { setString(parameterIndex, x.toString(), Oid.UUID); } else { super.setObject(parameterIndex, x, targetSqlType, scale); } } }