|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExistenceCheckable
Methods for verifying the existence of referenced objects. See the "Consistency" chapter in the documentation for details.
Method Summary | |
---|---|
void |
checkExistence()
Checks whether this object still exists, throwing an exception if not. |
void |
checkExistenceOptional()
Checks whether this object still exists, throwing an exception if not. |
Method Detail |
---|
void checkExistence() throws java.lang.RuntimeException
java.lang.RuntimeException
- if this object no longer exists or an error occurred while accessing the GraphPool.void checkExistenceOptional() throws java.lang.RuntimeException
A useful default implementation would be as follows:
try { GraphPool gp = GraphPoolFactory.get(getDataSourceURL()); if (gp.getForceExistenceCheckOnRead()) { checkExistence(); } } catch (DragosException e) { String message = "Caught GraphPoolException while trying to determine whether to perform checks on read operation!"; log.error(message); throw new RuntimeException(message); }
java.lang.RuntimeException
- if this object no longer exists or an error occurred while accessing the GraphPool.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |