public interface OnmsDao<T,K extends Serializable>
OnmsDao interface.
Modifier and Type | Method and Description |
---|---|
void |
clear()
clear
|
int |
countAll()
countAll
|
int |
countMatching(Criteria onmsCrit)
countMatching
|
int |
countMatching(OnmsCriteria onmsCrit)
countMatching
|
void |
delete(K key)
delete
|
void |
delete(T entity)
delete
|
List<T> |
findAll()
findAll
|
List<T> |
findMatching(Criteria criteria)
findMatching
|
List<T> |
findMatching(OnmsCriteria criteria)
findMatching
|
void |
flush()
flush
|
T |
get(K id)
get
|
void |
initialize(Object obj)
initialize
|
T |
load(K id)
load
|
void |
lock()
This is used to lock the table in order to implement upsert type operations
|
void |
save(T entity)
save
|
void |
saveOrUpdate(T entity)
saveOrUpdate
|
void |
update(T entity)
update
|
void lock()
void initialize(Object obj)
initialize
T
- a T object.K
- a K object.obj
- a Object
object.void flush()
flush
void clear()
clear
int countAll()
countAll
void delete(T entity)
delete
entity
- a T object.void delete(K key)
delete
key
- a K object.List<T> findMatching(OnmsCriteria criteria)
findMatching
criteria
- a OnmsCriteria
object.List
object.int countMatching(Criteria onmsCrit)
countMatching
onmsCrit
- a Criteria
object.int countMatching(OnmsCriteria onmsCrit)
countMatching
onmsCrit
- a OnmsCriteria
object.void save(T entity)
save
entity
- a T object.void saveOrUpdate(T entity)
saveOrUpdate
entity
- a T object.void update(T entity)
update
entity
- a T object.Copyright © 2015. All Rights Reserved.