/***************************************************************************** * Copyright (C) 2008 EnterpriseDB Corporation. * Copyright (C) 2011 Stado Global Development Group. * * This file is part of Stado. * * Stado is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Stado is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Stado. If not, see <http://www.gnu.org/licenses/>. * * You can find Stado at http://www.stado.us * ****************************************************************************/ package org.postgresql.driver.jdbc3; import java.sql.*; import java.util.Vector; import org.postgresql.driver.core.*; /** * This class implements the java.sql.Statement interface for JDBC3. * However most of the implementation is really done in * org.postgresql.driver.jdbc3.AbstractJdbc3Statement or one of it's parents */ class Jdbc3Statement extends AbstractJdbc3Statement implements Statement { Jdbc3Statement (Jdbc3Connection c, int rsType, int rsConcurrency, int rsHoldability) throws SQLException { super(c, rsType, rsConcurrency, rsHoldability); } protected Jdbc3Statement(Jdbc3Connection connection, String sql, boolean isCallable, int rsType, int rsConcurrency, int rsHoldability) throws SQLException { super(connection, sql, isCallable, rsType, rsConcurrency, rsHoldability); } public ResultSet createResultSet (Query originalQuery, Field[] fields, Vector tuples, ResultCursor cursor) throws SQLException { Jdbc3ResultSet newResult = new Jdbc3ResultSet(originalQuery, this, fields, tuples, cursor, getMaxRows(), getMaxFieldSize(), getResultSetType(), getResultSetConcurrency(), getResultSetHoldability()); newResult.setFetchSize(getFetchSize()); newResult.setFetchDirection(getFetchDirection()); return newResult; } public ParameterMetaData createParameterMetaData(BaseConnection conn, int oids[]) throws SQLException { return new Jdbc3ParameterMetaData(conn, oids); } @Override public boolean isWrapperFor(Class<?> iface) throws SQLException { // TODO Auto-generated method stub return false; } @Override public <T> T unwrap(Class<T> iface) throws SQLException { // TODO Auto-generated method stub return null; } @Override public boolean isClosed() throws SQLException { // TODO Auto-generated method stub return false; } @Override public boolean isPoolable() throws SQLException { // TODO Auto-generated method stub return false; } @Override public void setPoolable(boolean poolable) throws SQLException { // TODO Auto-generated method stub } }