public interface BeaconDao extends GenericDao<Beacon,String>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRelationship(Beacon child,
Beacon parent)
Creates parent-child association.
|
List<Beacon> |
findByAggregation(boolean aggregator)
Retrieves beacons by aggregation flag.
|
Beacon |
findByIdAndVisibility(String id,
boolean visible)
Retrieves a beacon by its ID and visibility.
|
List<Beacon> |
findByIds(Collection<String> ids)
Retrieves beacons by their IDs.
|
List<Beacon> |
findByIdsAndVisibility(Collection<String> ids,
boolean visible)
Retrieves beacons by visibility.
|
List<Beacon> |
findByVisibility(boolean visible)
Retrieves beacons by visibility.
|
Set<Beacon> |
findDescendants(Beacon parent,
boolean includeAggregators,
boolean includeInvisible,
boolean includeDisabled,
boolean includeSelf)
Computes a set of nodes covered by a specific node transitively.
|
boolean |
haveRelationship(Beacon child,
Beacon parent)
Checks existence of a parent-child association.
|
boolean |
removeRelationship(Beacon child,
Beacon parent)
Removes parent-child association.
|
countAll, delete, findAll, findById, flush, getReferenceById, save, updateList<Beacon> findByAggregation(boolean aggregator)
aggregator - true if looking for aggregating beacons, false if looking for regular beaconsList<Beacon> findByVisibility(boolean visible)
visible - true if looking for visible beacons, false if looking for invisible/anonymous beaconsList<Beacon> findByIds(Collection<String> ids)
ids - IDsList<Beacon> findByIdsAndVisibility(Collection<String> ids, boolean visible)
ids - IDsvisible - true if looking for visible beacons, false if looking for invisible/anonymous beaconsBeacon findByIdAndVisibility(String id, boolean visible)
id - IDvisible - true if looking for visible beacons, false if looking for invisible/anonymous beaconsboolean haveRelationship(Beacon child, Beacon parent)
parent - parentchild - childboolean addRelationship(Beacon child, Beacon parent)
parent - parentchild - childboolean removeRelationship(Beacon child, Beacon parent)
parent - parentchild - childSet<Beacon> findDescendants(Beacon parent, boolean includeAggregators, boolean includeInvisible, boolean includeDisabled, boolean includeSelf)
parent - nodeincludeAggregators - true if aggregators should be included in the resultsincludeInvisible - true if invisible beacons should be included in the resultsincludeDisabled - true if disabled beacons should be included as wellincludeSelf - true if self should be included in the resultsCopyright © 2016 DNAstack. All rights reserved.