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

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

?? sqlmapclient.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.client;

import java.sql.Connection;

/**
 * A thread safe client for working with your SQL Maps (Start Here).  This interface inherits transaction control
 * and execution methods from the SqlMapTransactionManager and SqlMapExecutor interfaces.
 * <p/>
 * The SqlMapClient is the central class for working with SQL Maps.  This class will allow you
 * to run mapped statements (select, insert, update, delete etc.), and also demarcate
 * transactions and work with batches.  Once you have an SqlMapClient instance, everything
 * you need to work with SQL Maps is easily available.
 * <p/>
 * The SqlMapClient can either
 * be worked with directly as a multi-threaded client (internal session management), or you can get a single threaded
 * session and work with that.  There may be a slight performance increase if you explicitly
 * get a session (using the openSession() method), as it saves the SqlMapClient from having
 * to manage threads contexts.  But for most cases it won't make much of a difference, so
 * choose whichever paradigm suits your needs or preferences.
 * <p/>
 * An SqlMapClient instance can be safely made <i>static</i> or applied as a <i>Singleton</i>.
 * Generally it's a good idea to make a simple configuration class that will configure the
 * instance (using SqlMapClientBuilder) and provide access to it.
 * <p/>
 * <b>The following example will demonstrate the use of SqlMapClient.</b>
 * <pre>
 * <i><font color="green">
 * //
 * // autocommit simple query --these are just examples...not patterns
 * //
 * </font></i>
 * Employee emp = (Employee) <b>sqlMap.queryForObject("getEmployee", new Integer(1))</b>;
 * <i><font color="green">
 * //
 * // transaction --these are just examples...not patterns
 * //
 * </font></i>
 * try {
 *   <b>sqlMap.startTransaction()</b>
 *   Employee emp2 = new Employee();
 *   // ...set emp2 data
 *   Integer generatedKey = (Integer) <b>sqlMap.insert ("insertEmployee", emp2)</b>;
 *   emp2.setFavouriteColour ("green");
 *   <b>sqlMap.update("updateEmployee", emp2)</b>;
 *   <b>sqlMap.commitTransaction()</b>;
 * } finally {
 *   <b>sqlMap.endTransaction()</b>;
 * }
 * <i><font color="green">
 * //
 * // session --these are just examples...not patterns
 * //
 * </font></i>
 * try {
 *   <b>SqlMapSession session = sqlMap.openSession()</b>
 *   <b>session.startTransaction()</b>
 *   Employee emp2 = new Employee();
 *   // ...set emp2 data
 *   Integer generatedKey = (Integer) <b>session.insert ("insertEmployee", emp2)</b>;
 *   emp2.setFavouriteColour ("green");
 *   <b>session.update("updateEmployee", emp2)</b>;
 *   <b>session.commitTransaction()</b>;
 * } finally {
 *   try {
 *     <b>session.endTransaction()</b>;
 *   } finally {
 *     <b>session.close()</b>;
 *   }
 *   // Generally your session scope would be in a wider context and therefore the
 *   // ugly nested finally block above would not be there.  Realize that sessions
 *   // MUST be closed if explicitly opened (via openSession()).
 * }
 * <i><font color="green">
 * //
 * // batch --these are just examples...not patterns
 * //
 * </font></i>
 * try {
 *   <b>sqlMap.startTransaction()</b>
 *   List list = (Employee) <b>sqlMap.queryForList("getFiredEmployees", null)</b>;
 *   <b>sqlMap.startBatch ()</b>;
 *   for (int i=0, n=list.size(); i < n; i++) {
 *     <b>sqlMap.delete ("deleteEmployee", list.get(i))</b>;
 *   }
 *   <b>sqlMap.executeBatch()</b>;
 *   <b>sqlMap.commitTransaction()</b>;
 * } finally {
 *   <b>sqlMap.endTransaction()</b>;
 * }
 * </pre>
 *
 * @see SqlMapClientBuilder
 * @see SqlMapSession
 * @see SqlMapExecutor
 */
public interface SqlMapClient extends SqlMapExecutor, SqlMapTransactionManager {

  /**
   * Returns a single threaded SqlMapSession implementation for use by
   * one user.  Remember though, that SqlMapClient itself is a thread safe SqlMapSession
   * implementation, so you can also just work directly with it.  If you do get a session
   * explicitly using this method <b>be sure to close it!</b>  You can close a session using
   * the sqlMapSession.close() method.
   * <p/>
   *
   * @return An SqlMapSession instance.
   */
  public SqlMapSession openSession();

  /**
   * Returns a single threaded SqlMapSession implementation for use by
   * one user.  Remember though, that SqlMapClient itself is a thread safe SqlMapSession
   * implementation, so you can also just work directly with it.  If you do get a session
   * explicitly using this method <b>be sure to close it!</b>  You can close a session using
   * the SqlMapSession.close() method.
   * <p/>
   * This particular implementation takes a user provided connection as a parameter.  This
   * connection will be used for executing statements, and therefore overrides any
   * configured datasources.  Using this approach allows the developer to easily use an externally
   * supplied connection for executing statements.
   * <p/>
   * <b>Important:</b> Using a user supplied connection basically sidesteps the datasource
   * so you are responsible for appropriately handling your connection lifecycle (i.e. closing).
   * Here's a (very) simple example (throws SQLException):
   * <pre>
   * try {
   *   Connection connection = dataSource.getConnection();
   *   SqlMapSession session = sqlMap.openSession(connection);
   *   // do work
   *   connection.commit();
   * } catch (SQLException e) {
   *     try {
   *       if (connection != null) commit.rollback();
   *     } catch (SQLException ignored) {
   *       // generally ignored
   *     }
   *     throw e;  // rethrow the exception
   * } finally {
   *   try {
   *     if (connection != null) connection.close();
   *   } catch (SQLException ignored) {
   *     // generally ignored
   *   }
   * }
   * </pre>
   * 
   * @param conn - the connection to use for the session
   *
   * @return An SqlMapSession instance.
   */
  public SqlMapSession openSession(Connection conn);

  /**
   * TODO : Deprecated and will be removed.
   *
   * @return A session (DEPRECATED)
   * @deprecated Use openSession() instead.  THIS METHOD WILL BE REMOVED BEFORE
   *             FINAL RELEASE.
   */
  public SqlMapSession getSession();

  /**
   * Flushes all data caches.
   */
  public void flushDataCache();

  /**
   * Flushes the data cache that matches the cache model ID provided. 
   * cacheId should include the namespace, even when 
   * useStatementNamespaces="false".
   *
   * @param cacheId The cache model to flush
   */
  public void flushDataCache(String cacheId);

  /**
   * Returns a generated implementation of a cusom mapper class as specified by the method
   * parameter.  The generated implementation will run mapped statements by matching the method
   * name to the statement name.  The mapped statement elements determine how the statement is
   * run as per the following:
   * <ul>
   *   <li>&lt;insert&gt; -- insert()
   *   <li>&lt;update&gt; -- update()
   *   <li>&lt;delete&gt; -- delete()
   *   <li>&lt;select&gt; -- queryForObject, queryForList or queryForMap, as determined by signature (see below)
   *   <li>&lt;procedure&gt; -- determined by method name (see below)
   * </ul>
   *
   * How select statements are run is determined by the method signature,
   * as per the following:
   * <ul>
   *   <li> Object methodName (Object param) -- queryForObject
   *   <li> List methodName (Object param [, int skip, int max | , int pageSize]) -- queryForList
   *   <li> Map methodName (Object param, String keyProp [,valueProp]) -- queryForMap
   * </ul>
   *
   * How stored procedures are run is determined by the method name,
   * as per the following:
   * <ul>
   *   <li> insertXxxxx -- insert()
   *   <li> createXxxxx -- insert()
   *   <li> updateXxxxx -- update()
   *   <li> saveXxxxx -- update()
   *   <li> deleteXxxxx -- delete()
   *   <li> removeXxxxx -- delete()
   *   <li> selectXxxxx -- queryForXxxxxx() determined by method signature as above
   *   <li> queryXxxxx -- queryForXxxxxx() determined by method signature as above
   *   <li> fetchXxxxx -- queryForXxxxxx() determined by method signature as above
   *   <li> getXxxxx -- queryForXxxxxx() determined by method signature as above
   * </ul>
   *
   * @param iface The interface that contains methods representing the mapped statements contained.
   * @return An instance of iface that can be used to call mapped statements directly in a typesafe
   * manner.
   */
  //public Object getMapper(Class iface);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜电影一区| 一区二区三区国产豹纹内裤在线| 婷婷一区二区三区| 欧美一区二区三区喷汁尤物| 蜜臀av性久久久久蜜臀aⅴ| 欧美一卡二卡在线观看| 免费在线看成人av| 精品剧情v国产在线观看在线| 精品一区二区国语对白| 久久婷婷国产综合精品青草| 成人午夜大片免费观看| 亚洲欧美一区二区三区久本道91 | 国产成人在线视频播放| 日本一区二区三区免费乱视频 | 国产成人精品一区二区三区四区 | 精品一区二区三区免费观看| 国产亚洲美州欧州综合国| 成人激情图片网| 悠悠色在线精品| 欧美一区二区三区思思人| 国产精品18久久久久久久久 | 91高清在线观看| 男女男精品视频网| 国产精品丝袜一区| 欧美精品亚洲二区| 91捆绑美女网站| 亚洲国产一二三| 日韩美女一区二区三区| 成人免费看视频| 亚洲成人资源网| 日本一区二区三区高清不卡| 欧美性猛交xxxx乱大交退制版| 九九久久精品视频| 一区二区三区四区在线免费观看| 欧美一区二区观看视频| 99国产精品国产精品毛片| 美女视频黄 久久| 亚洲精品乱码久久久久久黑人 | 久久久三级国产网站| 日本高清不卡视频| 国产九色精品成人porny| 亚洲自拍偷拍综合| 国产亚洲精品aa| 在线播放欧美女士性生活| 波多野结衣视频一区| 日韩av二区在线播放| √…a在线天堂一区| 51午夜精品国产| 在线观看不卡一区| 成人开心网精品视频| 美女www一区二区| 亚洲大片一区二区三区| 亚洲色欲色欲www在线观看| 久久久五月婷婷| 日韩美一区二区三区| 欧美三级日韩三级| 91免费在线视频观看| 成人性生交大片免费看视频在线 | 国产中文字幕精品| 婷婷综合另类小说色区| 国产精品美女久久久久aⅴ| 精品国产凹凸成av人网站| 欧美精品久久一区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 国产精品美女久久福利网站| 精品国产一二三区| 日韩精品最新网址| 精品国产乱码91久久久久久网站| 欧美日韩1区2区| 欧美日韩一区国产| 欧美在线免费视屏| 色婷婷亚洲精品| 色久优优欧美色久优优| 91小视频在线| 91论坛在线播放| 91在线观看下载| 99久久免费视频.com| 成人av网址在线| eeuss国产一区二区三区| 91在线porny国产在线看| 99久久久精品免费观看国产蜜| 成人免费av网站| 91老师片黄在线观看| 91精彩视频在线观看| 在线观看www91| 欧美日韩一区二区电影| 欧美肥胖老妇做爰| 欧美电视剧在线观看完整版| 久久亚洲私人国产精品va媚药| 久久精品人人做| 免费高清在线视频一区·| 美女视频黄 久久| 国产精品一区二区果冻传媒| 成人一级片网址| 色欧美88888久久久久久影院| 色吧成人激情小说| 欧美日本国产一区| 精品99久久久久久| 国产精品久久免费看| 亚洲乱码精品一二三四区日韩在线| 亚洲精品欧美综合四区| 三级在线观看一区二区| 国产综合成人久久大片91| 不卡影院免费观看| 欧美视频你懂的| 精品欧美乱码久久久久久| 国产欧美精品一区| 一区二区三区不卡在线观看| 天天综合网天天综合色| 国产一区二区三区免费看| 99视频热这里只有精品免费| 在线视频一区二区三| 日韩免费高清av| 国产精品久久久久国产精品日日| 亚洲在线观看免费视频| 韩国女主播成人在线观看| 91免费视频网| 日韩三级视频中文字幕| 国产精品毛片久久久久久| 日韩福利视频导航| aaa亚洲精品一二三区| 欧美人牲a欧美精品| 国产精品萝li| 日韩av午夜在线观看| av网站一区二区三区| 欧美一区二区女人| 免费成人美女在线观看.| 成人h精品动漫一区二区三区| 69久久夜色精品国产69蝌蚪网| 亚洲国产高清在线| 午夜不卡av免费| 色综合久久综合网97色综合| 欧美成人vps| 亚洲自拍偷拍麻豆| 大美女一区二区三区| 3d成人动漫网站| 亚洲视频免费观看| 激情国产一区二区| 欧美日韩国产在线观看| 18涩涩午夜精品.www| 久久成人免费网| 欧美精品精品一区| 一区二区三区在线观看国产| 国产精品99久久久久久久vr| 欧美高清视频一二三区| 最新日韩在线视频| 国产精一区二区三区| 日韩午夜激情电影| 日韩影院精彩在线| 欧美性猛交xxxx黑人交| 亚洲日穴在线视频| eeuss影院一区二区三区| 国产三级欧美三级日产三级99| 美女视频网站黄色亚洲| 欧美色精品天天在线观看视频| 亚洲乱码国产乱码精品精98午夜 | 美国精品在线观看| 欧美日韩国产欧美日美国产精品| 亚洲欧美视频在线观看| www.99精品| 中文字幕一区二区三区在线播放 | 91免费国产视频网站| 亚洲国产精品高清| 成人免费视频一区| 国产精品欧美一级免费| 不卡一区二区三区四区| 国产欧美日韩一区二区三区在线观看| 九九**精品视频免费播放| 日韩欧美三级在线| 麻豆成人在线观看| 亚洲精品一区二区三区四区高清 | 色88888久久久久久影院按摩| 国产精品三级av| 99久久精品国产观看| 日韩美女视频19| 色婷婷综合视频在线观看| 亚洲精品视频在线观看网站| 91高清在线观看| 日韩电影在线观看网站| 日韩一级高清毛片| 激情综合网天天干| 国产欧美一区二区精品性色| 91精品国产日韩91久久久久久| 免费在线看成人av| 久久久亚洲综合| 99精品在线免费| 亚洲电影在线免费观看| 欧美一级黄色片| 国产精品一区二区x88av| 国产精品妹子av| 欧美日韩在线亚洲一区蜜芽| 免费观看日韩av| 欧美激情综合五月色丁香小说| 99视频一区二区| 午夜成人在线视频| 久久色.com| 91亚洲精品久久久蜜桃| 日韩高清不卡一区二区| 欧美激情一区二区三区不卡| 欧美曰成人黄网|