propertycontainer.java
来自「导出ORACLE数据库对象DDL语句的程序」· Java 代码 · 共 60 行
JAVA
60 行
package com.icbcsdc.ddlexp.pub.xml.nodeinfo;
import java.util.Hashtable;
/**
* @author zhangyc
*
* To change this generated comment edit the template variable "typecomment":
* Window>Preferences>Java>Templates.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
*/
public class PropertyContainer {
Hashtable container=new Hashtable();
/**
* Constructor for PropertyContainer.
*/
public PropertyContainer() {
super();
}
public void putChangedProperty(String name,String oldValue,String newValue){
PropertyChanged property=new PropertyChanged(name,oldValue,newValue);
container.put(name,property);
}
/**
* Returns the newValue.
* @return String
*/
public String getChangedPropertyNewValue(String name) {
PropertyChanged property=(PropertyChanged)container.get(name);
if(property==null) return null;
return property.getNewValue();
}
/**
* Returns the oldValue.
* @return String
*/
public String getChangedPropertyOldValue(String name) {
PropertyChanged property=(PropertyChanged)container.get(name);
if(property==null) return null;
return property.getOldValue();
}
public static void main(String[] args) {
}
/**
* Returns the container.
* @return Hashtable
*/
public Hashtable getChangedProperties() {
return container;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?