java.lang.Object
org.seasar.doma.jdbc.criteria.statement.EmptySql
All Implemented Interfaces:
Sql<InParameter<?>>

public class EmptySql extends Object implements Sql<InParameter<?>>
  • Constructor Details

    • EmptySql

      public EmptySql(SqlKind sqlKind)
  • Method Details

    • getKind

      public SqlKind getKind()
      Description copied from interface: Sql
      Returns the kind of the SQL.
      Specified by:
      getKind in interface Sql<InParameter<?>>
      Returns:
      the kind of the SQL
    • getRawSql

      public String getRawSql()
      Description copied from interface: Sql
      Returns the raw SQL string.

      The bind variables are displayed as ?.

      Specified by:
      getRawSql in interface Sql<InParameter<?>>
      Returns:
      the raw SQL string
    • getFormattedSql

      public String getFormattedSql()
      Description copied from interface: Sql
      Returns the formatted SQL string.

      The bind variables are replaced with the string representations of the parameters.

      Specified by:
      getFormattedSql in interface Sql<InParameter<?>>
      Returns:
      the formatted SQL string
    • getSqlFilePath

      public String getSqlFilePath()
      Description copied from interface: Sql
      Returns the file path that contains this SQL.
      Specified by:
      getSqlFilePath in interface Sql<InParameter<?>>
      Returns:
      the file path that contains this SQL、or null if this SQL is auto-generated
    • getParameters

      public List<InParameter<?>> getParameters()
      Description copied from interface: Sql
      Returns the parameter list.
      Specified by:
      getParameters in interface Sql<InParameter<?>>
      Returns:
      the parameter list
    • getSqlLogType

      public SqlLogType getSqlLogType()
      Description copied from interface: Sql
      Returns the type of the SQL log.
      Specified by:
      getSqlLogType in interface Sql<InParameter<?>>
      Returns:
      the type of the SQL log