Module io.github.mmm.entity.bean
Package io.github.mmm.entity.bean.sql
Class AbstractStatement<E extends EntityBean>
- java.lang.Object
-
- io.github.mmm.marshall.AbstractMarshallingObject
-
- io.github.mmm.entity.bean.sql.AbstractStatement<E>
-
- Type Parameters:
E
- type of theentity
.
- All Implemented Interfaces:
Statement<E>
,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>
- Direct Known Subclasses:
DeleteStatement
,InsertStatement
,SelectStatement
,UpdateStatement
public abstract class AbstractStatement<E extends EntityBean> extends io.github.mmm.marshall.AbstractMarshallingObject implements Statement<E>
Abstract base implementation of an SQLStatement
that may be executed to the database.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractStatement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addClauses(List<Clause> list)
List<Clause>
getClauses()
protected void
readProperty(io.github.mmm.marshall.StructuredReader reader, String name)
String
toString()
protected void
writeProperties(io.github.mmm.marshall.StructuredWriter writer)
-
-
-
Method Detail
-
getClauses
public List<Clause> getClauses()
- Specified by:
getClauses
in interfaceStatement<E extends EntityBean>
- Returns:
- the
List
ofClause
s thisStatement
is composed of. Please note that this is a generic API. Specific sub-classes implementingStatement
will have dedicated getters for each type ofClause
.
-
addClauses
protected abstract void addClauses(List<Clause> list)
- Parameters:
list
- theList
where toadd
theClause
s.- See Also:
getClauses()
-
writeProperties
protected void writeProperties(io.github.mmm.marshall.StructuredWriter writer)
- Specified by:
writeProperties
in classio.github.mmm.marshall.AbstractMarshallingObject
-
readProperty
protected void readProperty(io.github.mmm.marshall.StructuredReader reader, String name)
- Specified by:
readProperty
in classio.github.mmm.marshall.AbstractMarshallingObject
-
-