- public boolean isLocalSone(Sone sone) throws DatabaseException {
- Validation.begin().isNotNull("Sone", sone).check();
- return isLocalSone(sone.getId());
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isLocalSone(String id) throws DatabaseException {
- Validation.begin().isNotNull("Sone ID", id).check();
- synchronized (localSones) {
- return localSones.containsKey(id);
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isRemoteSone(Sone sone) throws DatabaseException {
- Validation.begin().isNotNull("Sone", sone).check();
- return isRemoteSone(sone.getId());
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean isRemoteSone(String id) throws DatabaseException {
- Validation.begin().isNotNull("Sone ID", id).check();
- synchronized (remoteSones) {
- return remoteSones.containsKey(id);
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override