Package io.jans.orm.couchbase.operation
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanString[]createStoragePassword(String[] passwords, io.jans.orm.model.AttributeData attributeData) decodeTime(String date, boolean silent) booleanintdelete(String key, com.couchbase.client.java.query.QueryScanConsistency scanConsistency, ConvertedExpression expression, int count) booleandeleteRecursively(String key) booleandestroy()encodeTime(Date date) fromInternalAttribute(String internalAttributeName) String[]fromInternalAttributes(String[] internalAttributeNames) booleanisBinaryAttribute(String attribute) booleanisCertificateAttribute(String attribute) com.couchbase.client.java.json.JsonObject<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) toInternalAttribute(String attributeName) String[]toInternalAttributes(String[] attributeNames) booleanupdateEntry(String key, List<com.couchbase.client.java.kv.MutateInSpec> mods, Integer expiration) Methods inherited from interface io.jans.orm.operation.PersistenceOperationService
authenticate, getPersistenceMetadata, getTableColumnsMap, isConnected, isSupportObjectClass, setPersistenceExtension
-
Field Details
-
DN
- See Also:
-
UID
- See Also:
-
UID_ARRAY
-
USER_PASSWORD
- See Also:
-
OBJECT_CLASS
- See Also:
-
META_DOC_ID
- See Also:
-
-
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.DuplicateEntryExceptionio.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.DuplicateEntryExceptionio.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:
UnsupportedOperationExceptionio.jans.orm.exception.operation.PersistenceException
-
delete
- 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.EntryNotFoundExceptionio.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
-
isBinaryAttribute
-
isCertificateAttribute
-
toInternalAttribute
-
toInternalAttributes
-
fromInternalAttribute
-
fromInternalAttributes
-
destroy
boolean destroy() -
encodeTime
-
decodeTime
-