亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美日本一区二区| 国产成人激情av| 亚洲女人的天堂| 久久久久久久久岛国免费| 日韩你懂的在线播放| 欧美一区三区二区| 日韩视频一区二区在线观看| 在线播放视频一区| 日韩女优av电影在线观看| 欧美电影免费观看完整版| 精品av久久707| 中文字幕av资源一区| 国产精品久久久久毛片软件| 成人免费小视频| 亚洲图片一区二区| 日本va欧美va精品发布| 久久99最新地址| 成人性视频免费网站| 不卡视频在线观看| 欧美亚洲尤物久久| 欧美电视剧免费全集观看| 久久精品视频在线看| 国产精品成人一区二区艾草 | 欧美国产日产图区| 中文字幕一区不卡| 日本亚洲电影天堂| 成人免费视频一区| 欧美主播一区二区三区| 精品久久久久香蕉网| 亚洲欧洲日产国码二区| 亚洲成va人在线观看| 国产精品一线二线三线精华| 91视频免费播放| 日韩免费看网站| 亚洲免费在线观看视频| 久久不见久久见免费视频7| 成人动漫中文字幕| 欧美一级一区二区| 亚洲免费观看在线视频| 蜜乳av一区二区| 99久久精品免费看| 日韩免费在线观看| 亚洲精品国产成人久久av盗摄 | 国产又黄又大久久| 99re成人精品视频| 日韩欧美一区二区三区在线| 综合激情网...| 国产精品影视在线| 日韩一区二区三区av| 国产精品护士白丝一区av| 日韩电影在线观看电影| 色丁香久综合在线久综合在线观看| 日韩欧美另类在线| 亚洲va欧美va人人爽| 成人黄色网址在线观看| 日韩一级视频免费观看在线| 伊人夜夜躁av伊人久久| 成人激情午夜影院| 久久你懂得1024| 精品在线观看视频| 日韩三级精品电影久久久| 亚洲综合偷拍欧美一区色| a级精品国产片在线观看| 久久久精品中文字幕麻豆发布| 亚洲第一电影网| 欧洲人成人精品| 亚洲精品成人在线| 色噜噜夜夜夜综合网| 亚洲欧美在线观看| av欧美精品.com| 中文字幕日韩一区二区| 国产黑丝在线一区二区三区| 久久久精品中文字幕麻豆发布| 老司机一区二区| 欧美一级欧美三级| 老司机精品视频线观看86| 日韩久久久久久| 国产精品自产自拍| 国产欧美日韩视频一区二区| 国产成人av福利| 国产丝袜欧美中文另类| eeuss鲁片一区二区三区在线观看| 国产日韩欧美精品电影三级在线 | av亚洲精华国产精华精| 中文一区二区完整视频在线观看| 国产精品123区| 中文字幕中文字幕在线一区 | 蜜臀av在线播放一区二区三区| 欧美日本韩国一区| 热久久久久久久| 久久蜜桃av一区精品变态类天堂| 国产一区二区三区久久久| 久久精品人人做| 91蜜桃传媒精品久久久一区二区 | 欧美一区二区福利视频| 奇米影视在线99精品| 精品电影一区二区三区| 国产91露脸合集magnet| 一区二区三区日韩欧美精品| 欧美日韩一区高清| 国产成人鲁色资源国产91色综| 中文字幕一区二区三区蜜月| 91一区在线观看| 另类小说视频一区二区| 欧美激情在线一区二区三区| 91日韩在线专区| 美女视频免费一区| 中文字幕一区二| 在线综合亚洲欧美在线视频| 国产麻豆视频精品| 亚洲在线视频网站| 精品电影一区二区三区| 91精品办公室少妇高潮对白| 久久精品国产第一区二区三区| 久久精品亚洲麻豆av一区二区| 99天天综合性| 日韩av电影免费观看高清完整版 | 欧美艳星brazzers| 国内精品国产成人| 亚洲宅男天堂在线观看无病毒| 欧美v国产在线一区二区三区| caoporen国产精品视频| 久久综合综合久久综合| 国产目拍亚洲精品99久久精品| 欧美日本不卡视频| 色哟哟在线观看一区二区三区| 久久99精品一区二区三区三区| 亚洲特级片在线| 欧美xxxx老人做受| 欧美一区二区国产| 欧美日韩精品一区视频| 国产成人午夜精品影院观看视频 | 精品国产乱码久久久久久久| 色婷婷激情一区二区三区| 国产成a人亚洲| 国内不卡的二区三区中文字幕| 婷婷综合久久一区二区三区| 中文字幕av一区 二区| xfplay精品久久| 日韩一级黄色大片| 欧美日韩国产123区| 91国产免费看| 一本到不卡免费一区二区| 91在线视频观看| 99精品偷自拍| 99精品桃花视频在线观看| 成人中文字幕电影| 成人av网址在线观看| 国产成人av影院| 国产精品一卡二卡| 激情久久五月天| 国产精品99久久久久久久vr| 精品无码三级在线观看视频| 亚洲美女免费视频| 亚洲欧美另类在线| 久久99久久99精品免视看婷婷 | 国产精品无人区| 国产精品网站在线| 国产精品午夜久久| 国产精品电影院| 伊人开心综合网| 五月天久久比比资源色| 日韩中文字幕1| 久久99国产精品免费网站| 国内久久精品视频| 成人avav在线| 欧美性生活大片视频| 欧美日韩国产123区| 精品噜噜噜噜久久久久久久久试看| 日韩欧美成人午夜| 国产精品色在线观看| 亚洲一区二区三区精品在线| 婷婷综合久久一区二区三区| 久久成人免费网| jlzzjlzz亚洲日本少妇| 欧美专区在线观看一区| 欧美xingq一区二区| 国产精品久久久久久久久久久免费看 | 日韩欧美色综合| 国产精品网站一区| 五月天网站亚洲| 高清不卡在线观看av| 色婷婷av一区二区三区之一色屋| 欧美精品日日鲁夜夜添| 国产亚洲精久久久久久| 一区二区久久久| 国产伦精品一区二区三区视频青涩| 成人av在线电影| 欧美一区二区三区视频免费播放| 国产欧美日韩精品一区| 亚洲va国产va欧美va观看| 国产专区综合网| 欧美日韩午夜在线视频| 欧美国产欧美综合| 日韩不卡一二三区| 色婷婷综合久色| 国产视频911| 九九国产精品视频| 欧美三级中文字| 亚洲三级免费观看|