public interface GeneralDao<T extends online.sanen.cdm.basic.BasicBean>
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
all()
Gets the table all data
|
T |
find(Object primarykey)
The primary key to find
|
T |
find(String fieldName,
Object value)
Search by field
|
int |
insert(T entry) |
Object |
maximumkey()
Gets the maximum of the primary key
|
int |
remove(Object primarykey)
The primary key to remove
|
int |
remove(String fieldName,
Object value)
Remove by fieldRemove by field
|
int |
totalNumber()
Gets the current table total
|
int |
update(T entry) |
int insert(T entry)
int remove(Object primarykey)
primarykey - - primaryKey value or basicEntryint update(T entry)
T find(Object primarykey)
primarykey - - primaryKey value or basicEntryT find(String fieldName, Object value)
fieldName - - field by table columnvalue - - valueint remove(String fieldName, Object value)
fieldName - value - Object maximumkey()
int totalNumber()
Copyright © 2018. All rights reserved.