Interface Queryable<T>
-
- All Superinterfaces:
SingleQueryable<T>
- All Known Subinterfaces:
AsyncQueryable<T>
- All Known Implementing Classes:
AsyncEntityProjectionQuery,AsyncEntityQuery,EntityProjectionQuery,EntityQuery
public interface Queryable<T> extends SingleQueryable<T>
- Author:
- Collin Alpert
-
-
Method Summary
-
Methods inherited from interface com.github.collinalpert.java2db.queries.SingleQueryable
first, getQuery
-
-
-
-
Method Detail
-
toList
java.util.List<T> toList()
Executes the query and returns the result as aList- Returns:
- A list of entities representing the result rows.
-
toStream
java.util.stream.Stream<T> toStream()
Executes the query and returns the result as aStream- Returns:
- A list of entities representing the result rows.
-
toArray
T[] toArray()
Executes a new query and returns the result as an array.- Returns:
- An array of entities representing the result rows.
-
-