Class JPQLNextSerializer

java.lang.Object
com.querydsl.core.support.SerializerBase<com.querydsl.jpa.JPQLSerializer>
com.querydsl.jpa.JPQLSerializer
com.blazebit.persistence.querydsl.JPQLNextSerializer
All Implemented Interfaces:
com.querydsl.core.types.Visitor<Void,Void>

public class JPQLNextSerializer extends com.querydsl.jpa.JPQLSerializer
Slightly adjusted JPQLSerializer implementations that has basic support for rendering set operations. Its only used for implementing JPAQueryBase.toString() and debugging purposes. The actual rendering of the query during execution is done in BlazeCriteriaBuilderRenderer.
Since:
1.5.0
Author:
Jan-Willem Gmelig Meyling
  • Field Summary

    Fields inherited from class com.querydsl.core.support.SerializerBase

    constants, constantToLabel
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    JPQLNextSerializer(com.querydsl.jpa.JPQLTemplates templates)
     
    JPQLNextSerializer(com.querydsl.jpa.JPQLTemplates templates, javax.persistence.EntityManager em)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the serialization buffer for serializing expression fragments rather than full queries.
    void
    serialize(com.querydsl.core.QueryMetadata metadata, boolean forCountRow, String projection)
     
    Take and clear the buffer.
    visit(com.querydsl.core.types.SubQueryExpression<?> query, Void context)
     
    protected void
    visitOperation(Class<?> type, com.querydsl.core.types.Operator operator, List<? extends com.querydsl.core.types.Expression<?>> args)
     

    Methods inherited from class com.querydsl.jpa.JPQLSerializer

    serializeConstant, serializeForDelete, serializeForInsert, serializeForUpdate, visit, visitConstant, visitLiteral

    Methods inherited from class com.querydsl.core.support.SerializerBase

    append, getConstantLabel, getConstantPrefix, getConstants, getConstantToLabel, getLength, getTemplate, handle, handle, handle, handle, handle, handleTemplate, insert, prepend, serialize, serialize, setAnonParamPrefix, setConstantPrefix, setNormalize, setParamPrefix, setStrict, toString, visit, visit, visit, visit, visit

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JPQLNextSerializer

      public JPQLNextSerializer()
    • JPQLNextSerializer

      public JPQLNextSerializer(com.querydsl.jpa.JPQLTemplates templates)
    • JPQLNextSerializer

      public JPQLNextSerializer(com.querydsl.jpa.JPQLTemplates templates, javax.persistence.EntityManager em)
  • Method Details

    • serialize

      public void serialize(com.querydsl.core.QueryMetadata metadata, boolean forCountRow, @Nullable String projection)
      Overrides:
      serialize in class com.querydsl.jpa.JPQLSerializer
    • visit

      public Void visit(com.querydsl.core.types.SubQueryExpression<?> query, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Void,Void>
      Overrides:
      visit in class com.querydsl.jpa.JPQLSerializer
    • visitOperation

      protected void visitOperation(Class<?> type, com.querydsl.core.types.Operator operator, List<? extends com.querydsl.core.types.Expression<?>> args)
      Overrides:
      visitOperation in class com.querydsl.jpa.JPQLSerializer
    • clearBuffer

      public void clearBuffer()
      Clear the serialization buffer for serializing expression fragments rather than full queries.
    • takeBuffer

      public String takeBuffer()
      Take and clear the buffer.
      Returns:
      The removed buffer contents.