📄 basedao.java
字号:
package cn.handson.model.service.dao;
import java.util.List;
import cn.handson.model.connection.ConnectionFactory;
import cn.handson.model.connection.DefaultConnectionFactory;
import cn.handson.model.service.dao.page.PageInfo;
import cn.handson.model.service.exception.DataAccessException;
public abstract class BaseDao {
/**
* 连接对象
*/
private ConnectionFactory connectionFactory;
/**
* @return 默认的连接工厂对象
*/
public ConnectionFactory getConnectionFactory(){
if(connectionFactory == null){
connectionFactory =
new DefaultConnectionFactory();
}
return connectionFactory;
}
public void create(Object entityObject) throws DataAccessException {
// TODO Auto-generated method stub
}
public Object get(Object entityObject) throws DataAccessException {
// TODO Auto-generated method stub
return null;
}
public List list() throws DataAccessException {
// TODO Auto-generated method stub
return null;
}
public PageInfo pagedQuery(String query, int pageNo, int pageSize, Object... objects) throws DataAccessException {
// TODO Auto-generated method stub
return null;
}
public List query(Object... objects) throws DataAccessException {
// TODO Auto-generated method stub
return null;
}
public void remove(Object entityObject) throws DataAccessException {
// TODO Auto-generated method stub
}
public void update(Object entityObject) throws DataAccessException {
// TODO Auto-generated method stub
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -