-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create initial structure to OracleDocumentManager
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
- Loading branch information
1 parent
1d55449
commit 9e06043
Showing
3 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
...rc/main/java/org/eclipse/jnosql/databases/oracle/communication/OracleDocumentManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php. | ||
* | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* | ||
* Otavio Santana | ||
*/ | ||
package org.eclipse.jnosql.databases.oracle.communication; | ||
|
||
import oracle.nosql.driver.NoSQLHandle; | ||
import org.eclipse.jnosql.communication.document.DocumentDeleteQuery; | ||
import org.eclipse.jnosql.communication.document.DocumentEntity; | ||
import org.eclipse.jnosql.communication.document.DocumentManager; | ||
import org.eclipse.jnosql.communication.document.DocumentQuery; | ||
|
||
import java.time.Duration; | ||
import java.util.Objects; | ||
import java.util.stream.Stream; | ||
|
||
final class OracleDocumentManager implements DocumentManager { | ||
private final String table; | ||
private final NoSQLHandle serviceHandle; | ||
|
||
public OracleDocumentManager(String table, NoSQLHandle serviceHandle) { | ||
this.table = table; | ||
this.serviceHandle = serviceHandle; | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return table; | ||
} | ||
|
||
@Override | ||
public DocumentEntity insert(DocumentEntity entity) { | ||
Objects.requireNonNull(entity, "entity is required"); | ||
|
||
return null; | ||
} | ||
|
||
@Override | ||
public DocumentEntity insert(DocumentEntity entity, Duration ttl) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Iterable<DocumentEntity> insert(Iterable<DocumentEntity> entities) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Iterable<DocumentEntity> insert(Iterable<DocumentEntity> entities, Duration ttl) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public DocumentEntity update(DocumentEntity entity) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public Iterable<DocumentEntity> update(Iterable<DocumentEntity> entities) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void delete(DocumentDeleteQuery query) { | ||
|
||
} | ||
|
||
@Override | ||
public Stream<DocumentEntity> select(DocumentQuery query) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public long count(String documentCollection) { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void close() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters