Class DeleteSqlGenerator

java.lang.Object
org.litebridge.db.spi.impl.sql.AbstractSqlGenerator
org.litebridge.db.spi.impl.sql.DeleteSqlGenerator

public class DeleteSqlGenerator extends AbstractSqlGenerator
Generator for SQL DELETE statements.
  • Constructor Details

    • DeleteSqlGenerator

      public DeleteSqlGenerator(LabelGenerator labelGenerator, MathOperationGenerator mathOperationGenerator, BiFunction<Table,ConnectionProvider,TableMetaData> ensureTableMetaData)
      Constructs a DeleteSqlGenerator with the specified components.
      Parameters:
      labelGenerator - the label generator for rendering aliases/identifiers
      mathOperationGenerator - the math operation generator
      ensureTableMetaData - the function to retrieve table metadata
  • Method Details

    • generateSql

      public String generateSql(Delete delete, ConnectionProvider connectionProvider)
      Generates a SQL DELETE statement string from the provided logical Delete object.
      Parameters:
      delete - the Delete object representing the logical delete operation
      connectionProvider - the connection provider
      Returns:
      the generated SQL statement string