-
Notifications
You must be signed in to change notification settings - Fork 31
/
BuilderFactory.java
34 lines (29 loc) · 1.22 KB
/
BuilderFactory.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* JPAstreamer - Express JPA queries with Java Streams
* Copyright (c) 2020-2022, Speedment, Inc. All Rights Reserved.
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
*
* See: https://github.com/speedment/jpa-streamer/blob/master/LICENSE
*/
package com.speedment.jpastreamer.builder;
import com.speedment.jpastreamer.renderer.Renderer;
import com.speedment.jpastreamer.streamconfiguration.StreamConfiguration;
import java.util.stream.Stream;
public interface BuilderFactory {
/**
* Creates and returns a new Stream that is parsable and
* can optimize its pipeline and merge internal operations
* into the stream source (e.g. SQL or a JPA Query).
*
* @param <T> Stream type
* @param streamConfiguration used to configure the stream source
* @param renderer to use
* @author Per Minborg
*/
<T> Stream<T> createBuilder(StreamConfiguration<T> streamConfiguration, Renderer renderer);
}