From ce9239013aa4aaa82b40d2669c59f74dba809eb9 Mon Sep 17 00:00:00 2001 From: zhou-hao Date: Sat, 26 Oct 2019 17:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0Dao=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/hswebframework/web/dao/dynamic/DeleteByEntityDao.java | 3 ++- .../org/hswebframework/web/dao/dynamic/QueryByEntityDao.java | 3 ++- .../org/hswebframework/web/dao/dynamic/UpdateByEntityDao.java | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/DeleteByEntityDao.java b/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/DeleteByEntityDao.java index 090a6fefc..1943b318e 100644 --- a/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/DeleteByEntityDao.java +++ b/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/DeleteByEntityDao.java @@ -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); } diff --git a/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/QueryByEntityDao.java b/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/QueryByEntityDao.java index 301dc3feb..1b846404a 100644 --- a/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/QueryByEntityDao.java +++ b/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/QueryByEntityDao.java @@ -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 { +public interface QueryByEntityDao extends Dao { List query(Entity queryEntity); int count(Entity queryEntity); diff --git a/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/UpdateByEntityDao.java b/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/UpdateByEntityDao.java index ebbc2c2af..6090fa461 100644 --- a/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/UpdateByEntityDao.java +++ b/hsweb-commons/hsweb-commons-dao/hsweb-commons-dao-api/src/main/java/org/hswebframework/web/dao/dynamic/UpdateByEntityDao.java @@ -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); }