Class AbstractDbStatement<E>

java.lang.Object
io.github.mmm.orm.statement.AbstractDbStatement<E>
Type Parameters:
E - type of the entity.
All Implemented Interfaces:
io.github.mmm.marshall.MarshallableObject, io.github.mmm.marshall.Marshaller<Object>, io.github.mmm.marshall.Marshalling<Object>, io.github.mmm.marshall.MarshallingObject, io.github.mmm.marshall.UnmarshallableObject, io.github.mmm.marshall.Unmarshaller<Object>, DbStatement<E>
Direct Known Subclasses:
CreateIndexStatement, CreateSequenceStatement, CreateTableStatement, DeleteStatement, IntoValuesStatement, SelectStatement, UpdateStatement

public abstract class AbstractDbStatement<E> extends Object implements DbStatement<E>
Abstract base implementation of an SQL DbStatement that may be executed to the database.
Since:
1.0.0
  • Constructor Details

    • AbstractDbStatement

      public AbstractDbStatement()
  • Method Details

    • getClauses

      public List<? extends DbClause> getClauses()
      Specified by:
      getClauses in interface DbStatement<E>
      Returns:
      the List of DbClauses this DbStatement is composed of. Please note that this is a generic API. Specific sub-classes implementing DbStatement will have dedicated getters for each type of DbClause.
    • addClauses

      protected abstract void addClauses(Consumer<AbstractDbClause> consumer)
      Parameters:
      consumer - the List where to add the DbClauses.
      See Also:
    • write

      public void write(io.github.mmm.marshall.StructuredWriter writer)
      Specified by:
      write in interface io.github.mmm.marshall.MarshallableObject
    • read

      public DbStatement<?> read(io.github.mmm.marshall.StructuredReader reader)
      Specified by:
      read in interface io.github.mmm.marshall.UnmarshallableObject
    • getAliasMap

      protected abstract AliasMap getAliasMap()
      Returns:
      the AliasMap of this statement.
    • toString

      public String toString()
      Overrides:
      toString in class Object