[New] Implemented StrolchDao.hasElement()
This commit is contained in:
parent
348b2121e9
commit
abf2a06b9e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue