xmlindcolumns.java
来自「导出ORACLE数据库对象DDL语句的程序」· Java 代码 · 共 68 行
JAVA
68 行
package com.icbcsdc.ddlexp.pub.xml.nodeinfo;
import java.util.ArrayList;
/**
* @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 XMLIndColumns extends XMLNode {
public static final String NAME="Index Columns";
public XMLIndColumns(){
this.name=NAME;
}
/**
* @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#getType()
*/
public int getType() {
return XMLNode.XML_INDCOLUMNS;
}
/**
* @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#chkChildType(XMLNode)
*/
public boolean chkChildType(XMLNode node) {
if(node.getType()==XMLNode.XML_INDCOLUMN) return true;
return false;
}
/**
* @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#getSqlDDL()
*/
public String getSqlDDL() {
return null;
}
/**从数据库中获取数据对象比较后的结果*/
public void refreshChangedProperties()throws Exception{
}
/**从数据库中获取数据对象定义*/
public void refreshDDLInfo()throws Exception{
ArrayList list=((XMLIndex)this.getParent()).getColumns();
for(int i=0;i<list.size();i++){
XMLIndColumn col=(XMLIndColumn)list.get(i);
this.addChild(col);
}
}
/**
* @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#refresh()
*/
public void refresh()throws Exception {
refreshNodeNeedAccessDB();
//super.refresh();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?