Class MappedQueryImpl<T>
- java.lang.Object
-
- io.apicurio.registry.storage.impl.sql.jdb.MappedQueryImpl<T>
-
- All Implemented Interfaces:
MappedQuery<T>,Closeable,AutoCloseable
public class MappedQueryImpl<T> extends Object implements MappedQuery<T>, Closeable
- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description MappedQueryImpl(PreparedStatement statement, RowMapper<T> mapper)Constructor.
-
-
-
Constructor Detail
-
MappedQueryImpl
public MappedQueryImpl(PreparedStatement statement, RowMapper<T> mapper) throws SQLException
Constructor.- Parameters:
statement-mapper-- Throws:
SQLException
-
-
Method Detail
-
one
public T one()
- Specified by:
onein interfaceMappedQuery<T>- See Also:
MappedQuery.one()
-
first
public T first()
- Specified by:
firstin interfaceMappedQuery<T>- See Also:
MappedQuery.first()
-
findOne
public Optional<T> findOne()
- Specified by:
findOnein interfaceMappedQuery<T>- See Also:
MappedQuery.findOne()
-
findFirst
public Optional<T> findFirst()
- Specified by:
findFirstin interfaceMappedQuery<T>- See Also:
MappedQuery.findFirst()
-
list
public List<T> list()
- Specified by:
listin interfaceMappedQuery<T>- See Also:
MappedQuery.list()
-
stream
public Stream<T> stream()
- Specified by:
streamin interfaceMappedQuery<T>- See Also:
MappedQuery.stream()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- See Also:
Closeable.close()
-
-