com.bixuebihui.jdbc.IBaseListService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of c-dbtools Show documentation
Show all versions of c-dbtools Show documentation
a fast small database connection pool and a active record flavor mini framework
package com.bixuebihui.jdbc;
import java.util.List;
import java.util.Map;
/**
* 数据表基础操作接口,为与jmesa配合使用
*
* @author xingwx
* @param 表类型
* @param 主键类型
* @version $Id: $Id
*/
public interface IBaseListService extends IReaderService, IPrimaryKeyedTable {
/**
* selectByIds.
*
* @param uniquePropertyName a {@link java.lang.String} object.
* @param uniquePropertyValues a {@link java.util.List} object.
* @return a {@link java.util.Map} object.
*/
Map selectByIds(String uniquePropertyName, List uniquePropertyValues);
/**
* updateByKey.
*
* @param info a T object.
* @return a boolean.
*/
boolean updateByKey(T info);
/**
* insertDummy.
*
* @return a boolean.
*/
boolean insertDummy();
/**
* deleteByKey.
*
* @param key a V object.
* @return a boolean.
*/
boolean deleteByKey(V key);
/**
* insertAutoNewKey.
*
* @param info a T object.
* @return a boolean.
*/
boolean insertAutoNewKey(T info);
/**
* getDbHelper.
*
* @return a {@link IDbHelper} object.
*/
IDbHelper getDbHelper();
/**
* insert.
*
* @param o a T object.
* @return a boolean.
*/
boolean insert(T o);
/**
* create.
*
* @return a T object.
*/
T create();
/**
* getNextKey.
*
* @return a V object.
*/
V getNextKey();
}