T
- The type of the Entity this DAO is intended to manage.K
- The key of the Entity.public interface OnmsDao<T,K extends Serializable>
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
countAll() |
int |
countMatching(Criteria onmsCrit) |
void |
delete(K key) |
void |
delete(T entity) |
List<T> |
findAll() |
List<T> |
findMatching(Criteria criteria) |
void |
flush() |
T |
get(K id) |
void |
initialize(Object obj) |
T |
load(K id) |
void |
lock()
This is used to lock the table in order to implement upsert type operations
|
K |
save(T entity) |
void |
saveOrUpdate(T entity) |
void |
update(T entity) |
void lock()
void initialize(Object obj)
void flush()
void clear()
int countAll()
void delete(T entity)
void delete(K key)
int countMatching(Criteria onmsCrit)
void saveOrUpdate(T entity)
void update(T entity)
Copyright © 2021. All rights reserved.