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

📄 connectorvo.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 : ConnectorVO <BR>
 * 
 * Package : jp.co.ntt.awgview.server.vo <BR>
 * 
 * Description: Store information about connection between such as
 * package-package or package-port <BR>
 * 
 * @author : AI&T
 * @version : 1.0
 */
public class ConnectorVO implements Serializable {

	private static final long serialVersionUID = 6191391412901725414L;

	public class PackageConnection implements Serializable {

		private static final long serialVersionUID = 5581566792364386165L;

		/** Define fields of database table */
		public static final String PACKAGE_CONNECT_TBL = "package_connect_tbl";
		public static final String PACKAGE_CONNECT_ID = "package_connect_id";
		public static final String PACKAGE_ID_1 = "package_id_1";
		public static final String PACKAGE_ID_2 = "package_id_2";
		public static final String PACKAGE_CONNECT_COLOR = "package_connect_color";
		public static final String PACKAGE_CONNECT_DIR = "package_connect_direction";
		/*ID of connection*/
		private long packageConnID = -1;
		/*ID of package ID 1st*/
		private long packageID1 = -1;
		/*ID of package ID 2nd*/
		private long packageID2 = -1;
		/*Color of connection*/
		private long connColor = 0;
		/*Direction of connection*/
		private long connDir = 0;

		/**
		 * Sets the Package Connection ID
		 * @param value
		 * 			Connection ID
		 */
		public void setID(long value) {
			this.packageConnID = value;
		}
		/**
		 * Get ID of connection
		 * @return ID of connection
		 */
		public long getID() {
			return this.packageConnID;
		}

		/**
		 * Set ID of package 1nd
		 * @param packageID1
		 * 				ID of package 
		 */
		public void setPackageID1(long packageID1) {
			this.packageID1 = packageID1;
		}

		/**
		 * Get ID of package 1st
		 *@return ID of package
		 */
		public long getPackageID1() {
			return this.packageID1;
		}

		/**
		 * Set ID of package 2nd
		 * @param packageID2
		 * 				ID of package 
		 */
		public void setPackageID2(long packageID2) {
			this.packageID2 = packageID2;
		}
		/**
		 * Get ID of package 2nd
		 *@return ID of package
		 */
		public long getPackageID2() {
			return this.packageID2;
		}
		/**
		 * Set color of connection
		 * @param value
		 * 			color of connection
		 */
		public void setColor(long value) {
			this.connColor = value;
		}
		/**
		 * Get color of connection
		 * @return Color of connection
		 */
		public long getColor() {
			return this.connColor;
		}
		/**
		 * Set direction of connection
		 * @param value
		 * 			direction of connection
		 * 			
		 */
		public void setDirection(long value) {
			this.connDir = value;
		}
		/**
		 * Get direction of connection
		 * @return direction of connection
		 */
		public long getDirection() {
			return this.connDir;
		}
		/**
		 * Return info of PackageConnection
		 * @return a String object contains info of PackageConnection 
		 */
		public String toString() {
			StringBuffer buff = new StringBuffer();
			buff.append(" Package-Package connection <");
			buff.append("PackageID1: " + getPackageID1() + ", ");
			buff.append("PackageID2: " + getPackageID2() + ", ");
			buff.append("Direction: " + getDirection() + ", ");
			buff.append("Color: " + getColor());
			buff.append(">");
			return buff.toString();
		}

	}

	public class PPConnection implements Serializable {

		/**
		 * 
		 */
		private static final long serialVersionUID = 5581566792364386165L;

		/*
		 * Define fields of database table
		 */
		public static final String CONNECT_TBL = "connect_tbl";
		public static final String CONNECT_ID = "connect_id";
		public static final String PACKAGE_ID1 = "package_id_1";
		public static final String PACKAGE_ID2 = "package_id_2";
		public static final String PORT_ID1 = "port_id_1";
		public static final String PORT_ID2 = "port_id_2";
		public static final String CONNECT_DIR = "connect_direction";
		/*ID of connection*/
		long connectionID = -1;
		/*ID of package 1st*/
		long packageID1   = -1;
		/*ID of package 2nd*/
		long packageID2   = -1;
		/*ID of port 1st*/
		long portID1 = -1;
		/*ID of port 2nd*/
		long portID2 = -1;
		/*Direction of connection*/
		int  connDir = 0;

		/**
		 * Set ID of connection  
		 * @param connectionID
		 * 					ID of connection 
		 */
		public void setID(long connectionID) {
			this.connectionID = connectionID;
		}
		
		/**
		 * Get ID of connection object
		 * @return ID of connection object
		 */
		public long getID() {
			return this.connectionID;
		}

		/**
		 * Set ID of package 1st
		 * @param packageID1
		 * 				ID of package 
		 */
		public void setPackageID1(long packageID1) {
			this.packageID1 = packageID1;
		}

		/**
		 * Get ID of package 1st
		 * @return ID of package
		 */
		public long getPackage1() {
			return this.packageID1;
		}

		/**
		 * Set ID of package 2nd
		 * @param packageID2
		 * 				ID of package 
		 */
		public void setPackageID2(long packageID2) {
			this.packageID2 = packageID2;
		}
		/**
		 * Get ID of package 2nd
		 * @return ID of package
		 */
		public long getPackage2() {
			return this.packageID2;
		}

		/**
		 * Set ID of port 1st
		 * @param portID1
		 * 				ID of port 
		 */
		public void setPortID1(long portID1) {
			this.portID1 = portID1;
		}
		/**
		 * Get ID of port 1st
		 * @return Port ID 1st
		 */
		public long getPortID1() {
			return this.portID1;
		}
		/**
		 * Set ID of port 2nd
		 * @param portID2
		 * 				ID of port 
		 */
		public void setPortID2(long portID2) {
			this.portID2 = portID2;
		}
		/**
		 * Get ID of port 2nd
		 * @return Port ID 2nd
		 */
		public long getPortID2() {
			return this.portID2;
		}
		/**
		 * Set direction of connection
		 * @param value
		 * 			direction of connection
		 */
		public void setDirection(int value) {
			this.connDir = value;
		}
		/**
		 * Get direction of connection
		 * @return direction of connection
		 */
		public int getDirection() {
			return this.connDir;
		}

		/**
		 * Return info of PPConnection
		 * @return a String object contains info of PPConnection 
		 */
		public String toString() {
			StringBuffer buff = new StringBuffer();
			buff.append(" Package-Port connection <");
			buff.append("PackageID1: " + getPackage1() + ", ");
			buff.append("PackageID2: " + getPackage2() + ", ");
			buff.append("PortID1: " + getPortID1() + ", ");
			buff.append("PortID2: " + getPortID2() + ", ");
			buff.append("Direction: " + getDirection());
			buff.append(">");
			return buff.toString();
		}
	}

}

⌨️ 快捷键说明

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