splbdata.java
来自「struts+hibernate3的源程序」· Java 代码 · 共 65 行
JAVA
65 行
package org.helpsoft.entity.splb;
import java.io.Serializable;
/**
* The SplbData objects extends the generated Value object.
* Put here your presentation specific code.
*
* @author cao guangxin
*/
public class SplbData extends SplbValue implements SplbIf, Serializable {
/**
* Default constructor.
*/
public SplbData() {
}
/**
* Value object constructor.
*/
public SplbData(org.helpsoft.entity.splb.SplbIf value) {
setSplbbm(value.getSplbbm());
setSplbmc(value.getSplbmc());
}
/**
* Return the primary key.
*
* @return java.lang.String with the primary key.
*/
public java.lang.String getPrimaryKey() {
return getSplbbm();
}
/**
* Set the primary key.
*
* @param pk the primary key
*/
public void setPrimaryKey(java.lang.String pk) {
setSplbbm(pk);
}
public String getPrimaryKeyParameters() {
String parameters = "";
parameters += "&splbbm=" + getSplbbm();
return parameters;
}
public String toString() {
StringBuffer str = new StringBuffer("{");
str.append("splbbm=" + getSplbbm() + " ");
str.append("splbmc=" + getSplbmc() + " ");
str.append('}');
return(str.toString());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?