⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 operationvo.java.svn-base

📁 this is example use EJB with jboss.
💻 SVN-BASE
字号:
/*
 * Copyright(C) 2008, NTT AT Co., Ltd.
 * Project: AWGView
 *
 * Notes:
 *  N/A
 *
 * Record of change:
 * Date         Version      Name       Content
 * 2008/12/15   1.0          TuanNA      First create       
 */
package jp.co.ntt.awgview.server.vo;

import java.io.Serializable;

/**
 * Class name : OperationVO <BR>
 * 
 * Package : jp.co.nttat.awgstar.server.vo <BR>
 * 
 * Description: Store information about operaton history of user when login and
 * logout <BR> 
 * 
 * @author : AI&T
 * @version : 1.0
 */
public class OperationVO implements Serializable {

	private static final long serialVersionUID = 69562448792495853L;

	/** Define fields of database table */
	public static final String OPERATION_TBL     = "ophistory_tbl";
	public static final String OPERATION_ID      = "ophistory_id";
	public static final String OPERATION_CONTENT = "ophistory_content";
	public static final String OPERATION_TIME    = "ophistory_time";

	/*User name corresponding with operation time*/
	private String userName = "";
	/*Operation ID*/
	private long logID   = -1;
	/*Time when operation created*/
	private long logTime = -1;
	/*Content of operation*/
	private String strContent = "";
    /**
     *  Set content of operation
     * @param content
     * 			content of operation
     */
	public void setContent(String content) {
		strContent = content;
	}
	/**
	 * Get content of operation
	 * @return content of operation
	 */
	public String getContent() {
		return strContent;
	}

    /**
     * Set time when operation is created
     * @param time
     * 				time in long number in milliseconds
     */
	public void setTime(long time) {
		logTime = time;
	}

	/**
	 * Get time which generated when operation created
	 * @return time in long number in milliseconds
	 */
	public long getTime() {
		return logTime;
	}

	/**
	 * Set user name with name specified6
	 * @param userName
	 * 				user's name used when login
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * Get user name corresponding with operation log object
	 * @return user name
	 */
	public String getUserName() {
		return this.userName;
	}
	/**
	 * Set ID for operation object
	 * @param logID
	 */
	public void setID(long logID) {
		this.logID = logID;
	}
	
	/**
	 * Get ID of operation history
	 * @return  ID of operation history
	 */
	public long getID() {
		return this.logID;
	}

	/**
	 * Return info of OperationVO
	 * @return a String object contains info of OperationVO 
	 */
	public String toString() {
		StringBuffer buff = new StringBuffer();
		buff.append(" user's operation: <");
		buff.append("Username: " + getUserName() + ", ");
		buff.append("Content: " + getContent() + ", ");
		buff.append("Time: " + getTime());
		buff.append(">");
		return buff.toString();
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -