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 |
---|---|
java.util.List<Path<?>> |
getConstantPaths() |
java.util.List<java.lang.Object> |
getConstants() |
protected SQLTemplates |
getTemplates() |
void |
handle(java.lang.String template,
java.lang.Object... args) |
void |
serialize(QueryMetadata metadata,
boolean forCountRow) |
void |
serializeForDelete(QueryMetadata metadata,
RelationalPath<?> entity) |
void |
serializeForInsert(QueryMetadata metadata,
RelationalPath<?> entity,
java.util.List<Path<?>> columns,
java.util.List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
serializeForMerge(QueryMetadata metadata,
RelationalPath<?> entity,
java.util.List<Path<?>> keys,
java.util.List<Path<?>> columns,
java.util.List<Expression<?>> values,
SubQueryExpression<?> subQuery) |
void |
serializeForUpdate(QueryMetadata metadata,
RelationalPath<?> entity,
java.util.List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates) |
void |
serializeUnion(Expression<?> union,
QueryMetadata metadata,
boolean unionAll) |
java.lang.Void |
visit(ParamExpression<?> param,
java.lang.Void context) |
java.lang.Void |
visit(Path<?> path,
java.lang.Void context) |
java.lang.Void |
visit(SubQueryExpression<?> query,
java.lang.Void context) |
java.lang.Void |
visit(TemplateExpression<?> expr,
java.lang.Void context) |
void |
visitConstant(java.lang.Object constant) |
protected void |
visitOperation(java.lang.Class<?> type,
Operator<?> operator,
java.util.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)
public java.util.List<java.lang.Object> getConstants()
public java.util.List<Path<?>> getConstantPaths()
protected SQLTemplates getTemplates()
public void handle(java.lang.String template, java.lang.Object... args)
public void serialize(QueryMetadata metadata, boolean forCountRow)
public void serializeForDelete(QueryMetadata metadata, RelationalPath<?> entity)
public void serializeForMerge(QueryMetadata metadata, RelationalPath<?> entity, java.util.List<Path<?>> keys, java.util.List<Path<?>> columns, java.util.List<Expression<?>> values, @Nullable SubQueryExpression<?> subQuery)
public void serializeForInsert(QueryMetadata metadata, RelationalPath<?> entity, java.util.List<Path<?>> columns, java.util.List<Expression<?>> values, @Nullable SubQueryExpression<?> subQuery)
public void serializeForUpdate(QueryMetadata metadata, RelationalPath<?> entity, java.util.List<com.mysema.commons.lang.Pair<Path<?>,Expression<?>>> updates)
public void serializeUnion(Expression<?> union, QueryMetadata metadata, boolean unionAll)
public void visitConstant(java.lang.Object constant)
visitConstant
in class SerializerBase<SQLSerializer>
public java.lang.Void visit(ParamExpression<?> param, java.lang.Void context)
visit
in interface Visitor<java.lang.Void,java.lang.Void>
visit
in class SerializerBase<SQLSerializer>
public java.lang.Void visit(Path<?> path, java.lang.Void context)
visit
in interface Visitor<java.lang.Void,java.lang.Void>
visit
in class SerializerBase<SQLSerializer>
public java.lang.Void visit(SubQueryExpression<?> query, java.lang.Void context)
public java.lang.Void visit(TemplateExpression<?> expr, java.lang.Void context)
visit
in interface Visitor<java.lang.Void,java.lang.Void>
visit
in class SerializerBase<SQLSerializer>
protected void visitOperation(java.lang.Class<?> type, Operator<?> operator, java.util.List<? extends Expression<?>> args)
visitOperation
in class SerializerBase<SQLSerializer>
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.