Package org.fugerit.java.core.db.daogen
Class BasicDAOHelper<T>
- java.lang.Object
-
- org.fugerit.java.core.db.daogen.BasicDAOHelper<T>
-
-
Constructor Summary
Constructors Constructor Description BasicDAOHelper(DAOContext daoContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
fieldListToString(FieldList fl)
org.slf4j.Logger
getLogger()
Returnts the logger for this objectvoid
loadAllHelper(List<T> l, String query, FieldList fields, RSExtractor<T> re)
void
loadAllHelper(List<T> l, SelectHelper query, RSExtractor<T> re)
T
loadOneHelper(SelectHelper query, RSExtractor<T> re)
DeleteHelper
newDeleteHelper(String tableName)
FieldList
newFieldList()
InsertHelper
newInsertHelper(String tableName)
SelectHelper
newSelectHelper(String tableName)
SelectHelper
newSelectHelper(String queryView, String tableName)
BigDecimal
newSequenceValue(String sequence)
UpdateHelper
newUpdateHelper(String tableName)
int
update(QueryHelper queryHelper)
-
-
-
Constructor Detail
-
BasicDAOHelper
public BasicDAOHelper(DAOContext daoContext)
-
-
Method Detail
-
getLogger
public org.slf4j.Logger getLogger()
Description copied from interface:LogObject
Returnts the logger for this object
-
newFieldList
public FieldList newFieldList()
-
loadOneHelper
public T loadOneHelper(SelectHelper query, RSExtractor<T> re) throws DAOException
- Throws:
DAOException
-
loadAllHelper
public void loadAllHelper(List<T> l, SelectHelper query, RSExtractor<T> re) throws DAOException
- Throws:
DAOException
-
loadAllHelper
public void loadAllHelper(List<T> l, String query, FieldList fields, RSExtractor<T> re) throws DAOException
- Throws:
DAOException
-
update
public int update(QueryHelper queryHelper) throws DAOException
- Throws:
DAOException
-
newSequenceValue
public BigDecimal newSequenceValue(String sequence) throws DAOException
- Throws:
DAOException
-
newSelectHelper
public SelectHelper newSelectHelper(String queryView, String tableName)
-
newSelectHelper
public SelectHelper newSelectHelper(String tableName)
-
newInsertHelper
public InsertHelper newInsertHelper(String tableName)
-
newUpdateHelper
public UpdateHelper newUpdateHelper(String tableName)
-
newDeleteHelper
public DeleteHelper newDeleteHelper(String tableName)
-
-