Class OrmStatement

All Implemented Interfaces:
IStatement
Direct Known Subclasses:
SaveStatement

public class OrmStatement extends NamedSqlStatement implements IStatement
  • Constructor Details

    • OrmStatement

      public OrmStatement(String sqlString)
      The old way of creating a statement, incurs overhead from using regex to parse the SQL string to replace and extract parameter names.
      Parameters:
      sqlString - The SQL string with named parameters such as :name
    • OrmStatement

      public OrmStatement(String sqlString, Supplier<List<String>> parameterNamesSupplier)
      The new way of creating a statement, improves performance by using a Setter to get parameter names instead of parsing them from the SQL string.
      Parameters:
      sqlString - The SQL string with placeholders, usually ?
      parameterNamesSupplier - Provider for the parameter names which would usually be parsed from the SQL string
    • OrmStatement

      public OrmStatement()
  • Method Details