com.mysema.query.jpa
Class JPQLSerializer

java.lang.Object
  extended by com.mysema.query.support.SerializerBase<JPQLSerializer>
      extended by com.mysema.query.jpa.JPQLSerializer
All Implemented Interfaces:
Visitor<Void,Void>

public class JPQLSerializer
extends SerializerBase<JPQLSerializer>

JPQLSerializer serializes Querydsl expressions into JPQL syntax.

Author:
tiwe

Constructor Summary
JPQLSerializer(JPQLTemplates templates)
           
JPQLSerializer(JPQLTemplates templates, javax.persistence.EntityManager em)
           
 
Method Summary
 void serialize(QueryMetadata metadata, boolean forCountRow, String projection)
           
 void serializeForDelete(QueryMetadata md)
           
 void serializeForUpdate(QueryMetadata md)
           
 Void visit(Constant<?> expr, Void context)
           
 Void visit(FactoryExpression<?> expr, Void context)
           
 Void visit(ParamExpression<?> param, Void context)
           
 Void visit(Path<?> expr, Void context)
           
 Void visit(SubQueryExpression<?> query, Void context)
           
protected  void visitOperation(Class<?> type, Operator<?> operator, List<? extends 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPQLSerializer

public JPQLSerializer(JPQLTemplates templates)

JPQLSerializer

public JPQLSerializer(JPQLTemplates templates,
                      javax.persistence.EntityManager em)
Method Detail

serialize

public void serialize(QueryMetadata metadata,
                      boolean forCountRow,
                      @Nullable
                      String projection)

serializeForDelete

public void serializeForDelete(QueryMetadata md)

serializeForUpdate

public void serializeForUpdate(QueryMetadata md)

visit

public Void visit(Constant<?> expr,
                  Void context)
Specified by:
visit in interface Visitor<Void,Void>
Overrides:
visit in class SerializerBase<JPQLSerializer>

visit

public Void visit(ParamExpression<?> param,
                  Void context)
Specified by:
visit in interface Visitor<Void,Void>
Overrides:
visit in class SerializerBase<JPQLSerializer>

visit

public Void visit(SubQueryExpression<?> query,
                  Void context)

visit

public Void visit(Path<?> expr,
                  Void context)
Specified by:
visit in interface Visitor<Void,Void>
Overrides:
visit in class SerializerBase<JPQLSerializer>

visit

public Void visit(FactoryExpression<?> expr,
                  Void context)
Specified by:
visit in interface Visitor<Void,Void>
Overrides:
visit in class SerializerBase<JPQLSerializer>

visitOperation

protected void visitOperation(Class<?> type,
                              Operator<?> operator,
                              List<? extends Expression<?>> args)
Overrides:
visitOperation in class SerializerBase<JPQLSerializer>


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.