📄 inforecord.java
字号:
/**
*
*/
package com.esri.solutions.jitk.personalization.dao;
/**
* @author Susan Herdina
* @version 1.0
* @created 11-Dec-2007 10:06:22 AM
*
* This abstract class is the base class for the InfoRecord implementation Classes. It contains
* information about a record from the database. The properties in this class map to fields in
* the database record that are independent of the data blob (i.e. Creator, Description, Id, Name,
* Time Modified).
*
*/
public abstract class InfoRecord {
/**
* The Creator (user) that created the record in the database. Retrieved from the user login.
*/
protected String creator;
/**
* The Description of the record. The user inputs the description via the UI.
*/
protected String description;
/**
* The Id of the record - auto generated.
*/
protected String id;
/**
* The Name of the record. The user inputs the Name via the UI.
*/
protected String name;
/**
* The date/time when the record was last modified. Retrieved from the system when
* the record is inserted or updated.
*/
protected java.sql.Timestamp timeModified;
/**
*
* @return The username of the user that created the record.
*/
public String getCreator(){
return creator;
}
/**
* The username of the user that created the record.
* @param creator
*/
public void setCreator(String creator){
this.creator = creator;
}
/**
*
* @return The description of the record.
*/
public String getDescription(){
return description;
}
/**
* The user-defined Description of the record.
* @param description
*/
public void setDescription(String description){
this.description = description;
}
/**
*
* @return The ID of the record.
*/
public String getId(){
return id;
}
/**
* The auto-generated ID of the record.
* @param id
*/
public void setId(String id){
this.id = id;
}
/**
*
* @return The Name of the record.
*/
public String getName(){
return name;
}
/**
* The user-defined Name of the record.
* @param name
*/
public void setName(String name){
this.name = name;
}
/**
*
* @return The last date and time when the record was last modified.
*/
public java.sql.Timestamp getTimeModified(){
return timeModified;
}
/**
* The auto-generated date and time when the record is inserted or updated.
* @param timeModified
*/
public void setTimeModified(java.sql.Timestamp timeModified){
this.timeModified = timeModified;
}
/**
* @return The concatenated string of properties for this record, including:
* Id
* Name
* Description
* Creator
* Time Modified
*/
public String toString(){
StringBuffer sb = new StringBuffer();
sb.append("Id: " + this.getId() + "\n");
sb.append("Name: " + this.getName() + "\n");
sb.append("Description: " + this.getDescription() + "\n");
sb.append("Creator: " + this.getCreator() + "\n");
sb.append("Time Modified: " + this.getTimeModified());
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -