All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
cn.sylinx.hbatis.ext.xmapper.repository.DaoService Maven / Gradle / Ivy
Go to download
hbatis-xmapper is a simple orm framework, extends hbatis-core
package cn.sylinx.hbatis.ext.xmapper.repository;
import java.util.List;
import java.util.Map;
import cn.sylinx.hbatis.db.common.Record;
import cn.sylinx.hbatis.ext.common.repository.CommonDaoService;
public interface DaoService extends CommonDaoService {
/**
* 查询Map列表
*
* @param sqlId
* @param params
* @return
*/
public List> queryForMapList(String sqlId, Map params);
/**
* 查询Map列表
*
* @param namespaceId
* @param id
* @param params
* @return
*/
public List> queryForMapList(String namespaceId, String id, Map params);
/**
* 查询
*
* @param namespaceId
* @param id
* @param params
* @return
*/
public List queryForRecords(String namespaceId, String id, Map params);
/**
* 查询记录
*
* @param sqlId
* @param params
* @return
*/
public List queryForRecords(String sqlId, Map params);
/**
* 查询第一条记录
*
* @param namespaceId
* @param id
* @param params
* @return
*/
public Record queryFirstRecord(String namespaceId, String id, Map params);
/**
* 查询第一条记录
*
* @param sqlId
* @param params
* @return
*/
public Record queryFirstRecord(String sqlId, Map params);
public List queryObjectArrayList(String namespaceId, String id, Map params);
public List queryObjectArrayList(String sqlId, Map params);
public Object[] queryFirstObjectArray(String namespaceId, String id, Map params);
public Object[] queryFirstObjectArray(String sqlId, Map params);
/**
* 查询第一个map
*
* @param sqlId
* @param params
* @return
*/
public Map queryFirstForMap(String sqlId, Map params);
/**
* 查询第一个map
*
* @param namespaceId
* @param id
* @param params
* @return
*/
public Map queryFirstForMap(String namespaceId, String id, Map params);
/**
* 通过配置文件获取对应对象列表
*
* @param sqlId
* @return
*/
public List query(String sqlId, Map params);
/**
* 通过配置文件获取对应对象列表
*
* @param namespaceId
* @param id
* @return
*/
public List query(String namespaceId, String id, Map params);
/**
* 通过配置文件获取对应对象列表
*
* @param sqlId
* @return
*/
public T queryFirst(String sqlId, Map params);
/**
* 通过配置文件获取对应对象列表
*
* @param namespaceId
* @param id
* @return
*/
public T queryFirst(String namespaceId, String id, Map params);
/**
* update
*
* @param sqlId
* @param params
* @return
*/
public int update(String sqlId, Map params);
/**
* update
*
* @param namespaceId
* @param id
* @param params
* @return
*/
public int update(String namespaceId, String id, Map params);
/**
* delete
*
* @param sqlId
* @param params
* @return
*/
public int delete(String sqlId, Map params);
/**
* delete
*
* @param namespaceId
* @param id
* @param params
* @return
*/
public int delete(String namespaceId, String id, Map params);
/**
* save
*
* @param sqlId
* @param params
* @return
*/
public Object save(String sqlId, Map params);
/**
* save
*
* @param namespaceId
* @param id
* @param params
* @return
*/
public Object save(String namespaceId, String id, Map params);
}