io.resys.hdes.client.spi.store.DocumentQueryBuilder Maven / Gradle / Ivy
package io.resys.hdes.client.spi.store;
import io.resys.hdes.client.api.HdesStore.QueryBuilder;
/*-
* #%L
* hdes-client-api
* %%
* Copyright (C) 2020 - 2021 Copyright 2020 ReSys OÜ
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import io.resys.hdes.client.api.HdesStore.StoreEntity;
import io.resys.hdes.client.api.HdesStore.StoreState;
import io.smallrye.mutiny.Uni;
public class DocumentQueryBuilder extends PersistenceCommands implements QueryBuilder {
public DocumentQueryBuilder(ThenaConfig config) {
super(config);
}
@Override
public Uni get() {
return super.get();
}
@Override
public Uni get(String id) {
var result = super.getEntityState(id);
return result.onItem().transform(entityState -> entityState.getEntity());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy