我自己实现了一个数据访问层
源代码在线查看: abstractentitycollection.java
package dark.db.entity;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
/**
* Title:
* Description:
* Copyright: Copyright (c) 2003
* Company: DIS
* Create Time: 2004-3-21 21:30:56
* @author darkhe
* @version 1.0
*/
public abstract class AbstractEntityCollection implements EntityCollection
{
/**
* @param rs
* @return
* @throws SQLException
* @see dark.db.entity.EntitySet#getEntitySet(java.sql.ResultSet)
*/
public List getList(ResultSet rs) throws SQLException
{
throw new SQLException("没有实现当前方式");
}
/**
* @param sql
* @return
* @throws SQLException
* @see dark.db.entity.EntityCollection#getList(java.lang.String)
*/
public List getList(String sql) throws SQLException
{
throw new SQLException("没有实现当前方式");
}
}