All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.micronaut.data.runtime.query.internal.DelegateStoredQuery Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2017-2022 original authors
 *
 * 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
 *
 * https://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.
 */
package io.micronaut.data.runtime.query.internal;

import io.micronaut.core.annotation.AnnotationMetadata;
import io.micronaut.core.annotation.AnnotationValue;
import io.micronaut.core.type.Argument;
import io.micronaut.data.model.DataType;
import io.micronaut.data.model.query.JoinPath;
import io.micronaut.data.model.runtime.QueryParameterBinding;
import io.micronaut.data.model.runtime.StoredQuery;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;

/**
 * Delegate implementation of {@link StoredQuery}.
 *
 * @param  The entity type
 * @param  The result type
 * @author Denis Stepanov
 * @since 3.3.
 */
public interface DelegateStoredQuery extends StoredQuery {

    /**
     * @return The delegate
     */
    StoredQuery getStoredQueryDelegate();

    @Override
    default AnnotationMetadata getAnnotationMetadata() {
        return getStoredQueryDelegate().getAnnotationMetadata();
    }

    @Override
    default Class getRootEntity() {
        return getStoredQueryDelegate().getRootEntity();
    }

    @Override
    default boolean hasPageable() {
        return getStoredQueryDelegate().hasPageable();
    }

    @Override
    default String getQuery() {
        return getStoredQueryDelegate().getQuery();
    }

    @Override
    default String[] getExpandableQueryParts() {
        return getStoredQueryDelegate().getExpandableQueryParts();
    }

    @Override
    default List getQueryBindings() {
        return getStoredQueryDelegate().getQueryBindings();
    }

    @Override
    default Class getResultType() {
        return getStoredQueryDelegate().getResultType();
    }

    @Override
    default Argument getResultArgument() {
        return getStoredQueryDelegate().getResultArgument();
    }

    @Override
    default DataType getResultDataType() {
        return getStoredQueryDelegate().getResultDataType();
    }

    @Override
    default boolean isNative() {
        return getStoredQueryDelegate().isNative();
    }

    @Override
    default boolean isProcedure() {
        return getStoredQueryDelegate().isProcedure();
    }

    @Override
    default OperationType getOperationType() {
        return getStoredQueryDelegate().getOperationType();
    }

    @Override
    default boolean useNumericPlaceholders() {
        return getStoredQueryDelegate().useNumericPlaceholders();
    }

    @Override
    default boolean isDtoProjection() {
        return getStoredQueryDelegate().isDtoProjection();
    }

    @Override
    default Optional> getEntityIdentifierType() {
        return getStoredQueryDelegate().getEntityIdentifierType();
    }

    @Override
    default Class[] getArgumentTypes() {
        return getStoredQueryDelegate().getArgumentTypes();
    }

    @Override
    default boolean isCount() {
        return getStoredQueryDelegate().isCount();
    }

    @Override
    default Map getQueryHints() {
        return getStoredQueryDelegate().getQueryHints();
    }

    @Override
    default Set getJoinFetchPaths() {
        return getStoredQueryDelegate().getJoinFetchPaths();
    }

    @Override
    default Set getJoinPaths() {
        return getStoredQueryDelegate().getJoinPaths();
    }

    @Override
    default boolean isSingleResult() {
        return getStoredQueryDelegate().isSingleResult();
    }

    @Override
    default boolean hasResultConsumer() {
        return getStoredQueryDelegate().hasResultConsumer();
    }

    @Override
    default boolean isOptimisticLock() {
        return getStoredQueryDelegate().isOptimisticLock();
    }

    @Override
    default String getName() {
        return getStoredQueryDelegate().getName();
    }

    @Override
    default boolean isRawQuery() {
        return getStoredQueryDelegate().isRawQuery();
    }

    @Override
    default boolean isJsonEntity() {
        return getStoredQueryDelegate().isJsonEntity();
    }

    @Override
    default Map> getParameterExpressions() {
        return getStoredQueryDelegate().getParameterExpressions();
    }

    @Override
    default int getLimit() {
        return getStoredQueryDelegate().getLimit();
    }

    @Override
    default int getOffset() {
        return getStoredQueryDelegate().getOffset();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy