com.mysema.query.sql
Class SQLSerializer
java.lang.Object
com.mysema.query.support.SerializerBase<SQLSerializer>
com.mysema.query.sql.SQLSerializer
- All Implemented Interfaces:
- com.mysema.query.types.Visitor<Void,Void>
public class SQLSerializer
- extends com.mysema.query.support.SerializerBase<SQLSerializer>
SqlSerializer serializes Querydsl queries into SQL
- Author:
- tiwe
Method Summary |
List<com.mysema.query.types.Path<?>> |
getConstantPaths()
|
List<Object> |
getConstants()
|
protected SQLTemplates |
getTemplates()
|
void |
serialize(com.mysema.query.QueryMetadata metadata,
boolean forCountRow)
|
void |
serializeForDelete(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity)
|
void |
serializeForInsert(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.query.types.Path<?>> columns,
List<com.mysema.query.types.Expression<?>> values,
com.mysema.query.types.SubQueryExpression<?> subQuery)
|
void |
serializeForMerge(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.query.types.Path<?>> keys,
List<com.mysema.query.types.Path<?>> columns,
List<com.mysema.query.types.Expression<?>> values,
com.mysema.query.types.SubQueryExpression<?> subQuery)
|
void |
serializeForUpdate(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.commons.lang.Pair<com.mysema.query.types.Path<?>,com.mysema.query.types.Expression<?>>> updates)
|
void |
serializeUnion(com.mysema.query.types.SubQueryExpression[] sqs,
com.mysema.query.QueryMetadata metadata,
boolean unionAll)
|
Void |
visit(com.mysema.query.types.Constant<?> expr,
Void context)
|
Void |
visit(com.mysema.query.types.ParamExpression<?> param,
Void context)
|
Void |
visit(com.mysema.query.types.Path<?> path,
Void context)
|
Void |
visit(com.mysema.query.types.SubQueryExpression<?> query,
Void context)
|
Void |
visit(com.mysema.query.types.TemplateExpression<?> expr,
Void context)
|
protected void |
visitOperation(Class<?> type,
com.mysema.query.types.Operator<?> operator,
List<? extends com.mysema.query.types.Expression<?>> args)
|
Methods inherited from class com.mysema.query.support.SerializerBase |
append, appendAsString, getConstantPrefix, getConstantToLabel, getTemplate, handle, handle, handle, normalize, prepend, serialize, serialize, setAnonParamPrefix, setConstantPrefix, setNormalize, setParamPrefix, toString, visit, visit |
stage
protected SQLSerializer.Stage stage
SQLSerializer
public SQLSerializer(SQLTemplates templates)
SQLSerializer
public SQLSerializer(SQLTemplates templates,
boolean dml)
SQLSerializer
public SQLSerializer(SQLTemplates templates,
boolean dml,
boolean dry)
getConstants
public List<Object> getConstants()
getConstantPaths
public List<com.mysema.query.types.Path<?>> getConstantPaths()
getTemplates
protected SQLTemplates getTemplates()
serialize
public void serialize(com.mysema.query.QueryMetadata metadata,
boolean forCountRow)
serializeForDelete
public void serializeForDelete(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity)
serializeForMerge
public void serializeForMerge(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.query.types.Path<?>> keys,
List<com.mysema.query.types.Path<?>> columns,
List<com.mysema.query.types.Expression<?>> values,
@Nullable
com.mysema.query.types.SubQueryExpression<?> subQuery)
serializeForInsert
public void serializeForInsert(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.query.types.Path<?>> columns,
List<com.mysema.query.types.Expression<?>> values,
@Nullable
com.mysema.query.types.SubQueryExpression<?> subQuery)
serializeForUpdate
public void serializeForUpdate(com.mysema.query.QueryMetadata metadata,
RelationalPath<?> entity,
List<com.mysema.commons.lang.Pair<com.mysema.query.types.Path<?>,com.mysema.query.types.Expression<?>>> updates)
serializeUnion
public void serializeUnion(com.mysema.query.types.SubQueryExpression[] sqs,
com.mysema.query.QueryMetadata metadata,
boolean unionAll)
visit
public Void visit(com.mysema.query.types.Constant<?> expr,
Void context)
- Specified by:
visit
in interface com.mysema.query.types.Visitor<Void,Void>
- Overrides:
visit
in class com.mysema.query.support.SerializerBase<SQLSerializer>
visit
public Void visit(com.mysema.query.types.ParamExpression<?> param,
Void context)
- Specified by:
visit
in interface com.mysema.query.types.Visitor<Void,Void>
- Overrides:
visit
in class com.mysema.query.support.SerializerBase<SQLSerializer>
visit
public Void visit(com.mysema.query.types.Path<?> path,
Void context)
- Specified by:
visit
in interface com.mysema.query.types.Visitor<Void,Void>
- Overrides:
visit
in class com.mysema.query.support.SerializerBase<SQLSerializer>
visit
public Void visit(com.mysema.query.types.SubQueryExpression<?> query,
Void context)
visit
public Void visit(com.mysema.query.types.TemplateExpression<?> expr,
Void context)
- Specified by:
visit
in interface com.mysema.query.types.Visitor<Void,Void>
- Overrides:
visit
in class com.mysema.query.support.SerializerBase<SQLSerializer>
visitOperation
protected void visitOperation(Class<?> type,
com.mysema.query.types.Operator<?> operator,
List<? extends com.mysema.query.types.Expression<?>> args)
- Overrides:
visitOperation
in class com.mysema.query.support.SerializerBase<SQLSerializer>
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.