亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? sqlmapclientimpl.java

?? 本套系統(tǒng)采用了業(yè)界當(dāng)前最為流行的beanAction組件
?? JAVA
字號(hào):
/*
 *  Copyright 2004 Clinton Begin
 *
 *  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.ibatis.sqlmap.engine.impl;

import com.ibatis.common.util.PaginatedList;
import com.ibatis.common.logging.Log;
import com.ibatis.common.logging.LogFactory;
import com.ibatis.sqlmap.client.SqlMapException;
import com.ibatis.sqlmap.client.SqlMapSession;
import com.ibatis.sqlmap.client.event.RowHandler;
import com.ibatis.sqlmap.engine.execution.BatchException;
import com.ibatis.sqlmap.engine.execution.SqlExecutor;
import com.ibatis.sqlmap.engine.mapping.result.ResultObjectFactory;
import com.ibatis.sqlmap.engine.mapping.statement.MappedStatement;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * Implementation of ExtendedSqlMapClient
 */
public class SqlMapClientImpl implements ExtendedSqlMapClient {

  private static final Log log = LogFactory.getLog(SqlMapClientImpl.class);

  /**
   * Delegate for SQL execution
   */
  public SqlMapExecutorDelegate delegate;

  protected ThreadLocal localSqlMapSession = new ThreadLocal();

  /**
   * Constructor to supply a delegate
   *
   * @param delegate - the delegate
   */
  public SqlMapClientImpl(SqlMapExecutorDelegate delegate) {
    this.delegate = delegate;
  }

  public Object insert(String id, Object param) throws SQLException {
    return getLocalSqlMapSession().insert(id, param);
  }

  public Object insert(String id) throws SQLException {
    return getLocalSqlMapSession().insert(id);
  }

  public int update(String id, Object param) throws SQLException {
    return getLocalSqlMapSession().update(id, param);
  }

  public int update(String id) throws SQLException {
    return getLocalSqlMapSession().update(id);
  }

  public int delete(String id, Object param) throws SQLException {
    return getLocalSqlMapSession().delete(id, param);
  }

  public int delete(String id) throws SQLException {
    return getLocalSqlMapSession().delete(id);
  }

  public Object queryForObject(String id, Object paramObject) throws SQLException {
    return getLocalSqlMapSession().queryForObject(id, paramObject);
  }

  public Object queryForObject(String id) throws SQLException {
    return getLocalSqlMapSession().queryForObject(id);
  }

  public Object queryForObject(String id, Object paramObject, Object resultObject) throws SQLException {
    return getLocalSqlMapSession().queryForObject(id, paramObject, resultObject);
  }

  public List queryForList(String id, Object paramObject) throws SQLException {
    return getLocalSqlMapSession().queryForList(id, paramObject);
  }

  public List queryForList(String id) throws SQLException {
    return getLocalSqlMapSession().queryForList(id);
  }

  public List queryForList(String id, Object paramObject, int skip, int max) throws SQLException {
    return getLocalSqlMapSession().queryForList(id, paramObject, skip, max);
  }

  public List queryForList(String id, int skip, int max) throws SQLException {
    return getLocalSqlMapSession().queryForList(id, skip, max);
  }

  /**
   * @deprecated All paginated list features have been deprecated
   */
  public PaginatedList queryForPaginatedList(String id, Object paramObject, int pageSize) throws SQLException {
    return getLocalSqlMapSession().queryForPaginatedList(id, paramObject, pageSize);
  }

  /**
   * @deprecated All paginated list features have been deprecated
   */
  public PaginatedList queryForPaginatedList(String id, int pageSize) throws SQLException {
    return getLocalSqlMapSession().queryForPaginatedList(id, pageSize);
  }

  public Map queryForMap(String id, Object paramObject, String keyProp) throws SQLException {
    return getLocalSqlMapSession().queryForMap(id, paramObject, keyProp);
  }

  public Map queryForMap(String id, Object paramObject, String keyProp, String valueProp) throws SQLException {
    return getLocalSqlMapSession().queryForMap(id, paramObject, keyProp, valueProp);
  }

  public void queryWithRowHandler(String id, Object paramObject, RowHandler rowHandler) throws SQLException {
    getLocalSqlMapSession().queryWithRowHandler(id, paramObject, rowHandler);
  }

  public void queryWithRowHandler(String id, RowHandler rowHandler) throws SQLException {
    getLocalSqlMapSession().queryWithRowHandler(id, rowHandler);
  }

  public void startTransaction() throws SQLException {
    getLocalSqlMapSession().startTransaction();
  }

  public void startTransaction(int transactionIsolation) throws SQLException {
    getLocalSqlMapSession().startTransaction(transactionIsolation);
  }

  public void commitTransaction() throws SQLException {
    getLocalSqlMapSession().commitTransaction();
  }

  public void endTransaction() throws SQLException {
    try {
      getLocalSqlMapSession().endTransaction();
    } finally {
      getLocalSqlMapSession().close();
    }
  }

  public void startBatch() throws SQLException {
    getLocalSqlMapSession().startBatch();
  }

  public int executeBatch() throws SQLException {
    return getLocalSqlMapSession().executeBatch();
  }

  public List executeBatchDetailed() throws SQLException, BatchException {
    return getLocalSqlMapSession().executeBatchDetailed();
  }
  
  public void setUserConnection(Connection connection) throws SQLException {
  try {
    getLocalSqlMapSession().setUserConnection(connection);
  } finally {
    if (connection == null) {
      getLocalSqlMapSession().close();
    }
  }
}

  /**
   * TODO Deprecated
   *
   * @return Current connection
   * @throws SQLException
   * @deprecated
   */
  public Connection getUserConnection() throws SQLException {
    return getCurrentConnection();
  }

  public Connection getCurrentConnection() throws SQLException {
    return getLocalSqlMapSession().getCurrentConnection();
  }

  public DataSource getDataSource() {
    return delegate.getDataSource();
  }

  public MappedStatement getMappedStatement(String id) {
    return delegate.getMappedStatement(id);
  }

  public boolean isLazyLoadingEnabled() {
    return delegate.isLazyLoadingEnabled();
  }

  public boolean isEnhancementEnabled() {
    return delegate.isEnhancementEnabled();
  }

  public SqlExecutor getSqlExecutor() {
    return delegate.getSqlExecutor();
  }

  public SqlMapExecutorDelegate getDelegate() {
    return delegate;
  }

  public SqlMapSession openSession() {
    SqlMapSessionImpl sqlMapSession = new SqlMapSessionImpl(this);
    sqlMapSession.open();
    return sqlMapSession;
  }

  public SqlMapSession openSession(Connection conn) {
    try {
      SqlMapSessionImpl sqlMapSession = new SqlMapSessionImpl(this);
      sqlMapSession.open();
      sqlMapSession.setUserConnection(conn);
      return sqlMapSession;
    } catch (SQLException e) {
      throw new SqlMapException("Error setting user provided connection.  Cause: " + e, e);
    }
  }

  /**
   * TODO : DEPRECATED
   *
   * @deprecated Use openSession()
   */
  public SqlMapSession getSession() {
    log.warn("Use of a deprecated API detected.  SqlMapClient.getSession() is deprecated.  Use SqlMapClient.openSession() instead.");
    return openSession();
  }

  public void flushDataCache() {
    delegate.flushDataCache();
  }

  public void flushDataCache(String cacheId) {
    delegate.flushDataCache(cacheId);
  }

  protected SqlMapSessionImpl getLocalSqlMapSession() {
    SqlMapSessionImpl sqlMapSession = (SqlMapSessionImpl) localSqlMapSession.get();
    if (sqlMapSession == null || sqlMapSession.isClosed()) {
      sqlMapSession = new SqlMapSessionImpl(this);
      localSqlMapSession.set(sqlMapSession);
    }
    return sqlMapSession;
  }

  public ResultObjectFactory getResultObjectFactory() {
    return delegate.getResultObjectFactory();
  }
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品无人区| 欧美色爱综合网| 亚洲女子a中天字幕| 久久夜色精品国产噜噜av| 国产亚洲va综合人人澡精品 | 日韩av不卡一区二区| 国产一区二区三区免费播放| 97精品久久久久中文字幕| 91精品国产欧美一区二区18 | 日韩欧美国产综合一区| 18欧美乱大交hd1984| 国模一区二区三区白浆| 欧美日韩精品一区二区三区四区| 中文字幕一区二区日韩精品绯色| 男男成人高潮片免费网站| 色综合久久久久网| 国产精品久久久久久久久免费桃花| 日韩av一区二| 精品视频一区二区三区免费| 中文字幕日本乱码精品影院| 国产美女一区二区三区| 欧美成va人片在线观看| 蜜臀久久99精品久久久久宅男| 日本国产一区二区| 亚洲欧洲日本在线| 成人h动漫精品一区二| 久久久精品tv| 国产一区视频在线看| 欧美tickling网站挠脚心| 日韩成人一级大片| 91.成人天堂一区| 婷婷开心久久网| 国产成人av资源| 欧美日韩小视频| 亚洲一二三级电影| 欧美日韩专区在线| 肉丝袜脚交视频一区二区| 在线亚洲高清视频| 亚洲综合在线观看视频| 欧美在线高清视频| 亚洲超碰精品一区二区| 欧美日韩在线三区| 亚洲自拍偷拍欧美| 在线综合视频播放| 精品亚洲成a人在线观看| 日韩写真欧美这视频| 精品一区二区三区在线播放视频| 欧美一级片在线看| 国产在线麻豆精品观看| 国产性色一区二区| 99久久久无码国产精品| 亚洲丶国产丶欧美一区二区三区| 欧美日韩午夜在线| 老司机午夜精品99久久| 久久综合久久综合亚洲| 不卡一卡二卡三乱码免费网站| 国产精品久久久久影院亚瑟| 色狠狠色狠狠综合| 毛片av一区二区| 欧美—级在线免费片| 91一区一区三区| 日韩国产精品91| 中日韩av电影| 欧美日韩一区在线| 国产一区二区视频在线播放| 国产精品国产精品国产专区不蜜| 欧美这里有精品| 麻豆免费精品视频| 国产精品超碰97尤物18| 欧美精品久久99| 大胆亚洲人体视频| 日韩中文字幕av电影| 精品国产伦一区二区三区观看体验| 捆绑紧缚一区二区三区视频| 亚洲欧美在线aaa| 日韩精品专区在线影院重磅| 99免费精品视频| 免费高清在线视频一区·| 国产欧美综合色| 51午夜精品国产| 97久久超碰国产精品| 秋霞国产午夜精品免费视频| 中文字幕视频一区二区三区久| 制服丝袜亚洲色图| 91久久香蕉国产日韩欧美9色| 久久99精品久久久久久久久久久久 | 激情成人午夜视频| 亚洲国产精品一区二区尤物区| 亚洲精品一区二区在线观看| 91精品福利视频| 粉嫩久久99精品久久久久久夜| 日韩国产欧美一区二区三区| 亚洲精品中文字幕乱码三区| 国产亚洲欧美激情| 日韩视频在线观看一区二区| 欧美性猛交xxxxxx富婆| 99久久久免费精品国产一区二区| 国产精品18久久久久久vr| 三级不卡在线观看| 亚洲www啪成人一区二区麻豆| 亚洲欧美日韩在线不卡| 国产精品乱码一区二区三区软件| xnxx国产精品| xfplay精品久久| 欧美变态tickling挠脚心| 欧美一区二区三区视频免费播放| 欧美视频三区在线播放| 91成人免费网站| 91久久免费观看| 日本韩国欧美一区| 欧美在线观看一二区| 久久久噜噜噜久噜久久综合| 亚洲国产综合人成综合网站| 亚洲日本欧美天堂| 亚洲欧美偷拍卡通变态| 国产精品成人一区二区三区夜夜夜| 国产欧美一区二区三区鸳鸯浴 | 欧美性猛片xxxx免费看久爱| 在线观看www91| 欧美日韩在线精品一区二区三区激情| 欧美视频在线一区二区三区| 欧美日韩一区视频| 日韩三级电影网址| 欧美一级电影网站| 日韩欧美综合一区| 精品入口麻豆88视频| 91激情在线视频| 91看片淫黄大片一级在线观看| 91在线国产福利| 韩国欧美国产1区| 高清国产一区二区| 91论坛在线播放| 一本色道久久综合亚洲aⅴ蜜桃 | 国产乱码字幕精品高清av| 国产精品1区2区3区在线观看| 国产专区欧美精品| 成人av资源站| 欧美视频自拍偷拍| 欧美一区二区三区视频免费播放 | 成人午夜激情影院| 国产91精品入口| 日本精品免费观看高清观看| 欧美午夜不卡视频| 欧美一区二区三区在线观看视频| 日韩欧美国产系列| 久久女同精品一区二区| 亚洲男人的天堂在线aⅴ视频| 一区二区免费看| 精彩视频一区二区| 蜜桃久久久久久| 色欧美片视频在线观看 | 国产精品热久久久久夜色精品三区| 中文字幕综合网| 天堂av在线一区| 国产在线精品一区二区不卡了 | 国产一区二区三区四区五区入口 | 色综合久久天天| 欧美夫妻性生活| 久久日韩精品一区二区五区| 国产精品视频在线看| 亚洲另类中文字| 亚洲精品国产精品乱码不99| 亚洲国产成人91porn| 国产成人免费av在线| 欧美精品久久一区二区三区| 久久久精品国产免费观看同学| 一区二区三区波多野结衣在线观看| 偷窥国产亚洲免费视频| eeuss鲁片一区二区三区| 91精品国产综合久久久久久久| 久久精品人人做人人爽人人| 视频一区视频二区中文| 国产精品亚洲专一区二区三区 | 国产一区二区三区在线观看免费 | 国产精品二三区| 日韩福利电影在线| 欧美在线色视频| 久久久精品国产免大香伊| 日韩电影在线一区二区三区| 肉丝袜脚交视频一区二区| 在线一区二区三区四区| 久久精品国产精品亚洲精品| 亚洲人成网站影音先锋播放| 国产精品一二三四| 日韩欧美中文字幕一区| 天天免费综合色| 欧美乱妇23p| 亚洲六月丁香色婷婷综合久久 | 色激情天天射综合网| 国产偷国产偷亚洲高清人白洁| 蜜桃视频在线观看一区| 欧美日韩精品欧美日韩精品| 国产精品久久99| 99久久久无码国产精品| 久久久久久久电影| 麻豆精品一区二区| 成人性生交大片| 久久精品人人做人人爽97| 国产成人在线免费| 精品美女一区二区|