fix wrong interface definition in ODatabaseObject
@@ -21,6 +21,7 @@ package com.orientechnologies.orient.core.db.object;
import com.orientechnologies.common.concur.ONeedRetryException;
import com.orientechnologies.orient.core.db.ODatabase;
+import com.orientechnologies.orient.core.db.ODatabaseSession;
import com.orientechnologies.orient.core.db.OUserObject2RecordHandler;
import com.orientechnologies.orient.core.entity.OEntityManager;
import com.orientechnologies.orient.core.iterator.object.OObjectIteratorClassInterface;
@@ -177,7 +178,7 @@ public interface ODatabaseObject extends ODatabase<Object>, OUserObject2RecordHa
OMetadataObject getMetadata();
@Override
- default <T> T executeWithRetry(int nRetries, Function<ODatabase, T> function)
+ default <T> T executeWithRetry(int nRetries, Function<ODatabaseSession, T> function)
throws IllegalStateException, IllegalArgumentException, ONeedRetryException, UnsupportedOperationException {
throw new UnsupportedOperationException();
//TODO test it before enabling it!
