Search in sources :

Example 11 with BucketManager

use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.

the class DocumentQueryTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete("person:id");
    keyValueEntityManager.delete("person:id2");
    keyValueEntityManager.delete("person:id3");
    keyValueEntityManager.delete("person:id4");
}
Also used : CouchbaseKeyValueConfiguration(org.eclipse.jnosql.communication.couchbase.keyvalue.CouchbaseKeyValueConfiguration) BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 12 with BucketManager

use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.

the class CouchbaseBucketManagerTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete(KEY_OTAVIO);
    keyValueEntityManager.delete(KEY_SORO);
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 13 with BucketManager

use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.

the class CouchbaseQueueTest method afterClass.

@AfterAll
public static void afterClass() {
    CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
    BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
    BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
    keyValueEntityManager.delete("jnosql:queue");
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) BucketManagerFactory(jakarta.nosql.keyvalue.BucketManagerFactory) AfterAll(org.junit.jupiter.api.AfterAll)

Example 14 with BucketManager

use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.

the class KeyValueEntityManagerFactoryTest method shouldCreateKeyValueEntityManager.

@Test
public void shouldCreateKeyValueEntityManager() {
    BucketManager keyValueEntityManager = managerFactory.getBucketManager(BUCKET_NAME);
    assertNotNull(keyValueEntityManager);
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) Test(org.junit.jupiter.api.Test)

Example 15 with BucketManager

use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.

the class RedisBucketManagerFactoryTest method shouldCreateKeyValueEntityManager.

@Test
public void shouldCreateKeyValueEntityManager() {
    BucketManager keyValueEntityManager = managerFactory.getBucketManager(BUCKET_NAME);
    assertNotNull(keyValueEntityManager);
}
Also used : BucketManager(jakarta.nosql.keyvalue.BucketManager) Test(org.junit.jupiter.api.Test)

Aggregations

BucketManager (jakarta.nosql.keyvalue.BucketManager)25 BucketManagerFactory (jakarta.nosql.keyvalue.BucketManagerFactory)8 AfterAll (org.junit.jupiter.api.AfterAll)8 Test (org.junit.jupiter.api.Test)7 Params (jakarta.nosql.Params)4 QueryException (jakarta.nosql.QueryException)4 ServiceLoaderProvider (jakarta.nosql.ServiceLoaderProvider)4 Value (jakarta.nosql.Value)4 KeyValuePreparedStatement (jakarta.nosql.keyvalue.KeyValuePreparedStatement)4 Person (jakarta.nosql.tck.entities.Person)4 User (jakarta.nosql.tck.entities.User)4 List (java.util.List)4 Collectors.toList (java.util.stream.Collectors.toList)4 Stream (java.util.stream.Stream)4 Produces (javax.enterprise.inject.Produces)4 CouchbaseKeyValueConfiguration (org.eclipse.jnosql.communication.couchbase.keyvalue.CouchbaseKeyValueConfiguration)3 Database (jakarta.nosql.mapping.Database)2 KeyValueTemplateProducer (jakarta.nosql.mapping.keyvalue.KeyValueTemplateProducer)2 DelQuery (jakarta.nosql.query.DelQuery)2 DelQueryProvider (jakarta.nosql.query.DelQuery.DelQueryProvider)2