1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
/*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/Jdbc2Statement.java,v 1.13 2005/01/11 08:25:46 jurka Exp $
*
*-------------------------------------------------------------------------
*/
package org.postgresql.jdbc2;
import java.sql.*;
import java.util.Vector;
import org.postgresql.core.*;
/**
* This class implements the java.sql.Statement interface for JDBC2.
* However most of the implementation is really done in
* org.postgresql.jdbc2.AbstractJdbc2Statement
*/
class Jdbc2Statement extends AbstractJdbc2Statement implements Statement
{
Jdbc2Statement (Jdbc2Connection c, int rsType, int rsConcurrency) throws SQLException
{
super(c, rsType, rsConcurrency);
}
protected Jdbc2Statement(Jdbc2Connection connection, String sql, boolean isCallable, int rsType, int rsConcurrency) throws SQLException
{
super(connection, sql, isCallable, rsType, rsConcurrency);
}
public ResultSet createResultSet (Query originalQuery, Field[] fields, Vector tuples, ResultCursor cursor)
throws SQLException
{
Jdbc2ResultSet newResult = new Jdbc2ResultSet(originalQuery, this, fields, tuples, cursor,
getMaxRows(), getMaxFieldSize(),
getResultSetType(), getResultSetConcurrency());
newResult.setFetchSize(getFetchSize());
newResult.setFetchDirection(getFetchDirection());
return newResult;
}
}
|