|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.gm.core.DefaultGraphPoolChecker
public final class DefaultGraphPoolChecker
The GraphPoolChecker
verifies the correctness of the
GraphPool's contents regarding some general basic assumptions and the
requirements specified in the Schema.
Its purpose is to make sure that certain conditions that are only allowed temporarily during the course of a single transaction (dangling edges and relation ends, violations of min / max cardinalities) are not committed to the database (please consult the "Consistency" section in the documentation for details). It may be extended with custom GraphPoolCheckers by extensions or an application GM to perform additional checks.
GraphPoolChecker
Constructor Summary | |
---|---|
DefaultGraphPoolChecker()
|
Method Summary | |
---|---|
void |
addCustomGraphPoolChecker(GraphPoolChecker gpc)
Adds a custom GraphPoolChecker that can perform additional checks. |
void |
check(java.util.Collection<? extends GraphEntity> c)
Checks all entities in the Collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGraphPoolChecker()
Method Detail |
---|
public void addCustomGraphPoolChecker(GraphPoolChecker gpc)
gpc
- The custom GraphPoolChecker (null
is allowed for convenience, and will result in no modification).public void check(java.util.Collection<? extends GraphEntity> c) throws GraphPoolCheckException, DragosException
This implementation will first perform its own checks on all the entities in the Collection, and then forward the call to the custom checkers in the order they were added. Thereby, we ensure consistency at the core level first because otherwise the methods used in the custom checkers might return invalid / undefined results.
check
in interface GraphPoolChecker
c
- A Collection containing the entities to check.
GraphPoolCheckException
- if an inconsistency or similar problem was
found.
DragosException
- in case of internal errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |