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

com.frameworkset.orm.transaction.InnerPreparedStatement Maven / Gradle / Ivy

Go to download

bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com

The newest version!
/*
 *  Copyright 2008 biaoping.yin
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.  
 */
package com.frameworkset.orm.transaction;

import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.PreparedStatement;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;

/**
 * 
 * 
 * 

Title: InnerPreparedStatement.java

* *

Description:

* *

* bboss workgroup *

*

* Copyright (c) 2007 *

* * @Date 2009-6-1 下午08:58:51 * @author biaoping.yin * @version 1.0 */ class InnerPreparedStatement extends InnerStatement implements PreparedStatement { PreparedStatement pstmt; public InnerPreparedStatement(PreparedStatement stmt) { super(stmt); this.pstmt = stmt; // TODO Auto-generated constructor stub } public void addBatch() throws SQLException { this.pstmt.addBatch(); } public void clearParameters() throws SQLException { this.pstmt.clearParameters(); } public boolean execute() throws SQLException { // TODO Auto-generated method stub return this.pstmt.execute(); } public ResultSet executeQuery() throws SQLException { ResultSet rs = this.pstmt.executeQuery(); this.results.add(rs); return rs; // return this.pstmt.executeQuery(); } public int executeUpdate() throws SQLException { // TODO Auto-generated method stub return this.pstmt.executeUpdate(); } public ResultSetMetaData getMetaData() throws SQLException { // TODO Auto-generated method stub return this.pstmt.getMetaData(); } public ParameterMetaData getParameterMetaData() throws SQLException { // TODO Auto-generated method stub return this.pstmt.getParameterMetaData(); } public void setArray(int i, Array x) throws SQLException { this.pstmt.setArray(i, x); } public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException { this.pstmt.setAsciiStream(parameterIndex, x, length); } public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { this.pstmt.setBigDecimal(parameterIndex, x); } public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException { this.pstmt.setBinaryStream(parameterIndex, x, length); } public void setBlob(int i, Blob x) throws SQLException { this.pstmt.setBlob(i, x); } public void setBoolean(int parameterIndex, boolean x) throws SQLException { this.pstmt.setBoolean(parameterIndex, x); } public void setByte(int parameterIndex, byte x) throws SQLException { this.pstmt.setByte(parameterIndex, x); } public void setBytes(int parameterIndex, byte[] x) throws SQLException { this.pstmt.setBytes(parameterIndex, x); } public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException { this.pstmt.setCharacterStream(parameterIndex, reader, length); } public void setClob(int i, Clob x) throws SQLException { this.pstmt.setClob(i, x); } public void setDate(int parameterIndex, Date x) throws SQLException { this.pstmt.setDate(parameterIndex, x); } public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException { this.pstmt.setDate(parameterIndex, x, cal); } public void setDouble(int parameterIndex, double x) throws SQLException { this.pstmt.setDouble(parameterIndex, x); } public void setFloat(int parameterIndex, float x) throws SQLException { this.pstmt.setFloat(parameterIndex, x); } public void setInt(int parameterIndex, int x) throws SQLException { this.pstmt.setInt(parameterIndex, x); } public void setLong(int parameterIndex, long x) throws SQLException { this.pstmt.setLong(parameterIndex, x); } public void setNull(int parameterIndex, int sqlType) throws SQLException { this.pstmt.setNull(parameterIndex, sqlType); } public void setNull(int paramIndex, int sqlType, String typeName) throws SQLException { this.pstmt.setNull(paramIndex, sqlType, typeName); } public void setObject(int parameterIndex, Object x) throws SQLException { this.pstmt.setObject(parameterIndex, x); } public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException { this.pstmt.setObject(parameterIndex, x, targetSqlType); } public void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException { this.pstmt.setObject(parameterIndex, x, targetSqlType, scale); } public void setRef(int i, Ref x) throws SQLException { this.pstmt.setRef(i, x); } public void setShort(int parameterIndex, short x) throws SQLException { this.pstmt.setShort(parameterIndex, x); } public void setString(int parameterIndex, String x) throws SQLException { this.pstmt.setString(parameterIndex, x); } public void setTime(int parameterIndex, Time x) throws SQLException { this.pstmt.setTime(parameterIndex, x); } public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException { this.pstmt.setTime(parameterIndex, x, cal); } public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { this.pstmt.setTimestamp(parameterIndex, x); } public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException { this.pstmt.setTimestamp(parameterIndex, x, cal); } public void setURL(int parameterIndex, URL x) throws SQLException { this.pstmt.setURL(parameterIndex, x); } public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException { this.pstmt.setUnicodeStream(parameterIndex, x, length); } public boolean isClosed() throws SQLException { // TODO Auto-generated method stub return pstmt.isClosed(); } public void setPoolable(boolean poolable) throws SQLException { // TODO Auto-generated method stub pstmt.setPoolable(poolable); } public boolean isPoolable() throws SQLException { // TODO Auto-generated method stub return pstmt.isPoolable(); } public T unwrap(Class iface) throws SQLException { // TODO Auto-generated method stub return pstmt.unwrap(iface); } public boolean isWrapperFor(Class iface) throws SQLException { // TODO Auto-generated method stub return pstmt.isWrapperFor(iface); } public void setRowId(int parameterIndex, RowId x) throws SQLException { // TODO Auto-generated method stub pstmt.setRowId(parameterIndex, x); } public void setNString(int parameterIndex, String value) throws SQLException { // TODO Auto-generated method stub pstmt.setNString(parameterIndex, value); } public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException { // TODO Auto-generated method stub pstmt.setNCharacterStream(parameterIndex, value, length); } public void setNClob(int parameterIndex, NClob value) throws SQLException { // TODO Auto-generated method stub pstmt.setNClob(parameterIndex, value); } public void setClob(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub pstmt.setClob(parameterIndex, reader, length); } public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException { // TODO Auto-generated method stub pstmt.setBlob(parameterIndex, inputStream, length); } public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub pstmt.setNClob(parameterIndex, reader,length); } public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException { // TODO Auto-generated method stub pstmt.setSQLXML(parameterIndex, xmlObject); } public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException { // TODO Auto-generated method stub pstmt.setAsciiStream(parameterIndex, x, length); } public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException { // TODO Auto-generated method stub pstmt.setBinaryStream(parameterIndex, x, length); } public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException { // TODO Auto-generated method stub pstmt.setCharacterStream(parameterIndex, reader, length); } public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException { // TODO Auto-generated method stub pstmt.setAsciiStream(parameterIndex, x); } public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException { // TODO Auto-generated method stub pstmt.setBinaryStream(parameterIndex, x); } public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub pstmt.setCharacterStream(parameterIndex, reader); } public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException { // TODO Auto-generated method stub pstmt.setNCharacterStream(parameterIndex, value); } public void setClob(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub pstmt.setClob(parameterIndex, reader); } public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException { // TODO Auto-generated method stub pstmt.setBlob(parameterIndex, inputStream); } public void setNClob(int parameterIndex, Reader reader) throws SQLException { // TODO Auto-generated method stub this.pstmt.setNClob(parameterIndex, reader); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy