Search in sources :

Example 16 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class KeyValueEntityManagerFactoryUtils method get.

public static BucketManagerFactory get() {
    KeyValueConfiguration configuration = new HazelcastKeyValueConfiguration();
    BucketManagerFactory managerFactory = configuration.get();
    return managerFactory;
}
Also used : HazelcastKeyValueConfiguration(org.jnosql.diana.hazelcast.key.HazelcastKeyValueConfiguration) KeyValueConfiguration(org.jnosql.diana.api.key.KeyValueConfiguration) HazelcastKeyValueConfiguration(org.jnosql.diana.hazelcast.key.HazelcastKeyValueConfiguration) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory)

Example 17 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchbaseDocumentCollectionManagerTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("person:id");
}
Also used : CouchbaseKeyValueConfiguration(org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration) BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 18 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchbaseListTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("jnosql:list");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 19 with BucketManagerFactory

use of org.jnosql.diana.api.key.BucketManagerFactory in project jnosql-diana-driver by eclipse.

the class CouchbaseMapTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("jnosql:map");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Aggregations

BucketManagerFactory (org.jnosql.diana.api.key.BucketManagerFactory)19 Test (org.junit.jupiter.api.Test)9 BucketManager (org.jnosql.diana.api.key.BucketManager)8 AfterAll (org.junit.jupiter.api.AfterAll)8 HashMap (java.util.HashMap)3 CouchbaseKeyValueConfiguration (org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration)3 KeyValueConfiguration (org.jnosql.diana.api.key.KeyValueConfiguration)2 HazelcastKeyValueConfiguration (org.jnosql.diana.hazelcast.key.HazelcastKeyValueConfiguration)1 InfinispanKeyValueConfiguration (org.jnosql.diana.infinispan.key.InfinispanKeyValueConfiguration)1