All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.firebirdsql.jdbc.FBCallableStatement Maven / Gradle / Ivy

There is a newer version: 4.0.10.java8
Show newest version
/*
 * $Id$
 *
 * Firebird Open Source JavaEE Connector - JDBC Driver
 *
 * Distributable under LGPL license.
 * You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
 *
 * This program 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
 * LGPL License for more details.
 *
 * This file was created by members of the firebird development team.
 * All individual contributions remain the Copyright (C) of those
 * individuals.  Contributors to this file are either listed here or
 * can be obtained from a source control history command.
 *
 * All rights reserved.
 */
package org.firebirdsql.jdbc;

import org.firebirdsql.gds.impl.GDSHelper;

import java.sql.SQLException;
import java.sql.SQLType;

/**
 * JDBC 4.2 implementation of {@link java.sql.PreparedStatement} interface.
 * 

* Contains methods specific to the JDBC 4.2 implementation, or exists if there are methods in higher JDBC versions * that cannot be defined in JDBC 4.2. *

* * @author David Jencks * @author Roman Rokytskyy * @author Steven Jardine * @author Mark Rotteveel */ public class FBCallableStatement extends AbstractCallableStatement { protected FBCallableStatement(GDSHelper c, String sql, int rsType, int rsConcurrency, int rsHoldability, StoredProcedureMetaData storedProcMetaData, FBObjectListener.StatementListener statementListener, FBObjectListener.BlobListener blobListener) throws SQLException { super(c, sql, rsType, rsConcurrency, rsHoldability, storedProcMetaData, statementListener, blobListener); } @Override public void registerOutParameter(int parameterIndex, SQLType sqlType) throws SQLException { registerOutParameter(parameterIndex, sqlType.getVendorTypeNumber()); } @Override public void registerOutParameter(int parameterIndex, SQLType sqlType, int scale) throws SQLException { registerOutParameter(parameterIndex, sqlType.getVendorTypeNumber(), scale); } @Override public void registerOutParameter(int parameterIndex, SQLType sqlType, String typeName) throws SQLException { registerOutParameter(parameterIndex, sqlType.getVendorTypeNumber(), typeName); } @Override public void registerOutParameter(String parameterName, SQLType sqlType) throws SQLException { registerOutParameter(parameterName, sqlType.getVendorTypeNumber()); } @Override public void registerOutParameter(String parameterName, SQLType sqlType, int scale) throws SQLException { registerOutParameter(parameterName, sqlType.getVendorTypeNumber(), scale); } @Override public void registerOutParameter(String parameterName, SQLType sqlType, String typeName) throws SQLException { registerOutParameter(parameterName, sqlType.getVendorTypeNumber(), typeName); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy