ITeye博客

我自己的数据对象处理类 DemoBean

phantom · 2007-03-03 06:21 · 数据库处理 · Markdown

package com.jh.core.db.jdbc.demo;

import java.util.Date;

public class DemoBean {
 // 更新列信息
 String[] updateColumns = { "name", "memo", "type", };

 // 插入列信息
 String[] insertColumns = { "name", "memo", "type", "createTime" };

 private Date createTime;

 private String name;

 private int id;

 private String memo;

 private long type;

 public Date getCreateTime() {
  return createTime;
 }

 public void setCreateTime(Date createTime) {
  this.createTime = createTime;
 }

 public int getId() {
  return id;
 }

 public void setId(int id) {
  this.id = id;
 }

 public String getMemo() {
  return memo;
 }

 public void setMemo(String memo) {
  this.memo = memo;
 }

 public String getName() {
  return name;
 }

 public void setName(String name) {
  this.name = name;
 }

 public long getType() {
  return type;
 }

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

 public String getTableName() {
  // TODO Auto-generated method stub
  return "DemoBean_tab";
 }

 public String toString() {
  return "\tname=" + name + "\tid=" + id + "\n";
 }
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。