Method setObject(int parameterIndex, Object x, int targetSqlType)
Return type: void
Member of: java.sql.PreparedStatement
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 mockPreparedStatement.setObject(1, new Integer(1), Types.NUMERIC);
2 mockPreparedStatement.setObject(1, new Integer(1), Types.NUMERIC);
3 public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException { _stmt.setObject( parameterIndex, x, targetSqlType); }
4 public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException { checkOpen(); _stmt.setObject(parameterIndex, x, targetSqlType);}
5 _cs.setObject(p1, p2, p3);
6 prepStmtPassthru.setObject(p0,p1,p2);
7 ps.setObject(5, new Short((short) 2), Types.SMALLINT);
8 preparedStatement.setObject(parameterIndex, x, targetSqlType);
9 ps.setObject(index, value, sqlType);
10 _ps.setObject(_ind, field, Types.JAVA_OBJECT);
11 delegate_.setObject( parameterIndex, x, targetSqlType );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.