Search in sources :

Example 6 with ObjectBuilder

use of com.blazebit.persistence.ObjectBuilder in project blaze-persistence by Blazebit.

the class SubviewCorrelator method finish.

@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
public ObjectBuilder<?> finish(FullQueryBuilder<?, ?> criteriaBuilder, EntityViewConfiguration entityViewConfiguration, int offset, int tupleSuffix, String correlationRoot, EmbeddingViewJpqlMacro embeddingViewJpqlMacro, boolean nullFlatViewIfEmpty) {
    EntityViewConfiguration subviewConfiguration = entityViewConfiguration.forSubview(criteriaBuilder, attributePath, embeddingViewJpqlMacro);
    ObjectBuilder builder = evm.createObjectBuilder(managedViewType, mappingConstructor, correlationRoot, attributePath, criteriaBuilder, subviewConfiguration, offset, tupleSuffix, nullFlatViewIfEmpty);
    criteriaBuilder.selectNew(builder);
    return builder;
}
Also used : EntityViewConfiguration(com.blazebit.persistence.view.impl.EntityViewConfiguration) ObjectBuilder(com.blazebit.persistence.ObjectBuilder)

Aggregations

ObjectBuilder (com.blazebit.persistence.ObjectBuilder)6 List (java.util.List)4 KeysetPage (com.blazebit.persistence.KeysetPage)3 PagedList (com.blazebit.persistence.PagedList)3 SelectBuilder (com.blazebit.persistence.SelectBuilder)3 Test (org.junit.Test)3 Document (com.blazebit.persistence.testsuite.entity.Document)2 EntityViewConfiguration (com.blazebit.persistence.view.impl.EntityViewConfiguration)2 LateAdditionalObjectBuilder (com.blazebit.persistence.view.impl.objectbuilder.LateAdditionalObjectBuilder)2 ManagedViewType (com.blazebit.persistence.view.metamodel.ManagedViewType)2 ViewType (com.blazebit.persistence.view.metamodel.ViewType)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 LimitBuilder (com.blazebit.persistence.LimitBuilder)1 PaginatedCriteriaBuilder (com.blazebit.persistence.PaginatedCriteriaBuilder)1 ExpressionFactory (com.blazebit.persistence.parser.expression.ExpressionFactory)1 JpaProvider (com.blazebit.persistence.spi.JpaProvider)1 DocumentWithNullableName (com.blazebit.persistence.testsuite.entity.DocumentWithNullableName)1 CorrelationProvider (com.blazebit.persistence.view.CorrelationProvider)1 CorrelatedSubqueryViewRootJpqlMacro (com.blazebit.persistence.view.impl.macro.CorrelatedSubqueryViewRootJpqlMacro)1