public class SQLSerializer extends SerializerBase<SQLSerializer>
Modifier and Type | Class and Description |
---|---|
protected static class |
SQLSerializer.Stage |
Modifier and Type | Field and Description |
---|---|
protected SQLSerializer.Stage |
stage |
Constructor and Description |
---|
SQLSerializer(Configuration conf) |
SQLSerializer(Configuration conf,
boolean dml) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendAsColumnName(Path<?> path,
boolean precededByDot) |
protected void |
appendSchemaName(String schema) |
protected void |
appendTableName(String table,
boolean precededByDot) |
List<Path<?>> |
getConstantPaths() |
List<Object> |
getConstants() |
protected SQLTemplates |
getTemplates() |
void |
handle(String template,
Object... args) |
protected void |
handleJoinTarget(JoinExpression je) |
protected void |
handleOrderBy(List<OrderSpecifier<?>> orderBy) |
void |
serialize(QueryMetadata metadata,
boolean forCountRow) |
void |
serializeDelete(QueryMetadata metadata,
RelationalPath<?> entity) |
void |
serializeInsert(QueryMetadata metadata,
RelationalPath<?> entity,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
serializeMerge(QueryMetadata metadata,
RelationalPath<?> entity,
List<Path<?>> keys,
List<Path<?>> columns,
List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
serializeUnion(Expression<?> union,
QueryMetadata metadata,
boolean unionAll) |
void |
serializeUpdate(QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates) |
protected void |
setDmlWithSchema(boolean b) |
protected void |
setSkipParent(boolean b) |
void |
setUseLiterals(boolean useLiterals) |
Void |
visit(ParamExpression<?> param,
Void context) |
Void |
visit(Path<?> path,
Void context) |
Void |
visit(SubQueryExpression<?> query,
Void context) |
Void |
visit(TemplateExpression<?> expr,
Void context) |
void |
visitConstant(Object constant) |
protected void |
visitOperation(Class<?> type,
Operator<?> operator,
List<? extends Expression<?>> args) |
append, getConstantPrefix, getConstantToLabel, getLength, getTemplate, handle, handle, handle, handle, handle, handleTemplate, insert, prepend, serialize, serialize, setAnonParamPrefix, setConstantPrefix, setNormalize, setParamPrefix, setStrict, toString, visit, visit, visit
protected SQLSerializer.Stage stage
public SQLSerializer(Configuration conf)
public SQLSerializer(Configuration conf, boolean dml)
protected void appendAsColumnName(Path<?> path, boolean precededByDot)
protected void appendSchemaName(String schema)
protected void appendTableName(String table, boolean precededByDot)
protected SQLTemplates getTemplates()
protected void handleJoinTarget(JoinExpression je)
public void serialize(QueryMetadata metadata, boolean forCountRow)
protected void handleOrderBy(List<OrderSpecifier<?>> orderBy)
public void serializeDelete(QueryMetadata metadata, RelationalPath<?> entity)
public void serializeMerge(QueryMetadata metadata, RelationalPath<?> entity, List<Path<?>> keys, List<Path<?>> columns, List<Expression<?>> values, @Nullable SubQueryExpression<?> subQuery)
public void serializeInsert(QueryMetadata metadata, RelationalPath<?> entity, List<Path<?>> columns, List<Expression<?>> values, @Nullable SubQueryExpression<?> subQuery)
public void serializeUpdate(QueryMetadata metadata, RelationalPath<?> entity, List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates)
public void serializeUnion(Expression<?> union, QueryMetadata metadata, boolean unionAll)
public void visitConstant(Object constant)
visitConstant
in class SerializerBase<SQLSerializer>
public Void visit(ParamExpression<?> param, Void context)
visit
in interface Visitor<Void,Void>
visit
in class SerializerBase<SQLSerializer>
public Void visit(Path<?> path, Void context)
visit
in interface Visitor<Void,Void>
visit
in class SerializerBase<SQLSerializer>
public Void visit(SubQueryExpression<?> query, Void context)
public Void visit(TemplateExpression<?> expr, Void context)
visit
in interface Visitor<Void,Void>
visit
in class SerializerBase<SQLSerializer>
protected void visitOperation(Class<?> type, Operator<?> operator, List<? extends Expression<?>> args)
visitOperation
in class SerializerBase<SQLSerializer>
public void setUseLiterals(boolean useLiterals)
protected void setSkipParent(boolean b)
protected void setDmlWithSchema(boolean b)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.