📄 xmlindcolumns.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -