Class DefaultCollectionOperations

java.lang.Object
com.arangodb.springframework.core.template.DefaultCollectionOperations
All Implemented Interfaces:
CollectionOperations

public class DefaultCollectionOperations extends Object implements CollectionOperations
Author:
Mark Vollmary
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DefaultCollectionOperations(com.arangodb.ArangoCollection collection, Map<com.arangodb.springframework.core.template.CollectionCacheKey,com.arangodb.springframework.core.template.CollectionCacheValue> collectionCache, PersistenceExceptionTranslator exceptionTranslator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Counts the documents in a collection
    void
    Deletes the collection from the database.
    void
    Deletes the index with the given id from the collection.
    com.arangodb.entity.IndexEntity
    ensureFulltextIndex(Iterable<String> fields, com.arangodb.model.FulltextIndexOptions options)
    Deprecated.
    com.arangodb.entity.IndexEntity
    ensureGeoIndex(Iterable<String> fields, com.arangodb.model.GeoIndexOptions options)
    Creates a geo-spatial index for the collection, if it does not already exist.
    com.arangodb.entity.IndexEntity
    ensureMDIndex(Iterable<String> fields, com.arangodb.model.MDIndexOptions options)
    Creates a MD-index for the collection, if it does not already exist.
    com.arangodb.entity.IndexEntity
    ensureMDPrefixedIndex(Iterable<String> fields, com.arangodb.model.MDPrefixedIndexOptions options)
    Creates a MD-Prefixed-index for the collection, if it does not already exist.
    com.arangodb.entity.IndexEntity
    ensurePersistentIndex(Iterable<String> fields, com.arangodb.model.PersistentIndexOptions options)
    Creates a persistent index for the collection, if it does not already exist.
    com.arangodb.entity.IndexEntity
    ensureTtlIndex(Iterable<String> fields, com.arangodb.model.TtlIndexOptions options)
    Creates a ttl index for the collection, if it does not already exist.
    Collection<com.arangodb.entity.IndexEntity>
    Returns all indexes of the collection
    com.arangodb.entity.Permissions
    Get the collection access level
    com.arangodb.entity.CollectionPropertiesEntity
    Reads the properties of the specified collection
    void
    grantAccess(String username, com.arangodb.entity.Permissions permissions)
    Grants or revoke access to the collection for user user.
    Return the collection name
    void
    resetAccess(String username)
    Clear the collection access level, revert back to the default access level.
    void
    Removes all documents from the collection, but leaves the indexes intact

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait