⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basedao.java

📁 本项目是基于展示新闻的一款产品。在本系统中用户可以自定义栏目及新闻分类 发布新闻信息
💻 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 + -