?? routerobject.java.svn-base
字號:
package com.onet.autobill.model;
/**
* @author Daniel Yang
*
* 路由配置表對應每行的值對象
*/
public final class RouterObject implements Comparable {
/**
* 網關Id配置規則
*/
private String gateWayId;
/**
* 優先級配置規則
*/
private int priority;
/**
* 內容配置規則
*/
private String content;
private String serviceId;
private String destTermId;
private String forbidProv;
private int disable;
private String isReply;
private int configId;
private int productId;
/**
* 業務注冊號
*/
private int businessId;
public String getGateWayId() {
return gateWayId;
}
public void setGateWayId(String gateWayId) {
this.gateWayId = gateWayId;
}
public int getPriority() {
return priority;
}
public void setPriority(int priority) {
this.priority = priority;
}
public String getDestTermId() {
return destTermId;
}
public void setDestTermId(String string) {
destTermId = string;
}
public String getContent() {
return content;
}
public void setContent(String string) {
content = string;
}
public int getBusinessId() {
return businessId;
}
public void setBusinessId(int i) {
businessId = i;
}
/*
* (non-Javadoc)
*
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
public int compareTo(Object o) {
return compareTo((RouterObject) o);
}
/**
* 比較優先級
*
* @param lineObject
* @return 優先級相等返回0,當前對象優先級高1,當前對象優先級低-1;
*/
public int compareTo(RouterObject lineObject) {
// 優先級相等,返回0
if (this.priority == lineObject.priority) {
return 0;
}
// 當前對象優先級高,返回1
if (this.priority > lineObject.priority) {
return 1;
}
// 當前對象優先級低,返回0
return -1;
}
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public int getDisable() {
return disable;
}
public void setDisable(int disable) {
this.disable = disable;
}
public String getIsReply() {
return isReply;
}
public void setIsReply(String isReply) {
this.isReply = isReply;
}
public String getForbidProv() {
return forbidProv;
}
public void setForbidProv(String forbidProv) {
this.forbidProv = forbidProv;
}
public int getConfigId() {
return configId;
}
public void setConfigId(int configId) {
this.configId = configId;
}
public int getProductId() {
return productId;
}
public void setProductId(int productId) {
this.productId = productId;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -