Interface OracleNoSQLDocumentManager
- All Superinterfaces:
AutoCloseable,org.eclipse.jnosql.communication.semistructured.DatabaseManager
public interface OracleNoSQLDocumentManager
extends org.eclipse.jnosql.communication.semistructured.DatabaseManager
A document manager interface for Oracle NoSQL database operations.
-
Method Summary
Modifier and TypeMethodDescriptionlongdeleteAndCount(org.eclipse.jnosql.communication.semistructured.DeleteQuery query) Deletes documents matching the query and returns the number of affected documents.Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>Executes an Oracle query using the Oracle Query Language (SQL).Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity>Executes an Oracle query using the Oracle Query Language (SQL) with parameters.Methods inherited from interface org.eclipse.jnosql.communication.semistructured.DatabaseManager
close, count, count, delete, exists, insert, insert, insert, insert, name, prepare, prepare, query, query, select, selectCursor, singleResult, update, update, update
-
Method Details
-
deleteAndCount
long deleteAndCount(org.eclipse.jnosql.communication.semistructured.DeleteQuery query) Deletes documents matching the query and returns the number of affected documents.- Specified by:
deleteAndCountin interfaceorg.eclipse.jnosql.communication.semistructured.DatabaseManager- Parameters:
query- the delete query- Returns:
- the number of deleted documents
-
sql
Executes an Oracle query using the Oracle Query Language (SQL).- Parameters:
query- the SQL query- Returns:
- a
StreamofCommunicationEntityrepresenting the query result - Throws:
NullPointerException- when the query is null
-
sql
Stream<org.eclipse.jnosql.communication.semistructured.CommunicationEntity> sql(String query, Object... params) Executes an Oracle query using the Oracle Query Language (SQL) with parameters.Example query:
SELECT * FROM users WHERE status = ?- Parameters:
query- the SQL query with placeholders for parametersparams- the values to replace the placeholders in the query- Returns:
- a
StreamofCommunicationEntityrepresenting the query result - Throws:
NullPointerException- when either the query or params are null
-