Search in sources :

Example 1 with BucketManager

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

the class DocumentQueryTest 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");
    keyValueEntityManager.remove("person:id2");
    keyValueEntityManager.remove("person:id3");
    keyValueEntityManager.remove("person:id4");
}
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 2 with BucketManager

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

the class SearchQueryTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = new CouchbaseKeyValueConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.remove("city:salvador");
    keyValueEntityManager.remove("city:sao_paulo");
    keyValueEntityManager.remove("city:rio_janeiro");
    keyValueEntityManager.remove("city:manaus");
}
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 3 with BucketManager

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

the class CouchbaseBucketManagerTest method afterClass.

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

Example 4 with BucketManager

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

the class CouchbaseQueueTest 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:queue");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 5 with BucketManager

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

the class CouchbaseSetTest 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:set");
}
Also used : BucketManager(org.jnosql.diana.api.key.BucketManager) BucketManagerFactory(org.jnosql.diana.api.key.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Aggregations

BucketManager (org.jnosql.diana.api.key.BucketManager)16 BucketManagerFactory (org.jnosql.diana.api.key.BucketManagerFactory)8 AfterAll (org.junit.jupiter.api.AfterAll)8 Test (org.junit.jupiter.api.Test)5 CouchbaseKeyValueConfiguration (org.jnosql.diana.couchbase.key.CouchbaseKeyValueConfiguration)3 Produces (javax.enterprise.inject.Produces)2 Person (org.jnosql.artemis.model.Person)2 User (org.jnosql.artemis.model.User)2 KeyValueTemplateProducer (org.jnosql.artemis.key.KeyValueTemplateProducer)1