📄 xmlstorage.java
字号:
package com.icbcsdc.ddlexp.pub.xml.nodeinfo;
import java.io.InputStream;
import org.w3c.dom.Element;
import sun.security.krb5.internal.crypto.e;
/**
* @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 XMLStorage extends XMLNode {
public static String NAME="Storage";
public XMLStorage() throws NodeException{
super();
this.name=NAME;
}
/**
* @see com.mysqlecc.pub.xml.XmlProcess.XMLNode#getType()
*/
public int getType() {
return XMLNode.XML_STORAGE;
}
/**从数据库中获取数据对象比较后的结果*/
public void refreshChangedProperties(){
}
/**从数据库中获取数据对象定义*/
public void refreshDDLInfo() throws Exception{
this.addChild(new XMLTablespaces());
this.addChild(new XMLUndoSegs());
}
/**
* @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#refresh()
*/
public void refresh() throws Exception{
refreshNodeNeedAccessDB();
super.refresh();
}
/**
* Manager类型的节点下面只能添加Database类型的节点
* */
public boolean chkChildType(XMLNode node){
if(node.getType()==XMLNode.XML_TABLESPACES) return true;
if(node.getType()==XMLNode.XML_UNDO_SEGS) return true;
return false;
}
/**
public InputStream getXmlStream(){
String xml="";
try {
writer.newDocumnet();
Element root=writer.createRoot("storage");
root.setAttribute("name",this.getName());
xml=writer.toString();
} catch (XmlException e) {
e.printStackTrace();
}
return XmlReader.streamFromString(xml);
}
**/
/**
* Returns the 返回定义导出语句.
* @return String
*/
public String getSqlDDL(){
return null;
}
public static void main(String[] args) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -