• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

织梦吧 - dedecms,网站模板,建站教程,图片素材免费下载

当前位置: 织梦吧 > 编程与数据库 > Jsp编程 >

自定义数据分页示例(4)

来源: www.dedecms8.com 编辑:织梦吧 时间:2012-06-28点击:

  Email = email;
 }

 public String getPerference() {
  return perference;
 }

 public void setPerference(String perference) {
  this.perference = perference;
 }

 public String getType() {
  return type;
 }

 public void setType(String type) {
  this.type = type;
 }

 public String getDescription() {
  return Description;
 }

 public void setDescription(String description) {
  Description = description;
 }

 @Override
 public String toString() {
  return "Customer [id=" + id + ", name=" + name + ", gender=" + gender
    + ", birthday=" + birthday + ", cellphone=" + cellphone
    + ", Email=" + Email + ", perference=" + perference + ", type="
    + type + ", Description=" + Description + "]";
 }
 
 
}

dao层:

Dao接口:

package cn.csdn.customer.dao;

import java.util.List;

public interface Dao<T,PK> {
 
 /*插入实体*/
 boolean insert(T entity);
 
 /*更新实体*/
 boolean update(T entity);
 
 /*删除实体*/
 boolean delete(T entity);
 
 /*查询所有实体*/

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 tom@tiptop.cn ,  QQ