You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: orientdb-driver/src/main/java/org/jnosql/diana/orientdb/document/DefaultOrientDBDocumentCollectionManager.java
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,21 @@ public List<DocumentEntity> select(DocumentQuery query) {
99
99
}
100
100
}
101
101
102
+
@Override
103
+
publiclongcount(StringdocumentCollection) {
104
+
requireNonNull(documentCollection, "query is required");
105
+
try (ODatabaseDocumentTxtx = pool.acquire()) {
106
+
Stringquery = "select count(*) from ".concat(documentCollection);
107
+
List<ODocument> result = tx.command(QueryOSQLFactory.parse(query)).execute();
Copy file name to clipboardExpand all lines: orientdb-driver/src/main/java/org/jnosql/diana/orientdb/document/DefaultOrientDBDocumentCollectionManagerAsync.java
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,24 @@ public void select(DocumentQuery query, Consumer<List<DocumentEntity>> callBack)
Copy file name to clipboardExpand all lines: orientdb-driver/src/test/java/org/jnosql/diana/orientdb/document/OrientDBDocumentCollectionManagerAsyncTest.java
Copy file name to clipboardExpand all lines: orientdb-driver/src/test/java/org/jnosql/diana/orientdb/document/OrientDBDocumentCollectionManagerTest.java
0 commit comments