|
Oracle Fusion Middleware extensions for XML based Datamodel Framework 11g Release 1 (11.1.1.6) E22566-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.apps.fnd.applxdf.comp.DBObject
public abstract class DBObject
Abstract class which contains methods to create different objects, compare the existing one with the defintition in the xml file and generate DDLs statements if possible to map the differences or throw errors
Field Summary | |
---|---|
protected boolean |
indexExists
|
protected XDFLogger |
logger
|
protected java.util.HashMap |
mapPartition
|
protected java.util.ArrayList |
notToEmitAlterDDLArray
|
protected oracle.xml.parser.v2.XMLElement |
objDoc
|
protected java.lang.String |
objectName
|
protected oracle.xml.parser.v2.XMLElement |
objElm
|
protected Parameters |
param
|
Constructor Summary | |
---|---|
DBObject()
constructor. |
Method Summary | |
---|---|
boolean |
checkTargetDBObjectExists()
Check whether the Object exists in the target db or not. |
int |
executeDDLStmt(Parameters theParam,
java.lang.String ddlStmt)
Execute the DDL statement. |
java.util.ArrayList |
getAlterDDLArrayToExecute(oracle.xml.parser.v2.XMLDocumentFragment alterXML)
Get multiple alter DDLs to execute from the XML. |
oracle.xml.parser.v2.XMLDocumentFragment |
getAlterXML(oracle.xml.parser.v2.XMLDocument xmlDiffDoc)
Get the alter XML. |
protected java.util.Hashtable |
getAlterXMLParameters()
Method to get the alter XML parameters for specific object. |
protected abstract java.lang.String |
getAlterXMLXSLFile()
Abstract method to get the alter XML XSL file for specific object. |
protected abstract java.util.HashMap |
getClauseTypeNotToEmit()
Abstract method to get the clause type not to emit for specific object. |
protected abstract java.util.Hashtable |
getCreateDDLParameters()
Abstract method to get the create DDL parameters for the specifc object |
java.lang.String |
getCreateDDLToExecute(oracle.xml.parser.v2.XMLDocumentFragment inXMLDocFrgmt)
Get the create DDL to execute from the XMLDocumentFragment |
java.lang.String |
getCreateDDLToExecute(oracle.xml.parser.v2.XMLElement inXmlElm)
Get the create DDL to execute from the XMLElement |
protected abstract java.lang.String |
getCreateDDLXSLFile()
Abstract method to get the create DDL XSL file for the specific object |
protected abstract void |
getDataFromSXML(oracle.xml.parser.v2.XMLElement inXmlDoc)
Method to get data from the XML for specific object |
protected abstract void |
getDataFromTargetDB(java.sql.ResultSet rset)
Abstract method to get the data from the target database for the specific object |
oracle.sql.CLOB |
getDependentDiffDocument(oracle.sql.CLOB remapCLOB,
java.lang.String baseObjectName,
java.lang.String baseSchemaName)
Compare the difference of the two documents and generate the difference CLOB. |
oracle.sql.CLOB |
getDiffDocument(oracle.sql.CLOB remapCLOB)
Compare the difference of the two documents and generate the difference CLOB. |
java.lang.String |
getObjectName()
Returns the object name. |
protected abstract java.util.Hashtable |
getRemapParameters()
Abstract method to get the remap parameters. |
protected abstract java.lang.String |
getRemapXSLFile()
Abstract method to get the remap XSL file for specific object. |
java.lang.String |
getTableSpaceType(java.lang.String tablespaceName)
Check whether the tablespace type of the object. |
java.lang.String |
getTargetTableSpaceName()
Get the target object table space name. |
boolean |
isIndexExists()
Check to see whether index exists or not. |
boolean |
isObjectObsolete()
Check whether the object is obsolete. |
protected abstract java.lang.String |
prepareObjectQuery(java.util.ArrayList arguments)
Abstract method to prepare the sql query statement for the specifc object. |
oracle.xml.parser.v2.XMLDocument |
readInputSXML()
Read the data into XMLElement for the object from the input xml file. |
oracle.xml.parser.v2.XMLDocumentFragment |
remapSXML(oracle.xml.parser.v2.XMLElement inXmlElm)
Remap the schema, tablespace etc in the XML document. |
protected void |
setObjDoc(oracle.xml.parser.v2.XMLDocument xmlDoc)
|
void |
setObjectName(java.lang.String objectName)
Set the Object Name |
protected void |
setObjElm(oracle.xml.parser.v2.XMLElement xmlElm)
|
oracle.xml.parser.v2.XMLElement |
stripRowTag(oracle.xml.parser.v2.XMLDocument inDoc)
Extract object element from object xml file. |
abstract oracle.xml.parser.v2.XMLDocumentFragment |
validateDDL(oracle.xml.parser.v2.XMLDocumentFragment ddlXMLDoc)
Abstract method to validate the DDL for specific object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Parameters param
protected XDFLogger logger
protected java.lang.String objectName
protected java.util.HashMap mapPartition
protected oracle.xml.parser.v2.XMLElement objElm
protected oracle.xml.parser.v2.XMLElement objDoc
protected boolean indexExists
protected java.util.ArrayList notToEmitAlterDDLArray
Constructor Detail |
---|
public DBObject()
Method Detail |
---|
public java.lang.String getObjectName()
public oracle.xml.parser.v2.XMLDocument readInputSXML()
public oracle.xml.parser.v2.XMLElement stripRowTag(oracle.xml.parser.v2.XMLDocument inDoc)
inDoc
- input xml document
protected abstract void getDataFromSXML(oracle.xml.parser.v2.XMLElement inXmlDoc)
inXmlDoc
- public boolean checkTargetDBObjectExists()
java.lang.Exception
- when the statement or connection is closedpublic java.lang.String getTableSpaceType(java.lang.String tablespaceName)
tablespaceName
- table space name
java.lang.Exception
public java.lang.String getTargetTableSpaceName()
protected abstract java.lang.String prepareObjectQuery(java.util.ArrayList arguments)
arguments
- arguments associated with the prepared sql statement
protected abstract void getDataFromTargetDB(java.sql.ResultSet rset)
rset
- resultset passed to the methodpublic oracle.xml.parser.v2.XMLDocumentFragment remapSXML(oracle.xml.parser.v2.XMLElement inXmlElm)
inXmlElm
- the input XMLElement
protected abstract java.lang.String getRemapXSLFile()
protected abstract java.util.Hashtable getRemapParameters()
public java.lang.String getCreateDDLToExecute(oracle.xml.parser.v2.XMLDocumentFragment inXMLDocFrgmt)
inXMLDocFrgmt
- XMLDocumentFragment to extract the create DDL
public java.lang.String getCreateDDLToExecute(oracle.xml.parser.v2.XMLElement inXmlElm)
inXmlElm
- XMLElement to extract the create DDL
protected abstract java.lang.String getCreateDDLXSLFile()
protected abstract java.util.Hashtable getCreateDDLParameters()
public oracle.sql.CLOB getDiffDocument(oracle.sql.CLOB remapCLOB) throws java.lang.Exception
remapCLOB
- CLOB to be compared to the target DB
java.lang.Exception
- when closing the statementpublic oracle.sql.CLOB getDependentDiffDocument(oracle.sql.CLOB remapCLOB, java.lang.String baseObjectName, java.lang.String baseSchemaName) throws java.lang.Exception
remapCLOB
- CLOB to be compared to the target DBbaseObjectName
- base object namebaseSchemaName
- base schema name
java.lang.Exception
- when the statement is closedpublic oracle.xml.parser.v2.XMLDocumentFragment getAlterXML(oracle.xml.parser.v2.XMLDocument xmlDiffDoc)
xmlDiffDoc
- xmlDiffDoc to be processed
protected abstract java.lang.String getAlterXMLXSLFile()
protected java.util.Hashtable getAlterXMLParameters()
public abstract oracle.xml.parser.v2.XMLDocumentFragment validateDDL(oracle.xml.parser.v2.XMLDocumentFragment ddlXMLDoc)
ddlXMLDoc
- XMLDocumentFragment to be validated
public java.util.ArrayList getAlterDDLArrayToExecute(oracle.xml.parser.v2.XMLDocumentFragment alterXML)
alterXML
- XMLDocumentFragment to extract the alter DDLs
protected abstract java.util.HashMap getClauseTypeNotToEmit()
public int executeDDLStmt(Parameters theParam, java.lang.String ddlStmt)
theParam
- Parameters instanceddlStmt
- DDL statement to be execute
public void setObjectName(java.lang.String objectName)
objectName
- object namepublic boolean isIndexExists()
public boolean isObjectObsolete()
protected void setObjElm(oracle.xml.parser.v2.XMLElement xmlElm)
protected void setObjDoc(oracle.xml.parser.v2.XMLDocument xmlDoc)
|
Oracle Fusion Middleware extensions for XML based Datamodel Framework 11g Release 1 (11.1.1.6) E22566-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |