?? pmattachmentbean.java
字號:
/*
* $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/db/PmAttachmentBean.java,v 1.8 2006/04/14 17:05:26 minhnn Exp $
* $Author: minhnn $
* $Revision: 1.8 $
* $Date: 2006/04/14 17:05:26 $
*
* ====================================================================
*
* Copyright (C) 2002-2006 by MyVietnam.net
* All copyright notices regarding mvnForum MUST remain
* intact in the scripts and in the outputted HTML.
* The "powered by" text/logo with a link back to
* http://www.mvnForum.com and http://www.MyVietnam.net in
* the footer of the pages MUST remain visible when the pages
* are viewed on the internet or intranet.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Support can be obtained from support forums at:
* http://www.mvnForum.com/mvnforum/index
*
* Correspondence and Marketing Questions can be sent to:
* info at MyVietnam net
*
* @author: Minh Nguyen
* @author: Mai Nguyen
*/
package com.mvnforum.db;
import java.sql.Timestamp;
import java.util.Collection;
import java.util.Iterator;
import net.myvietnam.mvncore.util.StringUtil;
/*
* Included columns: PmAttachID, MemberID, PmAttachFilename, PmAttachFileSize,
* PmAttachMimeType, PmAttachDesc, PmAttachCreationIP, PmAttachCreationDate, PmAttachModifiedDate,
* PmAttachDownloadCount, PmAttachOption, PmAttachStatus
* Excluded columns:
*/
public class PmAttachmentBean {
private int pmAttachID;
private int memberID;
private String pmAttachFilename;
private int pmAttachFileSize;
private String pmAttachMimeType;
private String pmAttachDesc;
private String pmAttachCreationIP;
private Timestamp pmAttachCreationDate;
private Timestamp pmAttachModifiedDate;
private int pmAttachDownloadCount;
private int pmAttachOption;
private int pmAttachStatus;
public int getPmAttachID() {
return pmAttachID;
}
public void setPmAttachID(int pmAttachID) {
this.pmAttachID = pmAttachID;
}
public int getMemberID() {
return memberID;
}
public void setMemberID(int memberID) {
this.memberID = memberID;
}
public String getPmAttachFilename() {
return pmAttachFilename;
}
public void setPmAttachFilename(String pmAttachFilename) {
this.pmAttachFilename = StringUtil.getEmptyStringIfNull(pmAttachFilename);
}
public int getPmAttachFileSize() {
return pmAttachFileSize;
}
public void setPmAttachFileSize(int pmAttachFileSize) {
this.pmAttachFileSize = pmAttachFileSize;
}
public String getPmAttachMimeType() {
return pmAttachMimeType;
}
public void setPmAttachMimeType(String pmAttachMimeType) {
this.pmAttachMimeType = StringUtil.getEmptyStringIfNull(pmAttachMimeType);
}
public String getPmAttachDesc() {
return pmAttachDesc;
}
public void setPmAttachDesc(String pmAttachDesc) {
this.pmAttachDesc = StringUtil.getEmptyStringIfNull(pmAttachDesc);
}
public String getPmAttachCreationIP() {
return pmAttachCreationIP;
}
public void setPmAttachCreationIP(String pmAttachCreationIP) {
this.pmAttachCreationIP = StringUtil.getEmptyStringIfNull(pmAttachCreationIP);
}
public Timestamp getPmAttachCreationDate() {
return pmAttachCreationDate;
}
public void setPmAttachCreationDate(Timestamp pmAttachCreationDate) {
this.pmAttachCreationDate = pmAttachCreationDate;
}
public Timestamp getPmAttachModifiedDate() {
return pmAttachModifiedDate;
}
public void setPmAttachModifiedDate(Timestamp pmAttachModifiedDate) {
this.pmAttachModifiedDate = pmAttachModifiedDate;
}
public int getPmAttachDownloadCount() {
return pmAttachDownloadCount;
}
public void setPmAttachDownloadCount(int pmAttachDownloadCount) {
this.pmAttachDownloadCount = pmAttachDownloadCount;
}
public int getPmAttachOption() {
return pmAttachOption;
}
public void setPmAttachOption(int pmAttachOption) {
this.pmAttachOption = pmAttachOption;
}
public int getPmAttachStatus() {
return pmAttachStatus;
}
public void setPmAttachStatus(int pmAttachStatus) {
this.pmAttachStatus = pmAttachStatus;
}
public String getXML() {
StringBuffer xml = new StringBuffer(1024);
xml.append("<PmAttachmentSection>\n");
xml.append(" <Rows>\n");
xml.append(" <Row>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachID</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachID)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>MemberID</Name>\n");
xml.append(" <Value>").append(String.valueOf(memberID)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachFilename</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachFilename)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachFileSize</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachFileSize)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachMimeType</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachMimeType)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachDesc</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachDesc)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachCreationIP</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachCreationIP)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachCreationDate</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachCreationDate)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachModifiedDate</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachModifiedDate)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachDownloadCount</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachDownloadCount)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachOption</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachOption)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachStatus</Name>\n");
xml.append(" <Value>").append(String.valueOf(pmAttachStatus)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" </Row>\n");
xml.append(" </Rows>\n");
xml.append("</PmAttachmentSection>\n");
return xml.toString();
}
public static String getXML(Collection objPmAttachmentBeans) {
StringBuffer xml = new StringBuffer(1024);
Iterator iterator = objPmAttachmentBeans.iterator();
xml.append("<PmAttachmentSection>\n");
xml.append(" <Rows>\n");
while (iterator.hasNext()) {
PmAttachmentBean objPmAttachmentBean = (PmAttachmentBean)iterator.next();
xml.append(" <Row>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachID</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachID)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>MemberID</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.memberID)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachFilename</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachFilename)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachFileSize</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachFileSize)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachMimeType</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachMimeType)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachDesc</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachDesc)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachCreationIP</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachCreationIP)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachCreationDate</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachCreationDate)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachModifiedDate</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachModifiedDate)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachDownloadCount</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachDownloadCount)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachOption</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachOption)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" <Column>\n");
xml.append(" <Name>PmAttachStatus</Name>\n");
xml.append(" <Value>").append(String.valueOf(objPmAttachmentBean.pmAttachStatus)).append("</Value>\n");
xml.append(" </Column>\n");
xml.append(" </Row>\n");
}//while
xml.append(" </Rows>\n");
xml.append("</PmAttachmentSection>\n");
return xml.toString();
}
} //end of class PmAttachmentBean
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -