Interface CouchbaseOperationService

All Superinterfaces:
io.jans.orm.operation.PersistenceOperationService
All Known Implementing Classes:
CouchbaseOperationServiceImpl

public interface CouchbaseOperationService extends io.jans.orm.operation.PersistenceOperationService
Couchbase operation service interface
Author:
Yuriy Movchan Date: 05/14/2018
  • Field Details

  • Method Details

    • getConnectionProvider

      CouchbaseConnectionProvider getConnectionProvider()
    • addEntry

      boolean addEntry(String key, com.couchbase.client.java.json.JsonObject atts) throws io.jans.orm.exception.operation.DuplicateEntryException, io.jans.orm.exception.operation.PersistenceException
      Throws:
      io.jans.orm.exception.operation.DuplicateEntryException
      io.jans.orm.exception.operation.PersistenceException
    • addEntry

      boolean addEntry(String key, com.couchbase.client.java.json.JsonObject jsonObject, Integer expiration) throws io.jans.orm.exception.operation.DuplicateEntryException, io.jans.orm.exception.operation.PersistenceException
      Throws:
      io.jans.orm.exception.operation.DuplicateEntryException
      io.jans.orm.exception.operation.PersistenceException
    • updateEntry

      boolean updateEntry(String key, List<com.couchbase.client.java.kv.MutateInSpec> mods, Integer expiration) throws UnsupportedOperationException, io.jans.orm.exception.operation.PersistenceException
      Throws:
      UnsupportedOperationException
      io.jans.orm.exception.operation.PersistenceException
    • delete

      boolean delete(String key) throws io.jans.orm.exception.operation.EntryNotFoundException
      Throws:
      io.jans.orm.exception.operation.EntryNotFoundException
    • delete

      int delete(String key, com.couchbase.client.java.query.QueryScanConsistency scanConsistency, ConvertedExpression expression, int count) throws io.jans.orm.exception.operation.DeleteException
      Throws:
      io.jans.orm.exception.operation.DeleteException
    • deleteRecursively

      boolean deleteRecursively(String key) throws io.jans.orm.exception.operation.EntryNotFoundException, io.jans.orm.exception.operation.DeleteException
      Throws:
      io.jans.orm.exception.operation.EntryNotFoundException
      io.jans.orm.exception.operation.DeleteException
    • lookup

      com.couchbase.client.java.json.JsonObject lookup(String key, String... attributes) throws io.jans.orm.exception.operation.SearchException
      Throws:
      io.jans.orm.exception.operation.SearchException
    • search

      <O> io.jans.orm.model.PagedResult<com.couchbase.client.java.json.JsonObject> search(String key, com.couchbase.client.java.query.QueryScanConsistency scanConsistency, ConvertedExpression expression, io.jans.orm.model.SearchScope scope, String[] attributes, io.jans.orm.model.Sort[] orderBy, CouchbaseBatchOperationWraper<O> batchOperationWraper, SearchReturnDataType returnDataType, int start, int count, int pageSize) throws io.jans.orm.exception.operation.SearchException
      Throws:
      io.jans.orm.exception.operation.SearchException
    • createStoragePassword

      String[] createStoragePassword(String[] passwords, io.jans.orm.model.AttributeData attributeData)
    • isBinaryAttribute

      boolean isBinaryAttribute(String attribute)
    • isCertificateAttribute

      boolean isCertificateAttribute(String attribute)
    • toInternalAttribute

      String toInternalAttribute(String attributeName)
    • toInternalAttributes

      String[] toInternalAttributes(String[] attributeNames)
    • fromInternalAttribute

      String fromInternalAttribute(String internalAttributeName)
    • fromInternalAttributes

      String[] fromInternalAttributes(String[] internalAttributeNames)
    • destroy

      boolean destroy()
    • encodeTime

      String encodeTime(Date date)
    • decodeTime

      Date decodeTime(String date, boolean silent)