Class StringBasedN1qlQueryParser.N1qlSpelValues

java.lang.Object
org.springframework.data.couchbase.repository.query.StringBasedN1qlQueryParser.N1qlSpelValues
Enclosing class:
StringBasedN1qlQueryParser

public static final class StringBasedN1qlQueryParser.N1qlSpelValues extends Object
This class is exposed to SpEL parsing through the variable #"n1ql". Use the attributes in your SpEL expressions: selectEntity, fields, bucket and filter.
  • Field Details

    • selectEntity

      public final String selectEntity
      #{"#n1ql.selectEntity". selectEntity will be replaced by the SELECT-FROM clause corresponding to the entity. Use once at the beginning.
    • fields

      public final String fields
      #{"#n1ql.fields". fields will be replaced by the list of N1QL fields allowing to reconstruct the entity.
    • bucket

      public final String bucket
      #{"#n1ql.bucket". bucket will be replaced by (escaped) bucket name in which the entity is stored.
    • scope

      public final String scope
      #{"#n1ql.scope". bucket will be replaced by (escaped) scope name in which the entity is stored.
    • collection

      public final String collection
      #{"#n1ql.collection". bucket will be replaced by (escaped) collection name in which the entity is stored.
    • filter

      public final String filter
      #{"#n1ql.filter"}. filter will be replaced by an expression allowing to select only entries matching the entity in a WHERE clause.
    • delete

      public final String delete
      #{"#n1ql.delete"}. delete will be replaced by a delete expression.
    • returning

      public final String returning
      #{"#n1ql.returning"}. returning will be replaced by a returning expression allowing to return the entity and meta information on deletes.
  • Constructor Details