Package top.codef.dao
Class TypedBaseDao
java.lang.Object
top.codef.dao.AbstractDao
top.codef.dao.TypedBaseDao
- All Implemented Interfaces:
AmebaDao
- Direct Known Subclasses:
TypedCommonDao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Long
count
(TypedCommonFilter<T> commonFilter) 数量<T> Long
countDistinct
(String field, TypedCommonFilter<T> commonFilter) 数量<T> int
delete
(TypedCommonFilter<T> commonFilter) <T> List<T>
获取所有数据<T,
R> List<T> getList
(Class<T> tarClazz, Pageable page, TypedCommonFilter<R> commonFilter) <T,
K> List<T> getList
(Class<T> tarClazz, TypedCommonFilter<K> commonFilter) <T> List<T>
getList
(Pageable page, TypedCommonFilter<T> commonFilter) 分页所做查询列表<T> List<T>
getList
(TypedCommonFilter<T> commonFilter) 获取列表<T,
R> Page<T> getPage
(Class<T> tarClazz, Pageable pageable, TypedCommonFilter<R> filter) <T> Page<T>
getPageTyp
(Pageable pageable, TypedCommonFilter<T> filter) <T,
K> T getSingle
(Class<T> tarClazz, TypedCommonFilter<K> commonFilter) 获取单个实例<T> T
getSingle
(TypedCommonFilter<T> commonFilter) 获取单个实例<T> Integer
update
(TypedCommonFilter<T> commonFilter) <T> Integer
updateWithNull
(TypedCommonFilter<T> commonFilter) Methods inherited from class top.codef.dao.AbstractDao
create, createOrUpdate, delete, delete, detach, flush, get, getEntityManager, getSession, lock, merge, refresh
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface top.codef.dao.AmebaDao
conditionHandle, conditionHandle, generateUid, groupBy, groupBy, joinTable, limit, orderBy, orderBy, orderBy, orderBy, select, seperate, where
-
Constructor Details
-
TypedBaseDao
public TypedBaseDao()
-
-
Method Details
-
getSingle
获取单个实例- Parameters:
commonFilter
-- Returns:
-
getSingle
获取单个实例- Parameters:
tarClazz
-commonFilter
-- Returns:
-
getList
-
getList
分页所做查询列表- Type Parameters:
T
-- Parameters:
page
-commonFilter
-- Returns:
-
getList
- Parameters:
tarClazz
-page
-commonFilter
-- Returns:
-
getPageTyp
-
getPage
-
getList
获取所有数据- Parameters:
clazz
-- Returns:
-
getList
获取列表- Type Parameters:
T
-- Parameters:
commonFilter
-- Returns:
-
count
数量- Type Parameters:
T
-- Parameters:
commonFilter
-- Returns:
-
countDistinct
数量- Type Parameters:
T
-- Parameters:
field
-commonFilter
-- Returns:
-
update
-
updateWithNull
-
delete
-