Interface Operation

All Known Subinterfaces:
UpdateStatement
All Known Implementing Classes:
Delete, Insert, Select, Update

public sealed interface Operation permits Select, UpdateStatement
Common abstraction for SQL operations in the database.

This sealed interface serves as the root of the hierarchy for database operation models, specifically for SQL SELECT queries and update-related statements such as INSERT, UPDATE, and DELETE.

Permitted subtypes:

  • Select: Encapsulates components required to construct a SQL SELECT query, including target table, expressions, joins, conditions, and more.
  • UpdateStatement: Serves as a marker type for classes representing update-related operations in a database (e.g., INSERT, UPDATE, DELETE statements).
Implementing this interface indicates that a class represents a structured model for interacting with SQL queries or statements.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the target table for the operation.
  • Method Details

    • table

      Table table()
      Get the target table for the operation.
      Returns:
      the target table of the operation