我自己实现了一个数据访问层
源代码在线查看: abstractentityobject.java
package dark.db.entity;
import java.sql.SQLException;
import dark.db.record.Record;
/**
* Title:
* Description:
* Copyright: Copyright (c) 2003
* Company: DIS
* Create Time: 2004-3-21 21:29:48
* @author darkhe
* @version 1.0
*/
public abstract class AbstractEntityObject implements EntityObject
{
/**
* @throws SQLException
* @see dark.db.entity.EntityObject#add(java.sql.Connection)
*/
public void add() throws SQLException
{
throw new SQLException("没有实现当前方式");
}
/**
* @param conditon
* @throws SQLException
* @see dark.db.entity.EntityObject#edit(java.lang.String, java.sql.Connection)
*/
public void edit(String conditon) throws SQLException
{
throw new SQLException("没有实现当前方式");
}
/**
* @param condition
* @throws SQLException
* @see dark.db.entity.EntityObject#del(java.lang.String, java.sql.Connection)
*/
public void del(String condition) throws SQLException
{
throw new SQLException("没有实现当前方式");
}
/**
* @return
* @see dark.db.entity.EntityObject#getRecord()
*/
public abstract Record getRecord();
}