---
title: "我自己的数据对象处理类 DemoBean"
author: "phantom"
date: "2007-03-03T06:21:04Z"
tags: []
slug: "demobean"
draft: false
lastmod: "2007-03-03T06:21:04Z"
id: 66095
url: "https://phantom.iteye.com/blog/66095"
---

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";  
 }  
}