📄 templatedto.java
字号:
package com.coshare.joyteam.projectMgr.dto;
import java.io.Serializable;
import java.util.Date;
import com.coshare.joyteam.util.ID;
public class TemplateDTO implements Serializable {
/**
* Serialization version.
*/
private static final long serialVersionUID = 3256440322119577909L;
private ID templateId;
private String templateName;
private int version;
private String creator;
private int creatorType;
private Date creatingTime;
private String theDescription;
static public ID intToID(int intid) {
ID id = new ID();
id.setId(intid);
id.setType(ID.TYPE_WfTemplate);
return id;
}
public TemplateDTO(String templateName, int version) {
this.templateName = templateName;
this.version = version;
}
public TemplateDTO() {}
/**
* @return Returns the creatingTime.
*/
public Date getCreatingTime() {
return creatingTime;
}
/**
* @param creatingTime The creatingTime to set.
*/
public void setCreatingTime(Date creatingTime) {
this.creatingTime = creatingTime;
}
/**
* @return Returns the creator.
*/
public String getCreator() {
return creator;
}
/**
* @param creator The creator to set.
*/
public void setCreator(String creator) {
this.creator = creator;
}
/**
* @return Returns the creatorType.
*/
public int getCreatorType() {
return creatorType;
}
/**
* @param creatorType The creatorType to set.
*/
public void setCreatorType(int creatorType) {
this.creatorType = creatorType;
}
/**
* @return Returns the theDescription.
*/
public String getTheDescription() {
return theDescription;
}
/**
* @param theDescription The theDescription to set.
*/
public void setTheDescription(String theDescription) {
this.theDescription = theDescription;
}
/**
* @return Returns the templateId.
*/
public ID getTemplateId() {
return templateId;
}
/**
* @return Returns the templateName.
*/
public String getTemplateName() {
return templateName;
}
/**
* @return Returns the version.
*/
public int getVersion() {
return version;
}
/**
* @param templateId The templateId to set.
*/
public void setTemplateId(ID templateId) {
this.templateId = templateId;
}
public void setTemplateId(int templateId) {
this.setTemplateId(intToID(templateId));
}
/**
* @param templateName The templateName to set.
*/
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
/**
* @param version The version to set.
*/
public void setVersion(int version) {
this.version = version;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -