[New] Implemented StrolchDao.hasElement()

This commit is contained in:
Robert von Burg 2014-08-04 11:47:56 +02:00
parent 348b2121e9
commit abf2a06b9e
1 changed files with 7 additions and 1 deletions

View File

@ -49,6 +49,12 @@ public abstract class AbstractDao<T extends StrolchElement> implements StrolchDa
return typeRef;
}
@Override
public boolean hasElement(String type, String id) {
IdOfSubTypeRef ref = getIdRef(type, id);
return this.tx.getObjectDao().hasElement(ref);
}
@Override
public long querySize() {
long size = 0;
@ -64,7 +70,7 @@ public abstract class AbstractDao<T extends StrolchElement> implements StrolchDa
@Override
public long querySize(String type) {
SubTypeRef subTypeRef = getTypeRef(type);
return tx.getMetadataDao().querySize(subTypeRef);
return this.tx.getMetadataDao().querySize(subTypeRef);
}
@Override