public class JPQLSerializer extends SerializerBase<JPQLSerializer>
JPQLSerializer
serializes Querydsl expressions into JPQL syntax.Constructor and Description |
---|
JPQLSerializer(JPQLTemplates templates) |
JPQLSerializer(JPQLTemplates templates,
javax.persistence.EntityManager em) |
Modifier and Type | Method and Description |
---|---|
void |
serialize(QueryMetadata metadata,
boolean forCountRow,
String projection) |
void |
serializeForDelete(QueryMetadata md) |
void |
serializeForUpdate(QueryMetadata md,
Map<Path<?>,Expression<?>> updates) |
Void |
visit(ParamExpression<?> param,
Void context)
Visit a ParamExpression instance with the given context
|
Void |
visit(Path<?> expr,
Void context)
Visit a Path instance with the given context
|
Void |
visit(SubQueryExpression<?> query,
Void context)
Visit a SubQueryExpression instance with the given context
|
void |
visitConstant(Object constant) |
void |
visitLiteral(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, visit
public JPQLSerializer(JPQLTemplates templates)
public JPQLSerializer(JPQLTemplates templates, javax.persistence.EntityManager em)
public void serialize(QueryMetadata metadata, boolean forCountRow, @Nullable String projection)
public void serializeForDelete(QueryMetadata md)
public void serializeForUpdate(QueryMetadata md, Map<Path<?>,Expression<?>> updates)
public void visitConstant(Object constant)
visitConstant
in class SerializerBase<JPQLSerializer>
public void visitLiteral(Object constant)
public Void visit(ParamExpression<?> param, Void context)
Visitor
visit
in interface Visitor<Void,Void>
visit
in class SerializerBase<JPQLSerializer>
param
- expression to visitcontext
- context of the visit or null, if not usedpublic Void visit(SubQueryExpression<?> query, Void context)
Visitor
query
- expression to visitcontext
- context of the visit or null, if not usedpublic Void visit(Path<?> expr, Void context)
Visitor
visit
in interface Visitor<Void,Void>
visit
in class SerializerBase<JPQLSerializer>
expr
- expression to visitcontext
- context of the visit or null, if not usedprotected void visitOperation(Class<?> type, Operator operator, List<? extends Expression<?>> args)
visitOperation
in class SerializerBase<JPQLSerializer>
Copyright © 2007–2016 Querydsl. All rights reserved.