Class SqlInsertIntoStep

java.lang.Object
org.litebridge.orm.api.insert.InsertIntoStep
org.litebridge.orm.api.insert.SqlInsertIntoStep

public final class SqlInsertIntoStep extends InsertIntoStep
SQL-mode insert step for specifying columns to insert into.
  • Constructor Details

    • SqlInsertIntoStep

      public SqlInsertIntoStep(String tableName, LitebridgeContext litebridgeContext)
      Creates a new SqlInsertIntoStep instance.
      Parameters:
      tableName - name of the table to insert data into
      litebridgeContext - the Litebridge context
  • Method Details

    • into

      public InsertValuesStep into(String... columns)
      Specifies the columns to insert data into.
      Parameters:
      columns - the column names to insert
      Returns:
      step to specify the values to insert
    • into

      public InsertValuesStep into(ExpressionSpec... expressions)
      Description copied from class: InsertIntoStep
      Specifies the columns to insert data into using expressions.
      Specified by:
      into in class InsertIntoStep
      Parameters:
      expressions - the expressions specifying columns to insert into
      Returns:
      step to specify the values to insert