Interface OracleNoSQLTemplate

All Superinterfaces:
org.eclipse.jnosql.mapping.document.DocumentTemplate, org.eclipse.jnosql.mapping.semistructured.SemiStructuredTemplate, jakarta.nosql.Template

public interface OracleNoSQLTemplate extends org.eclipse.jnosql.mapping.document.DocumentTemplate
The OracleTemplate is an interface that extends DocumentTemplate and provides methods for executing Oracle SQL queries using the Oracle Query Language (SQL).

It allows you to interact with the Oracle NoSQL database using SQL queries to retrieve and process data in a more flexible and customizable way.

See Also:
  • DocumentTemplate
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Stream<T>
    sql(String query)
    Executes an Oracle query using the Oracle Query Language (SQL).
    <T> Stream<T>
    sql(String query, Object... params)
    Executes an Oracle query using the Oracle Query Language (SQL) with parameters.

    Methods inherited from interface org.eclipse.jnosql.mapping.semistructured.SemiStructuredTemplate

    count, count, count, delete, deleteAll, exists, findAll, prepare, prepare, query, query, select, selectCursor, selectOffSet, singleResult, singleResult, singleResult

    Methods inherited from interface jakarta.nosql.Template

    delete, delete, find, insert, insert, insert, insert, select, update, update
  • Method Details

    • sql

      <T> Stream<T> sql(String query)
      Executes an Oracle query using the Oracle Query Language (SQL).
      Type Parameters:
      T - the type of objects in the result stream
      Parameters:
      query - the SQL query
      Returns:
      a Stream of results representing the query result
      Throws:
      NullPointerException - when the query is null
    • sql

      <T> Stream<T> sql(String query, Object... params)
      Executes an Oracle query using the Oracle Query Language (SQL) with parameters.

      Example query: SELECT * FROM users WHERE status = ?

      Type Parameters:
      T - the type of objects in the result stream
      Parameters:
      query - the SQL query with placeholders for parameters
      params - the values to replace the placeholders in the query
      Returns:
      a Stream of results representing the query result
      Throws:
      NullPointerException - when either the query or params are null