T - public class DAO<T> extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
Set<Order> |
addOrder(Order order) |
void |
close() |
T |
createBean() |
T |
createBean(String uuid) |
DAOCondition |
createCondition(String conditionKey,
Operator operator,
Object value) |
int |
delete(String uuid) |
int |
delete(String[] uuid) |
int |
deleteByWhere(String whereClause) |
List<T> |
find(DAOCondition condition) |
List<T> |
find(Map<String,Object> searchMap) |
List<T> |
find(String whereClause) |
List<T> |
find(T bean) |
List<T> |
findAll() |
T |
findByPrimaryKey(String uuid) |
Class |
getBeanClass(boolean mix) |
DAOCondition |
getMainCondition() |
protected String |
getRelationClause() |
boolean |
isInDB() |
void |
saveAsMap(Map<String,Object> map) |
void |
update(T bean) |
protected org.apache.commons.logging.Log logger
public TableInfo tableInfo
public DAO(TableInfo info, Class<T> clazz) throws SQLException
SQLExceptionpublic DAOCondition createCondition(String conditionKey, Operator operator, Object value)
public DAOCondition getMainCondition()
public T createBean() throws DAOException
DAOExceptionpublic T createBean(String uuid) throws DAOException
DAOExceptionpublic boolean isInDB()
throws DAOException
DAOExceptionpublic void saveAsMap(Map<String,Object> map) throws DAOException
DAOExceptionpublic Class getBeanClass(boolean mix)
public void update(T bean) throws DAOException
DAOExceptionpublic int delete(String uuid) throws DAOException
DAOExceptionpublic int delete(String[] uuid) throws DAOException
DAOExceptionpublic int deleteByWhere(String whereClause) throws DAOException
DAOExceptionpublic T findByPrimaryKey(String uuid) throws DAOException
DAOExceptionpublic List<T> findAll() throws DAOException
DAOExceptionpublic List<T> find(String whereClause) throws DAOException
DAOExceptionpublic List<T> find(T bean) throws DAOException
DAOExceptionpublic List<T> find(Map<String,Object> searchMap) throws DAOException
DAOExceptionpublic List<T> find(DAOCondition condition) throws DAOException
DAOExceptionprotected String getRelationClause()
public void close()
Copyright © 2023 onecode. All rights reserved.