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