xmlsynonym.java

来自「导出ORACLE数据库对象DDL语句的程序」· Java 代码 · 共 103 行

JAVA
103
字号
package com.icbcsdc.ddlexp.pub.xml.nodeinfo;

import java.io.InputStream;

/**
 * @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 XMLSynonym extends XMLNode {
	
	String tableName=null;
	String tableOwner=null;
	String dblink=null;
	
	public XMLSynonym(String synonymName,
			String tableName,
			String tableOwner,
			String dblink){
		this.name=synonymName;
		this.tableName=tableName;
		this.tableOwner=tableOwner;
		this.dblink=dblink;		
	}
	
	public XMLSynonym(String synonymName){
		this.name=synonymName;
	}
	
	/**
	 * @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#getType()
	 */
	public int getType() {
		return XMLNode.XML_SYNONYM;
	}

	/**
	 * @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#refresh()
	 */
	public void refresh() {
	}

	/**从数据库中获取数据对象比较后的结果*/
	public void refreshChangedProperties(){
	}
	
	/**从数据库中获取数据对象定义*/
	public void refreshDDLInfo(){
	}


	/**
	 * @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#chkChildType(XMLNode)
	 */
	public boolean chkChildType(XMLNode node) {
		return false;
	}

	/**
	 * @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#getXmlStream()
	public InputStream getXmlStream() {
		return null;
	}
	 */

	/**
	 * @see com.icbcsdc.ddlexp.pub.xml.nodeinfo.XMLNode#getSqlDDL()
	 */
	public String getSqlDDL() {
		return this.getSchemaDDLStr();
	}

	public static void main(String[] args) {
	}
	/**
	 * Returns the dblink.
	 * @return String
	 */
	public String getDblink() {
		return dblink;
	}

	/**
	 * Returns the tableName.
	 * @return String
	 */
	public String getTableName() {
		return tableName;
	}

	/**
	 * Returns the tableOwner.
	 * @return String
	 */
	public String getTableOwner() {
		return tableOwner;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?