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

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

?? sqlmapexecutor.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 com.ibatis.common.util.PaginatedList;
import com.ibatis.sqlmap.client.event.RowHandler;
import com.ibatis.sqlmap.engine.execution.BatchException;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * This interface declares all methods involved with executing statements
 * and batches for an SQL Map.
 *
 * @see SqlMapSession
 * @see SqlMapClient
 */
public interface SqlMapExecutor {

  /**
   * Executes a mapped SQL INSERT statement.
   * Insert is a bit different from other update methods, as it
   * provides facilities for returning the primary key of the
   * newly inserted row (rather than the effected rows).  This
   * functionality is of course optional.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the INSERT values.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @return The primary key of the newly inserted row.  This might be automatically
   *         generated by the RDBMS, or selected from a sequence table or other source.
   * @throws java.sql.SQLException If an error occurs.
   */
  Object insert(String id, Object parameterObject) throws SQLException;

  /**
   * Executes a mapped SQL INSERT statement.
   * Insert is a bit different from other update methods, as it
   * provides facilities for returning the primary key of the
   * newly inserted row (rather than the effected rows).  This
   * functionality is of course optional.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @return The primary key of the newly inserted row.  This might be automatically
   *         generated by the RDBMS, or selected from a sequence table or other source.
   * @throws java.sql.SQLException If an error occurs.
   */
  Object insert(String id) throws SQLException;

  /**
   * Executes a mapped SQL UPDATE statement.
   * Update can also be used for any other update statement type,
   * such as inserts and deletes.  Update returns the number of
   * rows effected.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the UPDATE values as well as the WHERE clause parameter(s).
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @return The number of rows effected.
   * @throws java.sql.SQLException If an error occurs.
   */
  int update(String id, Object parameterObject) throws SQLException;

  /**
   * Executes a mapped SQL UPDATE statement.
   * Update can also be used for any other update statement type,
   * such as inserts and deletes.  Update returns the number of
   * rows effected.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @return The number of rows effected.
   * @throws java.sql.SQLException If an error occurs.
   */
  int update(String id) throws SQLException;

  /**
   * Executes a mapped SQL DELETE statement.
   * Delete returns the number of rows effected.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the DELETE statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @return The number of rows effected.
   * @throws java.sql.SQLException If an error occurs.
   */
  int delete(String id, Object parameterObject) throws SQLException;

  /**
   * Executes a mapped SQL DELETE statement.
   * Delete returns the number of rows effected.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @return The number of rows effected.
   * @throws java.sql.SQLException If an error occurs.
   */
  int delete(String id) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a single object instance.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @return The single result object populated with the result set data,
   *         or null if no result was found
   * @throws java.sql.SQLException If more than one result was found, or if any other error occurs.
   */
  Object queryForObject(String id, Object parameterObject) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a single object instance.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @return The single result object populated with the result set data,
   *         or null if no result was found
   * @throws java.sql.SQLException If more than one result was found, or if any other error occurs.
   */
  Object queryForObject(String id) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * the supplied result object.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @param resultObject    The result object instance that should be populated with result data.
   * @return The single result object as supplied by the resultObject parameter, populated with the result set data,
   *         or null if no result was found
   * @throws java.sql.SQLException If more than one result was found, or if any other error occurs.
   */
  Object queryForObject(String id, Object parameterObject, Object resultObject) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @return A List of result objects.
   * @throws java.sql.SQLException If an error occurs.
   */
  List queryForList(String id, Object parameterObject) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @return A List of result objects.
   * @throws java.sql.SQLException If an error occurs.
   */
  List queryForList(String id) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects within a certain range.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @param skip            The number of results to ignore.
   * @param max             The maximum number of results to return.
   * @return A List of result objects.
   * @throws java.sql.SQLException If an error occurs.
   */
  List queryForList(String id, Object parameterObject, int skip, int max) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects within a certain range.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @param skip            The number of results to ignore.
   * @param max             The maximum number of results to return.
   * @return A List of result objects.
   * @throws java.sql.SQLException If an error occurs.
   */
  List queryForList(String id, int skip, int max) throws SQLException;
  
  /**
   * Executes a mapped SQL SELECT statement that returns a number of
   * result objects that will be handled one at a time by a
   * RowHandler.
   * <p/>
   * This is generally a good approach to take when dealing with large sets
   * of records (i.e. hundreds, thousands...) that need to be processed without
   * eating up all of the system resources.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @param rowHandler      A RowHandler instance
   * @throws java.sql.SQLException If an error occurs.
   */
  void queryWithRowHandler(String id, Object parameterObject, RowHandler rowHandler) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns a number of
   * result objects that will be handled one at a time by a
   * RowHandler.
   * <p/>
   * This is generally a good approach to take when dealing with large sets
   * of records (i.e. hundreds, thousands...) that need to be processed without
   * eating up all of the system resources.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @param rowHandler      A RowHandler instance
   * @throws java.sql.SQLException If an error occurs.
   */
  void queryWithRowHandler(String id, RowHandler rowHandler) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects a page at a time.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @param pageSize        The maximum number of result objects each page can hold.
   * @return A PaginatedList of result objects.
   * @throws java.sql.SQLException If an error occurs.
   * @deprecated All paginated list features have been deprecated
   */
  PaginatedList queryForPaginatedList(String id, Object parameterObject, int pageSize) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects a page at a time.
   * <p/>
   * This overload assumes no parameter is needed.
   *
   * @param id              The name of the statement to execute.
   * @param pageSize        The maximum number of result objects each page can hold.
   * @return A PaginatedList of result objects.
   * @throws java.sql.SQLException If an error occurs.
   * @deprecated All paginated list features have been deprecated
   */
  PaginatedList queryForPaginatedList(String id, int pageSize) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects that will be keyed into a Map.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @param keyProp         The property to be used as the key in the Map.
   * @return A Map keyed by keyProp with values being the result object instance.
   * @throws java.sql.SQLException If an error occurs.
   */
  Map queryForMap(String id, Object parameterObject, String keyProp) throws SQLException;

  /**
   * Executes a mapped SQL SELECT statement that returns data to populate
   * a number of result objects from which one property will be keyed into a Map.
   * <p/>
   * The parameter object is generally used to supply the input
   * data for the WHERE clause parameter(s) of the SELECT statement.
   *
   * @param id              The name of the statement to execute.
   * @param parameterObject The parameter object (e.g. JavaBean, Map, XML etc.).
   * @param keyProp         The property to be used as the key in the Map.
   * @param valueProp       The property to be used as the value in the Map.
   * @return A Map keyed by keyProp with values of valueProp.
   * @throws java.sql.SQLException If an error occurs.
   */
  Map queryForMap(String id, Object parameterObject, String keyProp, String valueProp) throws SQLException;

  /**
   * Starts a batch in which update statements will be cached before being sent to
   * the database all at once. This can improve overall performance of updates update
   * when dealing with numerous updates (e.g. inserting 1:M related data).
   *
   * @throws java.sql.SQLException If the batch could not be started.
   */
  void startBatch() throws SQLException;

  /**
   * Executes (flushes) all statements currently batched.
   *
   * @return the number of rows updated in the batch
   * @throws java.sql.SQLException If the batch could not be executed or if any of the statements
   *                               fails.
   */
  int executeBatch() throws SQLException;

  /**
   * Executes (flushes) all statements currently batched.
   *
   * @return a List of BatchResult objects.  There will be one element in the
   *  list for each sub-batch executed.  A sub-batch is created by adding a statement
   *  to the batch that does not equal the prior statement. 
   * @throws SQLException if a database access error occurs, or the drive
   *   does not support batch statements
   * @throws BatchException if the driver throws BatchUpdateException
   * @see com.ibatis.sqlmap.engine.execution.BatchException
   */
  List executeBatchDetailed() throws SQLException, BatchException;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区久久| 成人午夜av电影| 香蕉久久夜色精品国产使用方法 | 久久国产夜色精品鲁鲁99| 性感美女极品91精品| 婷婷开心久久网| 日本特黄久久久高潮| 美国一区二区三区在线播放| 久久精品国产一区二区三区免费看| 日本 国产 欧美色综合| 秋霞影院一区二区| 国产麻豆精品在线观看| 国产成人av电影在线观看| 粉嫩绯色av一区二区在线观看| 丁香网亚洲国际| 97se亚洲国产综合自在线| 色悠悠久久综合| 欧美精品777| 精品国产乱码久久| 国产日产精品一区| 综合色中文字幕| 五月综合激情婷婷六月色窝| 日本不卡不码高清免费观看| 国产一区二区三区在线观看免费 | 国产大陆亚洲精品国产| 成人av片在线观看| 欧洲另类一二三四区| 欧美一区二区在线不卡| 久久亚洲影视婷婷| **欧美大码日韩| 亚洲不卡在线观看| 日韩欧美一区在线观看| 精品国产91洋老外米糕| 中文字幕视频一区二区三区久| 亚洲午夜精品一区二区三区他趣| 免费视频最近日韩| 成人免费高清在线| 欧美三级日韩三级国产三级| 亚洲精品一区二区三区蜜桃下载 | 国产精品久久毛片av大全日韩| 成人欧美一区二区三区在线播放| 夜夜夜精品看看| 激情五月播播久久久精品| 99riav久久精品riav| 在线综合视频播放| 欧美激情在线免费观看| 香蕉影视欧美成人| 成人动漫av在线| 欧美精品成人一区二区三区四区| 久久久噜噜噜久噜久久综合| 亚洲自拍另类综合| 国产老肥熟一区二区三区| 欧美三级中文字幕在线观看| 国产欧美一区在线| 性做久久久久久| 成人激情黄色小说| 日韩小视频在线观看专区| 1000精品久久久久久久久| 日本中文字幕一区二区视频| 99vv1com这只有精品| 精品国产髙清在线看国产毛片| 亚洲卡通动漫在线| 国产精品一级在线| 欧美男男青年gay1069videost| 亚洲国产精品黑人久久久| 免费成人小视频| 欧美色视频在线观看| 欧美韩国日本综合| 国产真实乱子伦精品视频| 欧美三级韩国三级日本三斤| 国产精品无码永久免费888| 奇米影视一区二区三区| 欧美亚洲国产一区二区三区| 国产精品无圣光一区二区| 麻豆中文一区二区| 欧美巨大另类极品videosbest| 亚洲女爱视频在线| www.综合网.com| 中文字幕成人在线观看| 精久久久久久久久久久| 91精选在线观看| 亚洲国产精品一区二区久久恐怖片| 成人动漫一区二区在线| 国产视频一区二区三区在线观看| 男女激情视频一区| 欧美日本在线视频| 一卡二卡欧美日韩| 99精品久久只有精品| 日本一区二区久久| 国产成人av一区二区三区在线观看| 精品国产一区二区在线观看| 人人超碰91尤物精品国产| 欧美日韩亚洲综合在线 | 成人午夜视频网站| 国产午夜精品福利| 国产福利一区在线观看| 欧美成人vps| 国产资源精品在线观看| 久久久久久毛片| 国产乱国产乱300精品| 26uuu久久综合| 国产精品中文字幕欧美| 国产欧美综合在线观看第十页| 国产成人av影院| 国产精品乱码人人做人人爱| 成人性生交大片免费看中文网站| 久久精品视频免费观看| 国产成人超碰人人澡人人澡| 欧美国产综合色视频| eeuss国产一区二区三区| 成人免费在线观看入口| 色综合色狠狠综合色| 亚洲精品中文在线影院| 欧美亚洲精品一区| 欧美aa在线视频| 精品国产免费一区二区三区香蕉| 精品亚洲porn| 国产精品久久久久影院老司| 色呦呦国产精品| 亚洲va欧美va人人爽午夜| 日韩写真欧美这视频| 国模少妇一区二区三区| 国产精品久久国产精麻豆99网站| 99国产精品久| 日韩精品高清不卡| 久久综合久久综合九色| 不卡免费追剧大全电视剧网站| 亚洲少妇屁股交4| 91精品国产一区二区人妖| 国产美女久久久久| 亚洲四区在线观看| 欧美人动与zoxxxx乱| 久久91精品久久久久久秒播| 国产欧美一区二区精品仙草咪 | 日韩美女视频在线| 国产91露脸合集magnet| 亚洲制服欧美中文字幕中文字幕| 欧美一区二区在线视频| 高清不卡一区二区| 亚洲午夜一区二区| 欧美精品一区二区三区久久久| 成人在线视频一区二区| 亚洲一卡二卡三卡四卡| 欧美成人video| 99精品黄色片免费大全| 日韩av一级片| 国产精品每日更新在线播放网址 | 久久综合999| 色婷婷综合久久久| 麻豆精品一二三| 亚洲色图清纯唯美| 欧美电影精品一区二区| 91麻豆123| 久草这里只有精品视频| 亚洲另类在线视频| 久久天堂av综合合色蜜桃网| 91福利在线免费观看| 国产在线视频一区二区| 亚洲一区二区在线视频| 欧美激情中文不卡| 日本麻豆一区二区三区视频| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲欧美日韩国产综合| 欧美成人高清电影在线| 在线日韩av片| 粉嫩在线一区二区三区视频| 日韩专区欧美专区| 亚洲欧美另类久久久精品| 精品久久一区二区三区| 欧美日韩三级在线| 91麻豆国产香蕉久久精品| 国产精品一区一区三区| 免费日本视频一区| 亚洲最新视频在线观看| 亚洲国产精品激情在线观看| 欧美成人video| 欧美一区二区三区色| 色综合久久综合| 99久久综合99久久综合网站| 极品少妇一区二区| 日韩综合小视频| 亚洲一区二区三区在线| 国产精品高潮呻吟| 国产精品少妇自拍| 久久久久久久精| 欧美r级电影在线观看| 9191成人精品久久| 欧美在线啊v一区| 一本大道av伊人久久综合| 国产 欧美在线| 国产九九视频一区二区三区| 久久 天天综合| 老色鬼精品视频在线观看播放| 天使萌一区二区三区免费观看| 亚洲精品水蜜桃| 亚洲精品视频在线看| 亚洲欧美在线高清| 亚洲乱码中文字幕| 亚洲日本在线a| 一区二区三区精品视频|