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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sqlmapsessionimpl.java

?? 本套系統采用了業界當前最為流行的beanAction組件
?? JAVA
字號:
/*
 *  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.jdbc.exception.NestedSQLException;
import com.ibatis.common.util.PaginatedList;
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.statement.MappedStatement;
import com.ibatis.sqlmap.engine.scope.SessionScope;
import com.ibatis.sqlmap.engine.transaction.Transaction;
import com.ibatis.sqlmap.engine.transaction.TransactionException;

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

/**
 * Implementation of SqlMapSession
 */
public class SqlMapSessionImpl implements SqlMapSession {

  protected SqlMapExecutorDelegate delegate;
  protected SessionScope session;
  protected boolean closed;

  /**
   * Constructor
   *
   * @param client - the client that will use the session
   */
  public SqlMapSessionImpl(ExtendedSqlMapClient client) {
    this.delegate = client.getDelegate();
    this.session = this.delegate.popSession();
    this.session.setSqlMapClient(client);
    this.session.setSqlMapExecutor(client);
    this.session.setSqlMapTxMgr(client);
    this.closed = false;
  }

  /**
   * Start the session
   */
  public void open() {
    session.setSqlMapTxMgr(this);
  }

  /**
   * Getter to tell if the session is still open
   *
   * @return - the status of the session
   */
  public boolean isClosed() {
    return closed;
  }

  public void close() {
    if (delegate != null && session != null) delegate.pushSession(session);
    if (session != null) session = null;
    if (delegate != null) delegate = null;
    if (!closed) closed = true;
  }

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

  public Object insert(String id) throws SQLException {
    return insert(id, null);
  }

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

  public int update(String id) throws SQLException {
    return update(id, null);
  }

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

  public int delete(String id) throws SQLException {
    return delete(id, null);
  }

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

  public Object queryForObject(String id) throws SQLException {
    return queryForObject(id, null);
  }

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

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

  public List queryForList(String id) throws SQLException {
    return queryForList(id, null);
  }

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

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

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

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

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

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

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

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

  public void startTransaction() throws SQLException {
    delegate.startTransaction(session);
  }

  public void startTransaction(int transactionIsolation) throws SQLException {
    delegate.startTransaction(session, transactionIsolation);
  }

  public void commitTransaction() throws SQLException {
    delegate.commitTransaction(session);
  }

  public void endTransaction() throws SQLException {
    delegate.endTransaction(session);
  }

  public void startBatch() throws SQLException {
    delegate.startBatch(session);
  }

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

  public List executeBatchDetailed() throws SQLException, BatchException {
    return delegate.executeBatchDetailed(session);
  }
  
  public void setUserConnection(Connection connection) throws SQLException {
    delegate.setUserProvidedTransaction(session, connection);
  }

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

  public Connection getCurrentConnection() throws SQLException {
    try {
      Connection conn = null;
      Transaction trans = delegate.getTransaction(session);
      if (trans != null) {
        conn = trans.getConnection();
      }
      return conn;
    } catch (TransactionException e) {
      throw new NestedSQLException("Error getting Connection from Transaction.  Cause: " + e, e);
    }
  }

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

  /**
   * Gets a mapped statement by ID
   *
   * @param id - the ID
   * @return - the mapped statement
   */
  public MappedStatement getMappedStatement(String id) {
    return delegate.getMappedStatement(id);
  }

  /**
   * Get the status of lazy loading
   *
   * @return - the status
   */
  public boolean isLazyLoadingEnabled() {
    return delegate.isLazyLoadingEnabled();
  }

  /**
   * Get the status of CGLib enhancements
   *
   * @return - the status
   */
  public boolean isEnhancementEnabled() {
    return delegate.isEnhancementEnabled();
  }

  /**
   * Get the SQL executor
   *
   * @return -  the executor
   */
  public SqlExecutor getSqlExecutor() {
    return delegate.getSqlExecutor();
  }

  /**
   * Get the delegate
   *
   * @return - the delegate
   */
  public SqlMapExecutorDelegate getDelegate() {
    return delegate;
  }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品在线麻豆| 成人精品视频一区二区三区尤物| 久久精品夜色噜噜亚洲aⅴ| 7777精品伊人久久久大香线蕉 | 欧美韩日一区二区三区四区| 欧美一区二区三区日韩| 欧美精品在线观看一区二区| 欧美午夜宅男影院| 欧美视频一区在线观看| 91成人免费网站| 在线国产电影不卡| 欧美日韩中文一区| 欧美一级在线免费| 久久免费看少妇高潮| 26uuu国产一区二区三区| 26uuu久久天堂性欧美| 久久久久久久av麻豆果冻| 国产欧美精品一区二区色综合朱莉| 欧美国产视频在线| 亚洲图片激情小说| 婷婷亚洲久悠悠色悠在线播放| 视频一区国产视频| 国产精品系列在线观看| aa级大片欧美| 69精品人人人人| 久久婷婷国产综合精品青草| 欧美激情一区三区| 亚洲超碰97人人做人人爱| 视频在线在亚洲| 成人永久免费视频| 色素色在线综合| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲亚洲人成综合网络| 亚洲一级二级三级| 韩国av一区二区| 欧洲人成人精品| 久久久.com| 午夜精品免费在线观看| 国产精品一区二区久久精品爱涩 | 亚洲色图20p| 蜜臀av一区二区在线免费观看| 国产精品888| 欧美精品第1页| 国产精品久久久久久久久免费樱桃| 亚洲网友自拍偷拍| 成人高清视频在线| 91精品久久久久久久久99蜜臂| 国产精品久久久久影院老司| 日韩精品一二三| 99国产精品久久久久| 欧美一区二区三区系列电影| 亚洲人成伊人成综合网小说| 国产揄拍国内精品对白| 欧美日韩黄色一区二区| 国产精品久久一卡二卡| 久久66热偷产精品| 欧美女孩性生活视频| 欧美国产精品v| 国产一区二区三区免费看| 欧美伦理视频网站| 一区二区三区免费看视频| 成人免费毛片高清视频| 精品99一区二区| 精品一区二区三区在线视频| 欧美亚洲一区二区在线观看| 国产精品久久久久久久久搜平片| 国产精品一级二级三级| 精品久久久久久最新网址| 亚洲一区二区三区四区中文字幕 | 精品欧美一区二区三区精品久久| 国产精品美女久久久久av爽李琼 | www国产精品av| 亚洲精品日日夜夜| 国产宾馆实践打屁股91| 69堂成人精品免费视频| 亚洲精品自拍动漫在线| 国产盗摄一区二区| 欧美体内she精视频| 一区二区三区在线视频免费观看| 国产成人在线免费观看| 91精品国产高清一区二区三区 | 久久人人超碰精品| 免费成人av在线播放| 91精彩视频在线观看| 亚洲欧美另类综合偷拍| 成人av电影在线网| 欧美激情综合五月色丁香小说| 日本中文字幕不卡| 91精品免费观看| 免费在线看成人av| 91 com成人网| 久草中文综合在线| 日韩视频一区二区在线观看| 性做久久久久久免费观看| 在线视频综合导航| 亚洲第一福利一区| 欧美日韩国产经典色站一区二区三区| 亚洲精品中文字幕在线观看| 色综合色综合色综合色综合色综合| 国产精品三级电影| 国产在线一区二区| 亚洲欧洲日韩在线| 色狠狠色狠狠综合| 日韩精品免费视频人成| 欧美一区二区三区视频免费播放 | 欧美精品在线观看播放| 亚洲国产日产av| 欧美日产在线观看| 国产在线国偷精品产拍免费yy | 国产日韩欧美麻豆| 丰满少妇在线播放bd日韩电影| 国产色综合久久| 97se狠狠狠综合亚洲狠狠| 亚洲欧美日韩综合aⅴ视频| 欧美最新大片在线看| 婷婷久久综合九色综合绿巨人| 一本到不卡精品视频在线观看| 亚洲黄色尤物视频| 日韩欧美一区二区免费| 国产综合久久久久久久久久久久 | 日韩欧美一区二区久久婷婷| 韩国视频一区二区| 一区二区三区精品视频| 欧美日韩和欧美的一区二区| 久久99国产精品久久99| 中文字幕一区二区三区在线播放| 丁香啪啪综合成人亚洲小说 | 日韩女同互慰一区二区| 狠狠狠色丁香婷婷综合激情| 中文字幕一区二区三区视频| 91久久奴性调教| 国产自产高清不卡| 曰韩精品一区二区| 欧美草草影院在线视频| 99精品久久只有精品| 美女脱光内衣内裤视频久久影院| 亚洲国产精品传媒在线观看| 欧美日韩国产另类不卡| 国产精品亚洲午夜一区二区三区| 亚洲一区二区视频在线观看| 精品国产制服丝袜高跟| 99精品黄色片免费大全| 麻豆91小视频| 亚洲午夜免费电影| 欧美国产97人人爽人人喊| 91精品福利在线一区二区三区| 欧美视频中文一区二区三区在线观看| 捆绑调教美女网站视频一区| 日韩三级在线免费观看| 欧美性受xxxx| 国产麻豆成人传媒免费观看| 蜜芽一区二区三区| 午夜精品影院在线观看| 欧美国产精品v| 2024国产精品| 6080日韩午夜伦伦午夜伦| 91免费视频网址| 国产一区二区h| 国产1区2区3区精品美女| 免费成人在线观看| 日韩高清不卡一区| 香蕉av福利精品导航| 亚洲人吸女人奶水| 中文字幕亚洲一区二区av在线| 日韩三级免费观看| 久久精品日韩一区二区三区| 欧美精品在线一区二区| 欧美人妇做爰xxxⅹ性高电影| 欧美亚洲动漫另类| 91国在线观看| 欧美日韩三级视频| 久久嫩草精品久久久精品| 欧美一区二区久久久| 91.com视频| 精品久久久久久最新网址| 欧美成人精品福利| 久久久www成人免费毛片麻豆| 日韩理论片中文av| 亚洲国产裸拍裸体视频在线观看乱了 | 国产.精品.日韩.另类.中文.在线.播放| 日韩精品国产欧美| 久久精品国产亚洲高清剧情介绍 | 日韩一区二区在线看片| 日韩欧美国产1| 精品久久久久久久久久久院品网 | 色综合久久天天综合网| 91国偷自产一区二区开放时间 | 国产欧美日韩综合精品一区二区| 日韩一区二区三区电影在线观看| 国产亚洲1区2区3区| 久久久91精品国产一区二区精品 | 国产福利91精品一区二区三区| 国产成人精品一区二| 99精品黄色片免费大全| 成人av先锋影音| 欧美性大战xxxxx久久久| 91精品中文字幕一区二区三区 | 精品夜夜嗨av一区二区三区| 国内外精品视频| 色综合中文综合网|