- java.lang.Object
-
- io.github.mmm.entity.bean.sql.StatementMarshalling
-
- All Implemented Interfaces:
io.github.mmm.marshall.Marshaller<Statement<?>>,io.github.mmm.marshall.Marshalling<Statement<?>>,io.github.mmm.marshall.Unmarshaller<Statement<?>>
public class StatementMarshalling extends Object implements io.github.mmm.marshall.Marshalling<Statement<?>>
Marshallingfor SQLStatements.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStatementMarshalling()The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractStatement<?>createStatement(String name)static StatementMarshallingget()Statement<?>readObject(io.github.mmm.marshall.StructuredReader reader)voidwriteObject(io.github.mmm.marshall.StructuredWriter writer, Statement<?> statement)
-
-
-
Method Detail
-
writeObject
public void writeObject(io.github.mmm.marshall.StructuredWriter writer, Statement<?> statement)- Specified by:
writeObjectin interfaceio.github.mmm.marshall.Marshaller<Statement<?>>
-
readObject
public Statement<?> readObject(io.github.mmm.marshall.StructuredReader reader)
- Specified by:
readObjectin interfaceio.github.mmm.marshall.Unmarshaller<Statement<?>>
-
createStatement
protected AbstractStatement<?> createStatement(String name)
- Parameters:
name- the name of the first property of the statement. This should always correspond to theStartClauseand therefore identify theStatement.- Returns:
- the new
AbstractStatementwith the givenname.
-
get
public static StatementMarshalling get()
- Returns:
- the singleton instance of this
StatementMarshalling.
-
-