public abstract class AbstractStatementBuilder<T> extends Object implements StatementBuilder<T>
| Modifier and Type | Field and Description |
|---|---|
protected AbstractBatchHandler<T> |
batchHandler |
protected String |
BRACKET_END |
protected String |
BRACKET_START |
protected String |
FALSE |
protected String |
NULL |
protected String |
QUOTE |
protected String |
SEPARATOR |
protected String |
TRUE |
| Constructor and Description |
|---|
AbstractStatementBuilder(AbstractBatchHandler<T> batchHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
defaultEncode(Object value) |
protected String |
encodeBoolean(Boolean value) |
protected String |
encodeDate(Date value) |
protected String |
encodeDouble(Double value) |
protected String |
encodeInteger(Integer value) |
protected String |
encodeString(String value) |
String |
getDeleteStatement(T object)
Creates a delete SQL statement.
|
String |
getNoColumnInsertStatementOpening()
Creates the opening of an insert SQL statement with no columns defined.
|
String |
getSelectStatement(T arg)
Creates a select SQL statement.
|
String |
getUniquenessClause(T object)
Creates a SQL where / and clause for unique rows.
|
String |
getUniquenessStatement(T object)
Creates a select SQL statement.
|
String |
getUpdateStatement(T object)
Creates an update SQL statement.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDoubleColumnType, getInsertStatementOpening, getInsertStatementValuesprotected AbstractBatchHandler<T> batchHandler
protected final String QUOTE
protected final String NULL
protected final String TRUE
protected final String FALSE
protected final String SEPARATOR
protected final String BRACKET_START
protected final String BRACKET_END
public AbstractStatementBuilder(AbstractBatchHandler<T> batchHandler)
public String getNoColumnInsertStatementOpening()
StatementBuildergetNoColumnInsertStatementOpening in interface StatementBuilder<T>public String getSelectStatement(T arg)
StatementBuildergetSelectStatement in interface StatementBuilder<T>arg - the argument object.public String getUpdateStatement(T object)
StatementBuildergetUpdateStatement in interface StatementBuilder<T>object - the object.public String getDeleteStatement(T object)
StatementBuildergetDeleteStatement in interface StatementBuilder<T>object - the object.public String getUniquenessStatement(T object)
StatementBuildergetUniquenessStatement in interface StatementBuilder<T>object - the object.public String getUniquenessClause(T object)
StatementBuildergetUniquenessClause in interface StatementBuilder<T>object - the object.Copyright © 2016 UiO. All rights reserved.