usercallablestatement.java
来自「RESIN 3.2 最新源码」· Java 代码 · 共 1,045 行 · 第 1/2 页
JAVA
1,045 行
/* * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source 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 2 of the License, or * (at your option) any later version. * * Resin Open Source 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, or any warranty * of NON-INFRINGEMENT. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License * along with Resin Open Source; if not, write to the * Free SoftwareFoundation, Inc. * 59 Temple Place, Suite 330 * Boston, MA 02111-1307 USA * * @author Scott Ferguson */package com.caucho.sql;import com.caucho.log.Log;import com.caucho.util.L10N;import java.io.InputStream;import java.io.Reader;import java.math.BigDecimal;import java.net.URL;import java.sql.*;import java.util.Calendar;import java.util.Map;import java.util.logging.Logger;/** * User-view of prepared statements */public class UserCallableStatement extends UserPreparedStatement implements CallableStatement { protected final static Logger log = Log.open(UserCallableStatement.class); protected static L10N L = new L10N(UserCallableStatement.class); protected CallableStatement _cstmt; private boolean _isClosed; UserCallableStatement(UserConnection conn, CallableStatement cStmt) { super(conn, cStmt); _cstmt = cStmt; if (cStmt == null) throw new NullPointerException(); } /** * The array value */ public Array getArray(int i) throws SQLException { return _cstmt.getArray(i); } /** * The array value */ public Array getArray(String name) throws SQLException { return _cstmt.getArray(name); } /** * The big decimal value */ public BigDecimal getBigDecimal(int i) throws SQLException { return _cstmt.getBigDecimal(i); } /** * The bigDecimal value */ public BigDecimal getBigDecimal(String name) throws SQLException { return _cstmt.getBigDecimal(name); } /** * The big decimal value */ public BigDecimal getBigDecimal(int i, int scale) throws SQLException { return _cstmt.getBigDecimal(i, scale); } /** * The blob value */ public Blob getBlob(int i) throws SQLException { return _cstmt.getBlob(i); } /** * The blob value */ public Blob getBlob(String name) throws SQLException { return _cstmt.getBlob(name); } /** * The boolean value */ public boolean getBoolean(int i) throws SQLException { return _cstmt.getBoolean(i); } /** * The boolean value */ public boolean getBoolean(String name) throws SQLException { return _cstmt.getBoolean(name); } /** * The byte value */ public byte getByte(int i) throws SQLException { return _cstmt.getByte(i); } /** * The byte value */ public byte getByte(String name) throws SQLException { return _cstmt.getByte(name); } /** * The bytes value */ public byte []getBytes(int i) throws SQLException { return _cstmt.getBytes(i); } /** * The bytes value */ public byte []getBytes(String name) throws SQLException { return _cstmt.getBytes(name); } /** * The clob value */ public Clob getClob(int i) throws SQLException { return _cstmt.getClob(i); } /** * The clob value */ public Clob getClob(String name) throws SQLException { return _cstmt.getClob(name); } /** * The date value */ public Date getDate(int i) throws SQLException { return _cstmt.getDate(i); } /** * The date value */ public Date getDate(String name) throws SQLException { return _cstmt.getDate(name); } /** * The date value */ public Date getDate(int i, Calendar cal) throws SQLException { return _cstmt.getDate(i, cal); } /** * The date value */ public Date getDate(String name, Calendar cal) throws SQLException { return _cstmt.getDate(name); } /** * The double value */ public double getDouble(int i) throws SQLException { return _cstmt.getDouble(i); } /** * The double value */ public double getDouble(String name) throws SQLException { return _cstmt.getDouble(name); } /** * The float value */ public float getFloat(int i) throws SQLException { return _cstmt.getFloat(i); } /** * The float value */ public float getFloat(String name) throws SQLException { return _cstmt.getFloat(name); } /** * The int value */ public int getInt(int i) throws SQLException { return _cstmt.getInt(i); } /** * The int value */ public int getInt(String name) throws SQLException { return _cstmt.getInt(name); } /** * The long value */ public long getLong(int i) throws SQLException { return _cstmt.getLong(i); } /** * The long value */ public long getLong(String name) throws SQLException { return _cstmt.getLong(name); } /** * The object value */ public Object getObject(int i) throws SQLException { return _cstmt.getObject(i); } /** * The object value */ public Object getObject(String name) throws SQLException { return _cstmt.getObject(name); } /** * The object value */ public Object getObject(int i, Map<String,Class<?>> map) throws SQLException { return _cstmt.getObject(i); } /** * The object value */ public Object getObject(String name, Map<String,Class<?>> map) throws SQLException { return _cstmt.getObject(name); } /** * The ref value */ public Ref getRef(int i) throws SQLException { return _cstmt.getRef(i); } /** * The ref value */ public Ref getRef(String name) throws SQLException { return _cstmt.getRef(name); } /** * The short value */ public short getShort(int i) throws SQLException { return _cstmt.getShort(i); } /** * The short value */ public short getShort(String name) throws SQLException { return _cstmt.getShort(name); } /** * The string value */ public String getString(int i) throws SQLException { return _cstmt.getString(i); } /** * The string value */ public String getString(String name) throws SQLException { return _cstmt.getString(name); } /** * The time value */ public Time getTime(int i) throws SQLException { return _cstmt.getTime(i); } /** * The time value */ public Time getTime(String name) throws SQLException { return _cstmt.getTime(name); } /** * The time value */ public Time getTime(int i, Calendar cal) throws SQLException { return _cstmt.getTime(i, cal); } /** * The time value */ public Time getTime(String name, Calendar cal) throws SQLException { return _cstmt.getTime(name); } /** * The timestamp value */ public Timestamp getTimestamp(int i) throws SQLException { return _cstmt.getTimestamp(i); } /** * The timestamp value */ public Timestamp getTimestamp(String name) throws SQLException { return _cstmt.getTimestamp(name); } /** * The timestamp value */ public Timestamp getTimestamp(int i, Calendar cal) throws SQLException { return _cstmt.getTimestamp(i, cal); } /** * The timestamp value */ public Timestamp getTimestamp(String name, Calendar cal) throws SQLException { return _cstmt.getTimestamp(name); } /** * The URL value */ public URL getURL(int i) throws SQLException { return _cstmt.getURL(i); } /** * The URL value */ public URL getURL(String name) throws SQLException { return _cstmt.getURL(name); } /** * Registers the out parameter. */ public void registerOutParameter(int parameterIndex, int sqlType) throws SQLException { _cstmt.registerOutParameter(parameterIndex, sqlType); } /** * Registers the out parameter. */ public void registerOutParameter(int parameterIndex, int sqlType, int scale) throws SQLException { _cstmt.registerOutParameter(parameterIndex, sqlType, scale); } /** * Registers the out parameter. */ public void registerOutParameter(int parameterIndex, int sqlType, String typeName) throws SQLException { _cstmt.registerOutParameter(parameterIndex, sqlType, typeName); } /** * Registers the out parameter. */ public void registerOutParameter(String parameterName, int sqlType) throws SQLException { _cstmt.registerOutParameter(parameterName, sqlType); }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?