Package org.fugerit.java.core.db.dao
Class OpDAO<T>
- java.lang.Object
-
- org.fugerit.java.core.db.dao.OpDAO<T>
-
public class OpDAO<T> extends Object
Class for handling SQL operations.
- Author:
- Fugerit
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_EXECUTE
static int
TYPE_QUERY
static int
TYPE_UPDATE
-
Constructor Summary
Constructors Constructor Description OpDAO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldList
getFieldList()
RSExtractor<T>
getRsExtractor()
String
getSql()
int
getType()
static <T> OpDAO<T>
newExecuteOp(String sql)
static <T> OpDAO<T>
newExecuteOp(String sql, FieldList fl)
static <T> OpDAO<T>
newQueryOp(String sql, FieldList fl, RSExtractor<T> rse)
static <T> OpDAO<T>
newQueryOp(String sql, RSExtractor<T> rse)
static <T> OpDAO<T>
newUpdateOp(String sql)
static <T> OpDAO<T>
newUpdateOp(String sql, FieldList fl)
void
setFieldList(FieldList list)
void
setRsExtractor(RSExtractor<T> extractor)
void
setSql(String string)
void
setType(int i)
-
-
-
Field Detail
-
TYPE_UPDATE
public static final int TYPE_UPDATE
- See Also:
- Constant Field Values
-
TYPE_QUERY
public static final int TYPE_QUERY
- See Also:
- Constant Field Values
-
TYPE_EXECUTE
public static final int TYPE_EXECUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
newQueryOp
public static <T> OpDAO<T> newQueryOp(String sql, RSExtractor<T> rse)
-
newQueryOp
public static <T> OpDAO<T> newQueryOp(String sql, FieldList fl, RSExtractor<T> rse)
-
getFieldList
public FieldList getFieldList()
-
getRsExtractor
public RSExtractor<T> getRsExtractor()
-
getSql
public String getSql()
-
getType
public int getType()
-
setFieldList
public void setFieldList(FieldList list)
-
setRsExtractor
public void setRsExtractor(RSExtractor<T> extractor)
-
setSql
public void setSql(String string)
-
setType
public void setType(int i)
-
-