public void lock(String statement) {
persistenceSession.lock(statement);
}
public boolean isDirty(DbEntity dbEntity) {
CachedDbEntity cachedEntity = dbEntityCache.getCachedEntity(dbEntity);
if(cachedEntity == null) {
return false;
} else {
return cachedEntity.isDirty() || cachedEntity.getEntityState() == DbEntityState.MERGED;
}
}