资源简介
DAO 设计模式经典实例
代码片段和文件信息
/*
* @author : Rajat Gupta
*
* @version 1.0
*
* Development Environment : Oracle10g JDeveloper
*
* Name of the File : News.java
*
* Creation / Modification History
* Rajat Gupta 01-Oct-2004 Created
*
*/
package oracle.otnsamples.daopattern.newsapp;
// Import the required Packages
import java.util.Date;
/**
* News Value object. This class is value object representing database table
* news. This class is intended to be used together with associated DAO object.
* This Class encapsulates a particular News Item.
*/
public class News {
private Date enteredDate;
/**
* Persistent Instance variables. This data is directly mapped to the
* columns of database table.
*/
private Integer newsId;
private String categoryName;
private String content;
private String title;
private String url;
/**
* Empty Constructor of this class
*/
public News( ) {
}
/**
* Constructor of this class with appropriate parameters.
* Initializes the values of instance variables with appropriate values.
*/
public News( Integer newsIdIn String categoryNameIn Date enteredDateIn
String titleIn String urlIn String contentIn ) {
this.newsId = newsIdIn;
this.categoryName = categoryNameIn;
this.title = titleIn;
this.enteredDate = enteredDateIn;
this.url = urlIn;
this.content = contentIn;
}
/**
* Method to retrieve the News ID
*/
public Integer getNewsId( ) {
return this.newsId;
}
/**
* Method to set the News ID
*/
public void setNewsId( Integer newsIdIn ) {
this.newsId = newsIdIn;
}
/**
* Method to retrieve the News Category
*/
public String getCategoryName( ) {
return this.categoryName;
}
/**
* Method to set the News Category
*/
public void setCategoryName( String categoryNameIn ) {
this.categoryName = categoryNameIn;
}
/**
* Method to retrieve the News title
*/
public String gettitle( ) {
return this.title;
}
/**
* Method to set the News title
*/
public void settitle( String titleIn ) {
this.title = titleIn;
}
/**
* Method to retrieve the News Date
*/
public Date getEnteredDate( ) {
return this.enteredDate;
}
/**
* Method to set the News Date
*/
public void setEnteredDate( Date enteredDateIn ) {
this.enteredDate = enteredDateIn;
}
/**
* Method to retrieve the News URL
*/
public String getUrl( ) {
return this.url;
}
/**
* Method to set the News URL
*/
public void setUrl( String urlIn ) {
this.url = urlIn;
}
/**
* Method to retrieve the News Content
*/
public String getContent( ) {
return this.content;
}
/**
* Method to set the News Content
*/
public void setContent( String contentIn ) {
this.content = contentIn;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18861 2004-09-22 17:28 DAODesignPattern\DAOPrj.jpr
文件 578 2004-09-20 13:27 DAODesignPattern\DAOWS.jws
目录 0 2004-09-20 13:28 DAODesignPattern\config\
文件 409 2004-09-22 16:58 DAODesignPattern\config\application.xm
文件 655 2004-09-20 13:31 DAODesignPattern\config\web.xm
文件 364 2004-10-01 16:10 DAODesignPattern\config\server.properties
目录 0 2004-09-20 13:28 DAODesignPattern\src\
目录 0 2004-09-20 13:33 DAODesignPattern\src\oracle\
目录 0 2004-09-20 13:33 DAODesignPattern\src\oracle\otnsamples\
目录 0 2004-09-20 13:33 DAODesignPattern\src\oracle\otnsamples\daopattern\
目录 0 2004-09-20 13:33 DAODesignPattern\src\oracle\otnsamples\daopattern\newsapp\
文件 4905 2004-09-21 16:57 DAODesignPattern\src\oracle\otnsamples\daopattern\newsapp\NewsBean.java
文件 9830 2004-09-21 16:52 DAODesignPattern\src\oracle\otnsamples\daopattern\newsapp\NewsDAOOracleImpl.java
文件 2876 2004-09-21 16:58 DAODesignPattern\src\oracle\otnsamples\daopattern\newsapp\News.java
文件 1486 2004-09-21 16:54 DAODesignPattern\src\oracle\otnsamples\daopattern\newsapp\NewsDAO.java
文件 2775 2004-09-21 16:54 DAODesignPattern\src\oracle\otnsamples\daopattern\newsapp\NewsDAOFactory.java
文件 11880 2004-09-21 16:52 DAODesignPattern\src\oracle\otnsamples\daopattern\newsapp\NewsDAOOraclexm
目录 0 2004-09-20 13:48 DAODesignPattern\src\me
文件 655 2004-09-23 17:44 DAODesignPattern\src\me
文件 283 2004-08-30 18:30 DAODesignPattern\src\me
文件 526 2004-09-23 15:16 DAODesignPattern\src\DAOImplementation.properties
目录 0 2004-09-20 13:28 DAODesignPattern\public_html\
文件 1142 2004-09-21 12:59 DAODesignPattern\public_html\ErrorPage.jsp
目录 0 2004-09-20 13:37 DAODesignPattern\public_html\WEB-INF\
文件 569 2004-09-20 13:37 DAODesignPattern\public_html\WEB-INF\web.xm
文件 14475 2004-10-01 16:08 DAODesignPattern\public_html\News.jsp
目录 0 2004-09-20 13:28 DAODesignPattern\doc\
文件 6204 2004-09-23 16:44 DAODesignPattern\doc\envsetup.html
文件 4303 2004-06-07 13:09 DAODesignPattern\doc\otn_new.css
目录 0 2004-09-22 12:39 DAODesignPattern\doc\images\
文件 69972 2004-10-01 15:56 DAODesignPattern\doc\images\DAO_ClassDiagram.jpg
............此处省略7个文件信息
相关资源
- LaneNet训练自己教程
- qingdao.kml
- 斯坦福大学SNOPT大型非线性优化器
- 科研经费在线管理系统
-
解决The type org.springfr
amework.dao.supp - 基于Struts2+JDBC+DAO,设计一个简单的网
- DAO350.DLL
- caidao20160620-密码:www.maicaidao.com.rar
- DaoTestCode.rar
- 论文研究 - Abass Ndao健康中心医疗诊所
- OndaOS-Root_V975iorV819i
- mybatis反向生成代码工具包含servicese
- Hibernate 基于持久层框架的DAO模式应用
- youdaoword.rar
- Huarongdao-src.zip
评论
共有 条评论