Class InsertValue


public final class InsertValue extends H2SqlPart
Represents a column-value pair for H2 insert statements.
  • Constructor Details

    • InsertValue

      public InsertValue(String columnName, Object value)
      Constructs an insert value with the specified column name and value.
      Parameters:
      columnName - the column name
      value - the value to insert
    • InsertValue

      public InsertValue(String columnName)
      Constructs an insert value with the specified column name and null value.
      Parameters:
      columnName - the column name
  • Method Details

    • getColumnName

      public String getColumnName()
      Returns the column name.
      Returns:
      the column name
    • getValue

      public Object getValue()
      Returns the value.
      Returns:
      the value
    • collectSqlFragment

      public void collectSqlFragment(CodeWriter writer)
      Description copied from class: SqlPart
      Writes this part's SQL to the writer; used by SqlPart.getSqlFragment() and by enclosing parts.
      Specified by:
      collectSqlFragment in class SqlPart