Methods Summary |
---|
public java.sql.ResultSet | executeQuery()Executes the SQL query in this PreparedStatement object
and returns the ResultSet object generated by the query.
ResultSet rs = callableStatement.executeQuery();
if (rs == null)
return null;
return new ResultSetWrapper30(this, rs);
|
public java.sql.ResultSet | executeQuery(java.lang.String sql)Executes the given SQL statement, which returns a single
ResultSet object.
ResultSet rs = callableStatement.executeQuery(sql);
if (rs == null)
return null;
return new ResultSetWrapper30(this, rs);
|
public java.sql.ResultSet | getGeneratedKeys()Retrieves any auto-generated keys created as a result of executing this
Statement object. If this Statement object did
not generate any keys, an empty ResultSet
object is returned.
ResultSet rs = callableStatement.getGeneratedKeys();
if (rs == null)
return null;
return new ResultSetWrapper30(this, rs);
|
public java.sql.ResultSet | getResultSet()Retrieves the current result as a ResultSet object.
This method should be called only once per result.
ResultSet rs = callableStatement.getResultSet();
if (rs == null)
return null;
return new ResultSetWrapper30(this, rs);
|