Class CouchbaseDocumentSerializer

java.lang.Object
com.querydsl.couchbase.document.CouchbaseDocumentSerializer
All Implemented Interfaces:
com.querydsl.core.types.Visitor<Object,Void>
Direct Known Subclasses:
SpringDataCouchbaseSerializer

public abstract class CouchbaseDocumentSerializer extends Object implements com.querydsl.core.types.Visitor<Object,Void>
Serializes the given Querydsl query to a Document query for Couchbase.
Author:
Michael Reiche, Tigran Babloyan
  • Constructor Details

    • CouchbaseDocumentSerializer

      public CouchbaseDocumentSerializer()
  • Method Details

    • handle

      public Object handle(com.querydsl.core.types.Expression<?> expression)
    • toSort

      public Sort toSort(List<com.querydsl.core.types.OrderSpecifier<?>> orderBys)
    • visit

      public Object visit(com.querydsl.core.types.Constant<?> expr, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Object,Void>
    • visit

      public Object visit(com.querydsl.core.types.TemplateExpression<?> expr, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Object,Void>
    • visit

      public Object visit(com.querydsl.core.types.FactoryExpression<?> expr, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Object,Void>
    • asDBKey

      protected String asDBKey(com.querydsl.core.types.Operation<?> expr, int index)
    • asDBValue

      protected Object asDBValue(com.querydsl.core.types.Operation<?> expr, int index)
    • asDocument

      protected QueryCriteriaDefinition asDocument(String key, Object value)
    • visit

      public Object visit(com.querydsl.core.types.Operation<?> expr, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Object,Void>
    • isImplicitObjectIdConversion

      protected boolean isImplicitObjectIdConversion()
    • asReferenceKey

      protected DBRef asReferenceKey(Class<?> entity, Object id)
    • asReference

      protected abstract DBRef asReference(Object constant)
    • isReference

      protected abstract boolean isReference(com.querydsl.core.types.Path<?> arg)
    • isId

      protected boolean isId(com.querydsl.core.types.Path<?> arg)
    • visit

      public String visit(com.querydsl.core.types.Path<?> expr, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Object,Void>
    • getKeyForPath

      protected String getKeyForPath(com.querydsl.core.types.Path<?> expr, com.querydsl.core.types.PathMetadata metadata)
    • visit

      public Object visit(com.querydsl.core.types.SubQueryExpression<?> expr, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Object,Void>
    • visit

      public Object visit(com.querydsl.core.types.ParamExpression<?> expr, Void context)
      Specified by:
      visit in interface com.querydsl.core.types.Visitor<Object,Void>