mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-04 11:52:41 +08:00
实现Dao接口
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
package org.hswebframework.web.dao.dynamic;
|
||||
|
||||
import org.hswebframework.web.commons.entity.Entity;
|
||||
import org.hswebframework.web.dao.Dao;
|
||||
|
||||
/**
|
||||
* 根据实体类条件进行删除,删除条件根据实体类进行解析。解析方式和{@link QueryByEntityDao#query}一致
|
||||
@@ -26,6 +27,6 @@ import org.hswebframework.web.commons.entity.Entity;
|
||||
* @author zhouhao
|
||||
* @since 3.0
|
||||
*/
|
||||
public interface DeleteByEntityDao {
|
||||
public interface DeleteByEntityDao extends Dao {
|
||||
int delete(Entity entity);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
package org.hswebframework.web.dao.dynamic;
|
||||
|
||||
import org.hswebframework.web.commons.entity.Entity;
|
||||
import org.hswebframework.web.dao.Dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -28,7 +29,7 @@ import java.util.List;
|
||||
* @author zhouhao
|
||||
* @since 3.0
|
||||
*/
|
||||
public interface QueryByEntityDao<PO> {
|
||||
public interface QueryByEntityDao<PO> extends Dao {
|
||||
List<PO> query(Entity queryEntity);
|
||||
|
||||
int count(Entity queryEntity);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
package org.hswebframework.web.dao.dynamic;
|
||||
|
||||
import org.hswebframework.web.commons.entity.Entity;
|
||||
import org.hswebframework.web.dao.Dao;
|
||||
|
||||
/**
|
||||
* 根据实体类进行更新,实体类支持动态条件或者普通实体类。
|
||||
@@ -27,6 +28,6 @@ import org.hswebframework.web.commons.entity.Entity;
|
||||
* @author zhouhao
|
||||
* @since 3.0
|
||||
*/
|
||||
public interface UpdateByEntityDao {
|
||||
public interface UpdateByEntityDao extends Dao {
|
||||
int update(Entity entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user