use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana by eclipse.
the class KeyValueTemplateConverter method success.
@Override
public KeyValueTemplate success(String value) {
Config config = BeanManagers.getInstance(Config.class);
final BucketManager manager = config.getValue(value, BucketManager.class);
KeyValueTemplateProducer producer = BeanManagers.getInstance(KeyValueTemplateProducer.class);
return producer.get(manager);
}
use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.
the class SearchQueryTest method afterClass.
@AfterAll
public static void afterClass() {
CouchbaseKeyValueConfiguration configuration = CouchbaseKeyValueTcConfiguration.getTcConfiguration();
BucketManagerFactory keyValueEntityManagerFactory = configuration.get();
BucketManager keyValueEntityManager = keyValueEntityManagerFactory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
keyValueEntityManager.delete("city:salvador");
keyValueEntityManager.delete("city:sao_paulo");
keyValueEntityManager.delete("city:rio_janeiro");
keyValueEntityManager.delete("city:manaus");
}
use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.
the class CouchbaseListTest 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:list");
}
use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.
the class DefaultCouchbaseBucketManagerFactoryTest method shouldReturnManager.
@Test
public void shouldReturnManager() {
BucketManager database = factory.getBucketManager(CouchbaseUtil.BUCKET_NAME);
assertNotNull(database);
}
use of jakarta.nosql.keyvalue.BucketManager in project jnosql-diana-driver by eclipse.
the class CouchbaseDocumentCollectionManagerTest 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");
}
Aggregations