admin管理员组

文章数量:1642451

Insert

@param id: The name of the statement to execute.
数据库操作语句。
@param parameterObject: The parameter object is generally used to supply the input data for the INSERT values.
数据库操作对象映射的实体类,主要用于提供待插入的数据。
@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.
返回值为新插入的行号,即插入数据时自动生成的主键。

Update

@param parameterObject: The parameter object is generally used to supply the input data for the UPDATE values as well as the WHERE clause parameter(s).
数据库操作对象映射的实体类,主要用于提供待更新数据的位置以及更新值。
@return: The number of rows effected.
返回值为变动数据的行号,即主键。

Delete

@param parameterObject: The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the DELETE statement.
数据库操作对象映射的实体类,主要用于提供待删除数据的位置。
@return: The number of rows effected.
返回值为删除数据的行号,即主键。

queryForObject

@param parameterObject: The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
数据库操作对象映射的实体类,主要用于提供待查询的参数。
@return: The single result object populated with the result set data, or null if no result was found.
返回值为查询结果对应的主体类,且只包含一条数据。

queryForList

@param parameterObject: The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
数据库操作对象映射的实体类,主要用于提供待查询的参数。
@return: A List of result objects.
返回的是一系列符合查询条件的结果。

/*
 *  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/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 e

本文标签: 中与返回值接口参数操作