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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(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一区二区三区免费野_久草精品视频
欧美精品三级在线观看| 欧美日韩国产123区| 国产日韩精品一区| 国产伦精品一区二区三区视频青涩| 欧美日韩一区二区在线观看| 亚洲夂夂婷婷色拍ww47 | 亚洲国产日韩精品| 欧美电影精品一区二区 | 狠狠v欧美v日韩v亚洲ⅴ| 91福利区一区二区三区| 日本中文字幕不卡| 另类综合日韩欧美亚洲| 国产日韩欧美综合一区| 成人免费福利片| 国产精品久久久久久久久久免费看| 国产麻豆日韩欧美久久| 国产精品久久久久久久久搜平片| 波多野结衣欧美| 亚洲影视资源网| 精品国免费一区二区三区| 成人av在线看| 久久福利视频一区二区| 亚洲色大成网站www久久九九| 2020国产精品自拍| 亚洲精品一区二区三区福利| 欧美精品aⅴ在线视频| 欧美日免费三级在线| 91女人视频在线观看| 久久国产尿小便嘘嘘尿| 首页国产欧美久久| 亚洲成a天堂v人片| 亚洲第一av色| 肉肉av福利一精品导航| 久久99久久99小草精品免视看| 久久久91精品国产一区二区三区| 成人精品免费网站| 这里只有精品99re| 一区二区三区免费在线观看| 三级精品在线观看| 国产一区二区三区电影在线观看| 黄页视频在线91| 91丨porny丨蝌蚪视频| 日本道色综合久久| 4438成人网| 亚洲色图色小说| 日韩国产高清影视| 成人av在线电影| 欧美日韩午夜影院| 国产精品私人自拍| 久久精品国产一区二区三 | 亚洲一区在线免费观看| 日本午夜精品视频在线观看| 激情综合网av| 91丨porny丨在线| 在线成人小视频| 欧美高清在线精品一区| 日韩和欧美一区二区| 一本色道a无线码一区v| 制服丝袜在线91| 亚洲男帅同性gay1069| 国产成人精品免费看| 欧美日本一区二区三区四区| 国产女同性恋一区二区| 成人黄色在线视频| 国产精品视频yy9299一区| 国产91富婆露脸刺激对白| 欧美精品一区二区三区一线天视频| 日韩国产一区二| 成人激情免费电影网址| 国产欧美综合在线| 激情综合网激情| 日韩欧美国产麻豆| 美女精品一区二区| 日韩小视频在线观看专区| 琪琪久久久久日韩精品| 日韩欧美久久一区| 国产成都精品91一区二区三| 国产日韩欧美电影| caoporen国产精品视频| 亚洲精品国产a| 在线影视一区二区三区| 天天综合色天天| 日韩精品一区二区三区三区免费| 蜜桃视频在线观看一区二区| 久久久精品免费网站| 91亚洲精华国产精华精华液| 亚洲欧美一区二区三区孕妇| 91在线精品秘密一区二区| 亚洲制服丝袜在线| 日韩精品在线一区| 不卡免费追剧大全电视剧网站| 一区二区三区国产精品| 欧美一区二区三区人| 国产69精品久久777的优势| 亚洲一区日韩精品中文字幕| 精品sm在线观看| 日本福利一区二区| 国产精品一区三区| 视频精品一区二区| 亚洲欧洲综合另类在线| 中文字幕第一区综合| 欧美成人精品福利| 欧美巨大另类极品videosbest| www.成人网.com| 激情五月播播久久久精品| 成人欧美一区二区三区在线播放| 91精品一区二区三区久久久久久 | 精品成a人在线观看| 欧美视频在线一区二区三区 | 久久国产精品99精品国产| 一区二区日韩av| 国产精品伦理在线| 国产精品网站导航| 国产三级三级三级精品8ⅰ区| 精品久久五月天| 精品免费国产二区三区| 中文字幕av不卡| 欧美精品一区二区高清在线观看| 欧美美女激情18p| 欧美美女bb生活片| 精品国产免费一区二区三区四区| 日韩一级二级三级精品视频| 欧美三级资源在线| 欧美一级爆毛片| 91麻豆精品国产91久久久资源速度 | 91网址在线看| 99re这里只有精品首页| 91行情网站电视在线观看高清版| 欧美网站一区二区| 欧美v日韩v国产v| 国产精品久久久久久久久免费樱桃| 中文子幕无线码一区tr| 亚洲精品ww久久久久久p站| 欧美国产精品v| 91视频.com| 欧美三日本三级三级在线播放| 欧美一卡二卡三卡四卡| 中文字幕乱码亚洲精品一区| 亚洲欧美另类久久久精品2019| 日韩综合在线视频| 国产91精品久久久久久久网曝门 | 久久久99免费| 亚洲影视在线观看| 成人午夜伦理影院| 欧美电影免费观看高清完整版在 | 国产精品―色哟哟| 看国产成人h片视频| 欧洲一区二区av| 中文字幕av一区二区三区高| 麻豆成人91精品二区三区| 欧美性猛交一区二区三区精品| 国产精品国产三级国产专播品爱网 | 一区二区成人在线| 国产成人在线视频网址| 日韩视频一区二区三区| 性做久久久久久久免费看| 色综合天天综合色综合av | 亚洲欧美日韩小说| 91在线小视频| 亚洲美女视频一区| 在线观看日韩一区| 亚洲天堂久久久久久久| 日本高清不卡一区| 午夜天堂影视香蕉久久| 日韩一区二区不卡| 粉嫩欧美一区二区三区高清影视| 久久精品人人做人人爽人人| 在线观看国产精品网站| 日韩影视精彩在线| 久久久亚洲综合| 国产成人高清视频| 亚洲精品免费看| 91精品国产色综合久久ai换脸| 视频一区二区三区入口| 国产午夜精品在线观看| 欧美艳星brazzers| 久久99久久99小草精品免视看| 日本一区二区免费在线观看视频| 欧美最新大片在线看| 另类小说欧美激情| 亚洲视频免费在线观看| 正在播放亚洲一区| 欧美三级资源在线| 粉嫩久久99精品久久久久久夜| 一区二区成人在线观看| 中文在线资源观看网站视频免费不卡 | 精品视频一区 二区 三区| 国产在线不卡视频| 日韩中文字幕不卡| 一区二区三区影院| 国产精品国产a级| 久久午夜老司机| 精品久久久久久久人人人人传媒| 色综合天天视频在线观看| 国产精品亚洲综合一区在线观看| 亚洲一区二区三区小说| 一区二区三区小说| 亚洲国产精品一区二区www| 亚洲制服欧美中文字幕中文字幕| 中文字幕视频一区|