Class PostgreStreamHelper<F,E extends F>
java.lang.Object
io.clonecloudstore.common.database.postgre.PostgreStreamHelper<F,E>
- Type Parameters:
F- the DAO interface typeE- the real DAO type
- All Implemented Interfaces:
StreamHelperInterface<E>
Postgre implementation of the StreamHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindIterator(RepositoryBaseInterface<E> repositoryBase, DbQuery query) findStream(RepositoryBaseInterface<E> repositoryBase, DbQuery query)
-
Field Details
-
MAX_LIST
public static final int MAX_LIST
-
-
Constructor Details
-
PostgreStreamHelper
public PostgreStreamHelper()Constructor
-
-
Method Details
-
findStream
public Stream<E> findStream(RepositoryBaseInterface<E> repositoryBase, DbQuery query) throws CcsDbException - Specified by:
findStreamin interfaceStreamHelperInterface<F>- Parameters:
repositoryBase- the repository to usequery- the query- Returns:
- the stream of elements
- Throws:
CcsDbException
-
findIterator
public ClosingIterator<E> findIterator(RepositoryBaseInterface<E> repositoryBase, DbQuery query) throws CcsDbException - Specified by:
findIteratorin interfaceStreamHelperInterface<F>- Parameters:
repositoryBase- the repository to usequery- the query- Returns:
- the iterator of elements
- Throws:
CcsDbException
-