public interface BeatService extends EntityService<BeatId,BeatProviderId,Beat,BeatQuery>
Modifier and Type | Method and Description |
---|---|
BeatId |
addBeat(Beat beat,
String description)
Adds the given ad-hoc beat.
|
long |
countBeats(BeatQuery beatQuery)
Counts the beats that match the given query.
|
long |
countBeats(BeatQuery beatQuery,
SearchScope searchScope)
Counts the beats that match the given query in given scope.
|
long |
countBeats(Predicate beatPredicate)
Counts the beats that match the query with the given predicate.
|
long |
countBeats(Predicate beatPredicate,
SearchScope searchScope)
Counts the beats that match the query with the given predicate in given scope.
|
Beat |
findBeat(BeatQuery beatQuery)
Finds the beat that matches the given query.
|
Beat |
findBeat(BeatQuery beatQuery,
SearchScope searchScope)
Finds the beat that matches the given query in given scope.
|
Beat |
findBeat(Predicate beatPredicate)
Finds the beat that matches the query with the given predicate.
|
Beat |
findBeat(Predicate beatPredicate,
SearchScope searchScope)
Finds the beat that matches the query with the given predicate in given scope.
|
Beat |
findBeatByExternalId(BeatId externalId)
Finds the beat with the given external id.
|
Beat |
findBeatByExternalId(BeatId externalId,
SearchScope searchScope)
Finds the beat with the given external id in the given scope.
|
Beat |
findBeatById(BeatId beatId)
Finds the beat with the given beat id.
|
Beat |
findBeatById(BeatId beatId,
SearchScope searchScope)
Finds the beat with the given beat id in the given scope.
|
List<Beat> |
findBeats(BeatQuery beatQuery)
Finds the beats that match the given query.
|
List<Beat> |
findBeats(BeatQuery beatQuery,
SearchScope searchScope)
Finds the beats that match the given query in given scope.
|
List<Beat> |
findBeats(Predicate beatPredicate)
Finds the beats that match the query with the given predicate.
|
List<Beat> |
findBeats(Predicate beatPredicate,
SearchScope searchScope)
Finds the beats that match the query with the given predicate in given scope.
|
Beat |
getBeatById(BeatId beatId)
Finds the beat with the given beat id.
|
Beat |
getBeatById(BeatId beatId,
SearchScope searchScope)
Finds the beat with the given beat id in the given scope.
|
addEntity, addEntityGeneric, countEntities, countEntities, countEntities, countEntities, findEntities, findEntities, findEntities, findEntities, findEntity, findEntity, findEntity, findEntity, findEntityByExternalId, findEntityByExternalId, findEntityByGlobalId, findEntityByGlobalId, findEntityById, findEntityById, findExternalIdByGlobalId, findExternalIdByGlobalId, findExternalIdById, findExternalIdById, findGlobalIdByExternalId, findGlobalIdByExternalId, findIdByExternalId, findIdByExternalId, getEntityByGlobalId, getEntityByGlobalId, getEntityById, getEntityById
Beat getBeatById(BeatId beatId)
beatId
- the id of the beat to findEntityNotFoundException
- if beat cannot be foundBeat getBeatById(BeatId beatId, SearchScope searchScope)
beatId
- the id of the beat to findsearchScope
- the scope in which to search for the beatEntityNotFoundException
- if beat cannot be foundBeat findBeatById(BeatId beatId)
beatId
- the id of the beat to findBeat findBeatById(BeatId beatId, SearchScope searchScope)
beatId
- the id of the beat to findsearchScope
- the scope in which to search for the beatBeat findBeatByExternalId(BeatId externalId)
externalId
- the external id of the beat to findBeat findBeatByExternalId(BeatId externalId, SearchScope searchScope)
externalId
- the external id of the beat to findsearchScope
- the scope in which to search for the beatBeat findBeat(Predicate beatPredicate)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
beatPredicate
- the predicate to apply when executing the queryBeat findBeat(Predicate beatPredicate, SearchScope searchScope)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
beatPredicate
- the predicate to apply when executing the querysearchScope
- the scope in which to search for the beatList<Beat> findBeats(Predicate beatPredicate)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
beatPredicate
- the predicate to apply when executing the queryList<Beat> findBeats(Predicate beatPredicate, SearchScope searchScope)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
beatPredicate
- the predicate to apply when executing the querysearchScope
- the scope in which to search for the beatslong countBeats(Predicate beatPredicate)
beatPredicate
- the predicate to apply when executing the querylong countBeats(Predicate beatPredicate, SearchScope searchScope)
beatPredicate
- the predicate to apply when executing the querysearchScope
- the scope in which to count number of beatsBeat findBeat(BeatQuery beatQuery)
beatQuery
- the query to executeBeat findBeat(BeatQuery beatQuery, SearchScope searchScope)
beatQuery
- the query to executesearchScope
- the scope in which to search for the beatList<Beat> findBeats(BeatQuery beatQuery)
beatQuery
- the query to executeList<Beat> findBeats(BeatQuery beatQuery, SearchScope searchScope)
beatQuery
- the query to executesearchScope
- the scope in which to search for the beatslong countBeats(BeatQuery beatQuery)
beatQuery
- the query to executelong countBeats(BeatQuery beatQuery, SearchScope searchScope)
beatQuery
- the query to executesearchScope
- the scope in which to count number of beatsBeatId addBeat(Beat beat, String description)
BeatId.UNDEFINED
, the beat id is generated by the persistence component of the system and guaranteed to be
unique. In all other cases, the contributor of the beat needs to ensure that the beat's id is unique.beat
- the ad-hoc beat to adddescription
- transient meta information regarding the reason to add the ad-hoc beatEntity.getId()
,
Entity.getExternalId()
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.