java.lang.Object
io.github.mmm.orm.statement.AbstractDbStatement<E>
- Type Parameters:
E- type of theentity.
- 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
Abstract base implementation of an SQL
DbStatement that may be executed to the database.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddClauses(Consumer<AbstractDbClause> consumer) protected abstract AliasMapDbStatement<?> read(io.github.mmm.marshall.StructuredReader reader) toString()voidwrite(io.github.mmm.marshall.StructuredWriter writer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.orm.statement.DbStatement
getStart, getTypeMethods inherited from interface io.github.mmm.marshall.MarshallableObject
writeObjectMethods inherited from interface io.github.mmm.marshall.UnmarshallableObject
readObject
-
Constructor Details
-
AbstractDbStatement
public AbstractDbStatement()
-
-
Method Details
-
getClauses
- Specified by:
getClausesin interfaceDbStatement<E>- Returns:
- the
ListofDbClauses thisDbStatementis composed of. Please note that this is a generic API. Specific sub-classes implementingDbStatementwill have dedicated getters for each type ofDbClause.
-
addClauses
-
write
public void write(io.github.mmm.marshall.StructuredWriter writer) - Specified by:
writein interfaceio.github.mmm.marshall.MarshallableObject
-
read
- Specified by:
readin interfaceio.github.mmm.marshall.UnmarshallableObject
-
getAliasMap
- Returns:
- the
AliasMapof this statement.
-
toString
-