Package org.fugerit.java.core.db.dao
Class DefaultLoadResultNG<T>
- java.lang.Object
-
- org.fugerit.java.core.db.dao.DefaultLoadResultNG<T>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,LoadResultNG<T>
public class DefaultLoadResultNG<T> extends Object implements LoadResultNG<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultLoadResultNG(RSExtractor<T> rse, Statement stm, ResultSet rs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getCount()
boolean
hasNext()
static <T> LoadResultNG<T>
newLoadResult(Connection conn, OpDAO<T> opDAO)
static <T> LoadResultNG<T>
newLoadResult(Connection conn, RSExtractor<T> rse, Statement stm, ResultSet rs)
static <T> LoadResultNG<T>
newLoadResult(RSExtractor<T> rse, Statement stm, ResultSet rs)
static <T> LoadResultNG<T>
newLoadResultCloseConnection(Connection conn, OpDAO<T> opDAO)
T
next()
-
-
-
Constructor Detail
-
DefaultLoadResultNG
protected DefaultLoadResultNG(RSExtractor<T> rse, Statement stm, ResultSet rs)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
hasNext
public boolean hasNext() throws DAOException
- Specified by:
hasNext
in interfaceLoadResultNG<T>
- Throws:
DAOException
-
next
public T next() throws DAOException
- Specified by:
next
in interfaceLoadResultNG<T>
- Throws:
DAOException
-
getCount
public long getCount()
- Specified by:
getCount
in interfaceLoadResultNG<T>
-
newLoadResult
public static <T> LoadResultNG<T> newLoadResult(RSExtractor<T> rse, Statement stm, ResultSet rs)
-
newLoadResult
public static <T> LoadResultNG<T> newLoadResult(Connection conn, RSExtractor<T> rse, Statement stm, ResultSet rs)
-
newLoadResult
public static <T> LoadResultNG<T> newLoadResult(Connection conn, OpDAO<T> opDAO)
-
newLoadResultCloseConnection
public static <T> LoadResultNG<T> newLoadResultCloseConnection(Connection conn, OpDAO<T> opDAO)
-
-