Package org.fugerit.java.core.db.dao
Class DAOHelper
- java.lang.Object
-
- org.fugerit.java.core.db.dao.DAOHelper
-
public class DAOHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
close(Connection conn)
static <T> void
loadAll(List<T> l, String query, FieldList fields, RSExtractor<T> re, DAOFactory bdf, LogObject log)
static <T> T
loadOne(String query, FieldList fields, RSExtractor<T> re, DAOFactory bdf, LogObject log)
static String
queryFormat(String sql, String method, LogObject log, DAOFactory bdf)
static void
setAll(String queryId, PreparedStatement ps, FieldList fields, org.slf4j.Logger log)
static void
setAll(PreparedStatement ps, FieldList fields, LogObject log)
static void
setAll(PreparedStatement ps, FieldList fields, org.slf4j.Logger logger)
-
-
-
Method Detail
-
setAll
public static void setAll(String queryId, PreparedStatement ps, FieldList fields, org.slf4j.Logger log) throws SQLException
- Throws:
SQLException
-
setAll
public static void setAll(PreparedStatement ps, FieldList fields, org.slf4j.Logger logger) throws SQLException
- Throws:
SQLException
-
setAll
public static void setAll(PreparedStatement ps, FieldList fields, LogObject log) throws SQLException
- Throws:
SQLException
-
queryFormat
public static String queryFormat(String sql, String method, LogObject log, DAOFactory bdf)
-
close
public static void close(Connection conn) throws DAOException
- Throws:
DAOException
-
loadAll
public static <T> void loadAll(List<T> l, String query, FieldList fields, RSExtractor<T> re, DAOFactory bdf, LogObject log) throws DAOException
- Throws:
DAOException
-
loadOne
public static <T> T loadOne(String query, FieldList fields, RSExtractor<T> re, DAOFactory bdf, LogObject log) throws DAOException
- Throws:
DAOException
-
-