Skip to content

Commit 2b18df2

Browse files
committed
Makes document manager an interface
1 parent b5c4948 commit 2b18df2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,7 @@ public List<DocumentEntity> select(DocumentQuery query) throws NullPointerExcept
112112
}
113113
}
114114

115-
/**
116-
* Find using query
117-
*
118-
* @param query the query
119-
* @param params the params
120-
* @return the query result
121-
* @throws NullPointerException when either query or params are null
122-
*/
115+
@Override
123116
public List<DocumentEntity> select(String query, Object... params) throws NullPointerException {
124117
requireNonNull(query, "query is required");
125118
try (ODatabaseDocumentTx tx = pool.acquire()) {
@@ -173,7 +166,7 @@ private void toDocument(Map<String, Object> entityValues, Document document) {
173166
} else if (isADocumentIterable(valueAsObject)) {
174167
Map<String, Object> map = new java.util.HashMap<>();
175168
stream(Iterable.class.cast(valueAsObject).spliterator(), false)
176-
.forEach(d -> toDocument(map, Document.class.cast(d)));
169+
.forEach(d -> toDocument(map, Document.class.cast(d)));
177170
entityValues.put(document.getName(), map);
178171
} else {
179172
entityValues.put(document.getName(), document.get());
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package org.jnosql.diana.orientdb.document;
2+
3+
/**
4+
* Created by otaviojava on 6/23/17.
5+
*/
6+
public class DefaultOrientDBDocumentCollectionManagerAsync {
7+
}

0 commit comments

Comments
 (0)