public interface NCSComponentRepository
Modifier and Type | Method and Description |
---|---|
void |
clear()
clear
|
int |
countAll()
countAll
|
int |
countMatching(OnmsCriteria onmsCrit)
countMatching
|
void |
delete(NCSComponent component)
delete
|
List<NCSComponent> |
findAll()
findAll
|
List<NCSComponent> |
findByType(String type) |
NCSComponent |
findByTypeAndForeignIdentity(String type,
String foreignSource,
String foreignId) |
List<NCSComponent> |
findComponentsByNodeId(int nodeid) |
List<NCSComponent> |
findComponentsThatDependOn(NCSComponent component) |
List<NCSComponent> |
findComponentsWithAttribute(String attrKey,
String attrValue) |
List<NCSComponent> |
findMatching(OnmsCriteria criteria)
findMatching
|
void |
flush()
flush
|
NCSComponent |
get(Long id)
get
|
void |
initialize(Object obj)
initialize
|
NCSComponent |
load(Long id)
load
|
void |
lock()
This is used to lock the table in order to implement upsert type operations
|
void |
save(NCSComponent component)
save
|
void |
saveOrUpdate(NCSComponent component)
saveOrUpdate
|
void |
update(NCSComponent component)
update
|
void lock()
void flush()
flush
void clear()
clear
int countAll()
countAll
void delete(NCSComponent component)
delete
List<NCSComponent> findAll()
findAll
List
object.List<NCSComponent> findMatching(OnmsCriteria criteria)
findMatching
criteria
- a OnmsCriteria
object.List
object.int countMatching(OnmsCriteria onmsCrit)
countMatching
onmsCrit
- a OnmsCriteria
object.NCSComponent get(Long id)
get
NCSComponent load(Long id)
load
void save(NCSComponent component)
save
void saveOrUpdate(NCSComponent component)
saveOrUpdate
void update(NCSComponent component)
update
List<NCSComponent> findByType(String type)
type
- NCSComponent findByTypeAndForeignIdentity(String type, String foreignSource, String foreignId)
type
- foreignSource
- foreignId
- List<NCSComponent> findComponentsThatDependOn(NCSComponent component)
component
- List<NCSComponent> findComponentsWithAttribute(String attrKey, String attrValue)
attrKey
- attrValue
- List<NCSComponent> findComponentsByNodeId(int nodeid)
nodeid
- Copyright © 2015. All rights reserved.