Skip to content

Commit d5cba46

Browse files
committed
fixes orientdb
1 parent e33bdef commit d5cba46

File tree

7 files changed

+10
-549
lines changed

7 files changed

+10
-549
lines changed

orientdb-driver/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,19 @@
3030
<dependency>
3131
<groupId>com.orientechnologies</groupId>
3232
<artifactId>orientdb-graphdb</artifactId>
33-
<version>3.0.2</version>
33+
<version>3.0.30</version>
3434
</dependency>
3535
<dependency>
3636
<groupId>${project.groupId}</groupId>
3737
<artifactId>diana-driver-commons</artifactId>
3838
<version>${project.version}</version>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.awaitility</groupId>
42+
<artifactId>awaitility</artifactId>
43+
<version>4.0.2</version>
44+
<scope>test</scope>
45+
</dependency>
4046
<dependency>
4147
<groupId>${project.groupId}</groupId>
4248
<artifactId>diana-document</artifactId>

orientdb-driver/src/main/java/org/eclipse/jnosql/diana/orientdb/document/DefaultOrientDBDocumentCollectionManagerAsync.java

Lines changed: 0 additions & 203 deletions
This file was deleted.

orientdb-driver/src/main/java/org/eclipse/jnosql/diana/orientdb/document/OrientDBDocumentCollectionManagerAsync.java

Lines changed: 0 additions & 55 deletions
This file was deleted.

orientdb-driver/src/main/java/org/eclipse/jnosql/diana/orientdb/document/OrientDBDocumentCollectionManagerFactory.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import com.orientechnologies.orient.core.db.ODatabaseType;
2020
import com.orientechnologies.orient.core.db.OrientDB;
2121
import com.orientechnologies.orient.core.db.OrientDBConfig;
22-
import jakarta.nosql.document.DocumentCollectionManagerAsyncFactory;
2322
import jakarta.nosql.document.DocumentCollectionManagerFactory;
2423

2524
import static java.util.Objects.requireNonNull;
@@ -28,8 +27,7 @@
2827
/**
2928
* The OrientDB implementation of {@link DocumentCollectionManagerFactory}
3029
*/
31-
public class OrientDBDocumentCollectionManagerFactory implements DocumentCollectionManagerFactory,
32-
DocumentCollectionManagerAsyncFactory{
30+
public class OrientDBDocumentCollectionManagerFactory implements DocumentCollectionManagerFactory {
3331

3432
private final String host;
3533
private final String user;
@@ -61,15 +59,6 @@ public OrientDBDocumentCollectionManager get(String database) {
6159

6260
}
6361

64-
@Override
65-
public OrientDBDocumentCollectionManagerAsync getAsync(String database) throws UnsupportedOperationException,
66-
NullPointerException {
67-
requireNonNull(database, "database is required");
68-
orient.createIfNotExists(database, storageType);
69-
ODatabasePool pool = new ODatabasePool(orient, database, user, password);
70-
return new DefaultOrientDBDocumentCollectionManagerAsync(pool);
71-
}
72-
7362
@Override
7463
public void close() {
7564
orient.close();

orientdb-driver/src/main/java/org/eclipse/jnosql/diana/orientdb/document/OrientDBDocumentConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import jakarta.nosql.Settings;
2020
import jakarta.nosql.Settings.SettingsBuilder;
2121
import jakarta.nosql.document.DocumentConfiguration;
22-
import jakarta.nosql.document.DocumentConfigurationAsync;
2322
import org.eclipse.jnosql.diana.driver.ConfigurationReader;
2423

2524
import java.util.Map;
@@ -30,14 +29,14 @@
3029
import static java.util.stream.Collectors.toList;
3130

3231
/**
33-
* The orientDB implementation of {@link DocumentConfiguration} and {@link DocumentConfigurationAsync} that returns
32+
* The orientDB implementation of {@link DocumentConfiguration} that returns
3433
* {@link OrientDBDocumentCollectionManagerFactory}. It tries to read diana-arangodb.properties file.
3534
* <p>orientdb.host: the host</p>
3635
* <p>orientdb.user: the user</p>
3736
* <p>orientdb.password: the password</p>
3837
* <p>orientdb.storage.type: the storage type</p>
3938
*/
40-
public class OrientDBDocumentConfiguration implements DocumentConfiguration, DocumentConfigurationAsync {
39+
public class OrientDBDocumentConfiguration implements DocumentConfiguration {
4140

4241
private static final String FILE_CONFIGURATION = "diana-orientdb.properties";
4342

0 commit comments

Comments
 (0)