Package de.jaggl.sqlbuilder.core.dialect
Class DefaultDialect
- java.lang.Object
-
- de.jaggl.sqlbuilder.core.dialect.DefaultDialect
-
- All Implemented Interfaces:
Dialect
- Direct Known Subclasses:
MySqlDialect,SybaseDialect
public abstract class DefaultDialect extends Object implements Dialect
- Since:
- 2.0.0
- Author:
- Martin Schumacher
-
-
Constructor Summary
Constructors Constructor Description DefaultDialect()
-
Method Summary
-
-
-
Method Detail
-
build
public final String build(Insert insert, Indentation indentation)
-
build
public final String build(Update update, Indentation indentation)
-
build
public final String build(Delete delete, Indentation indentation)
-
build
public final String build(Select select, Indentation indentation)
-
build
public String build(CreateTable createTable, Indentation indentation)
-
appendUpdateStatement
protected void appendUpdateStatement(StringBuilder builder, Update update, BuildingContext context, Indentation indentation)
-
appendInsertStatement
protected void appendInsertStatement(StringBuilder builder, Insert insert, BuildingContext context, Indentation indentation)
-
appendDeleteStatement
protected void appendDeleteStatement(StringBuilder builder, Delete delete, BuildingContext context, Indentation indentation)
-
appendSelectStatement
protected void appendSelectStatement(StringBuilder builder, Select select, BuildingContext context, Indentation indentation)
-
appendDistinct
protected void appendDistinct(StringBuilder builder, boolean isDistinct, BuildingContext context, Indentation indentation)
- Parameters:
builder- theStringBuilderto append the distinctisDistinct- whether to append the distinct or notcontext- may be used in extending implementationindentation- may be used in extending implementation
-
appendSelectables
protected void appendSelectables(StringBuilder builder, List<Selectable> selectables, BuildingContext context, Indentation indentation)
-
appendQueryables
protected void appendQueryables(StringBuilder builder, Queryable queryable, BuildingContext context, Indentation indentation)
-
appendJoins
protected void appendJoins(StringBuilder builder, List<Joinable> joins, BuildingContext context, Indentation indentation)
-
appendConditions
protected void appendConditions(String keyword, StringBuilder builder, Condition condition, ConditionType whereConditionType, BuildingContext context, Indentation indentation)
-
appendGrouping
protected void appendGrouping(StringBuilder builder, List<Groupable> groupBys, BuildingContext context, Indentation indentation)
-
appendOrdering
protected void appendOrdering(StringBuilder builder, List<OrderBy> orderBys, BuildingContext context, Indentation indentation)
-
buildGroupBy
protected static String buildGroupBy(List<Groupable> groupBys, BuildingContext context, Indentation indentation)
-
buildOrderBy
protected static String buildOrderBy(List<OrderBy> orderBys, BuildingContext context, Indentation indentation)
-
appendLimit
protected void appendLimit(StringBuilder builder, Limit limit, BuildingContext context, Indentation indentation)
-
appendUpdateValues
protected void appendUpdateValues(StringBuilder builder, Map<Column,Valuable> values, BuildingContext context, Indentation indentation)
-
appendAlias
protected void appendAlias(StringBuilder builder, String alias, BuildingContext context)
-
getDateFormatter
public DateTimeFormatter getDateFormatter()
- Specified by:
getDateFormatterin interfaceDialect
-
getDateTimeFormatter
public DateTimeFormatter getDateTimeFormatter()
- Specified by:
getDateTimeFormatterin interfaceDialect
-
getTimeFormatter
public DateTimeFormatter getTimeFormatter()
- Specified by:
getTimeFormatterin interfaceDialect
-
-