Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.common.poolman;
import com.frameworkset.common.poolman.handle.NullRowHandler;
import com.frameworkset.common.poolman.handle.RowHandler;
import com.frameworkset.common.poolman.util.DBOptions;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
/**
* 执行预编sql语句
* set i parameterIndex the first parameter is 1, the second is 2, ...
* @author biaoping.yin created on 2005-6-8 version 1.0
*/
public class PreparedDBUtil extends DBOptionsPreparedDBUtil {
// /**
// * 批处理预编译操作参数集,如果在一次批处理预编操作中出现多条
// * Map
// */
// private Map batchparamsIDXBySQL;
// protected String[] preparedfields;
/*******************************************************************
* 通用预编译处理开始
*
*/
public Object executePrepared() throws SQLException {
return executePrepared((DBOptions)null);
}
/**
* 如果getCUDResult参数为true,则返回GetCUDResult类型对象,GetCUDResult的属性含义如下:
* result:操作结果,如果数据源autoprimarykey为true,并且在tableinfo表中保存了表的主键信息result为自增的主键,反之result为更新的记录数
* updateCount:更新的记录数
* keys:自动产生的主键,如果只有一条记录则为普通对象,如果有多条记录则为List