|
Oracle Fusion Middleware extensions for XML based Datamodel Framework 11g Release 1 (11.1.1.5) E22566-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.apps.fnd.applxdf.comp.DBObject
oracle.apps.fnd.applxdf.comp.TableObject
public class TableObject
Contains methods to create a Table, compare existing Table with the defintition in the xml file and generate DDLs statements if possible to map the differences or throw errors
Field Summary |
---|
Fields inherited from class oracle.apps.fnd.applxdf.comp.DBObject |
---|
indexExists, logger, mapPartition, notToEmitAlterDDLArray, objDoc, objectName, objElm, param |
Constructor Summary | |
---|---|
TableObject()
Constructor. |
|
TableObject(Parameters param,
XDFLogger logger)
Constructor with arguments. |
Method Summary | |
---|---|
boolean |
checkGlobalTemporaryDifferent()
Check to see whether the gloabl temprorary info from the xdf file is the same as those in the target db. |
boolean |
checkTargetDBObjectExists()
Check whether the table Object exists in the target db or not. |
void |
doConstraints(boolean objExists,
boolean changeDB)
Process the constraints. |
void |
doCreateDDLConstraints(oracle.xml.parser.v2.XMLElement xElm)
Get the create table add constraint DDLs and add to arraylist. |
protected java.util.Hashtable |
getAlterXMLParameters()
Get the alter XML parameters |
protected java.lang.String |
getAlterXMLXSLFile()
Get the alter XML XSL file. |
protected java.util.HashMap |
getClauseTypeNotToEmit()
Get the clause type not to emit. |
java.util.ArrayList |
getColumnList()
Get the column list. |
void |
getCommentFromColumns(java.util.HashMap colsHashMap)
Get the comment from columns. |
java.lang.String |
getCommentFromTable()
Get the comment from table. |
protected java.util.Hashtable |
getCreateDDLParameters()
Get the create DDL parameters. |
protected java.lang.String |
getCreateDDLXSLFile()
Get the create DDL XSL file. |
protected void |
getDataFromSXML(oracle.xml.parser.v2.XMLElement xmlElm)
Get the data from the XML Element. |
protected void |
getDataFromTargetDB(java.sql.ResultSet rset)
Get the data from target db. |
oracle.sql.CLOB |
getDiffDocument(oracle.sql.CLOB tranformCLOB)
Compare the difference of the two table documents and generate the difference CLOB. |
java.util.HashMap |
getIsLogical(oracle.xml.parser.v2.XMLElement xmlElm)
Get the ISLOGICAL value for each constraint. |
boolean |
getNeedRebuildIndexes()
Get the need rebuild index flag. |
java.util.HashMap |
getObsoleteColNames()
Get the obsolete column names. |
java.lang.String |
getPhysicalObjectName()
Get the Physical table name in the target DB. |
protected java.util.Hashtable |
getRemapParameters()
Get the remap parameters. |
protected java.lang.String |
getRemapXSLFile()
Get the rempa XSL file. |
java.lang.String |
getReplaceTSpace()
Return the replace table space. |
java.lang.String |
getTableOwner()
Getter for the table schema. |
java.lang.String |
getTableSpaceType()
Get the tablespace type. |
void |
getTableTypeInfo(oracle.xml.parser.v2.XMLDocumentFragment newInputXML)
Get the table type information. |
void |
needRebuildIndexes(oracle.xml.parser.v2.XMLDocument inXMLDoc)
Check to see whether need to rebuild indexes. |
protected java.lang.String |
prepareObjectQuery(java.util.ArrayList arguments)
Prepare the query statement. |
int |
processGlobalTemporaryTable(oracle.xml.parser.v2.XMLDocumentFragment inXML)
Drop the table first and then create the table again. |
oracle.xml.parser.v2.XMLDocumentFragment |
processObsoleteTableColumn(oracle.xml.parser.v2.XMLDocumentFragment inXML,
boolean objectExists)
Handling the table column when the obsolete flag is set If object does not exist in target db, remove the column form the xml. |
void |
setTableOwner(java.lang.String owner)
Set the table owner. |
oracle.xml.parser.v2.XMLDocumentFragment |
validateDDL(oracle.xml.parser.v2.XMLDocumentFragment dddlXMLDoc)
Validate DDL in the alter XMLDocumentFragment. |
Methods inherited from class oracle.apps.fnd.applxdf.comp.DBObject |
---|
executeDDLStmt, getAlterDDLArrayToExecute, getAlterXML, getCreateDDLToExecute, getCreateDDLToExecute, getDependentDiffDocument, getObjectName, getTableSpaceType, getTargetTableSpaceName, isIndexExists, isObjectObsolete, readInputSXML, remapSXML, setObjDoc, setObjectName, setObjElm, stripRowTag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableObject()
public TableObject(Parameters param, XDFLogger logger)
param
- Parameters instancelogger
- XDFLogger instanceMethod Detail |
---|
protected void getDataFromSXML(oracle.xml.parser.v2.XMLElement xmlElm)
getDataFromSXML
in class DBObject
xmlElm
- XML Elementprotected java.lang.String prepareObjectQuery(java.util.ArrayList arguments)
prepareObjectQuery
in class DBObject
arguments
- arguments associated with the query statement
protected void getDataFromTargetDB(java.sql.ResultSet rset)
getDataFromTargetDB
in class DBObject
rset
- resultset from the queryprotected java.lang.String getRemapXSLFile()
getRemapXSLFile
in class DBObject
protected java.util.Hashtable getRemapParameters()
getRemapParameters
in class DBObject
protected java.lang.String getCreateDDLXSLFile()
getCreateDDLXSLFile
in class DBObject
protected java.util.Hashtable getCreateDDLParameters()
getCreateDDLParameters
in class DBObject
protected java.lang.String getAlterXMLXSLFile()
getAlterXMLXSLFile
in class DBObject
protected java.util.Hashtable getAlterXMLParameters()
getAlterXMLParameters
in class DBObject
public oracle.xml.parser.v2.XMLDocumentFragment validateDDL(oracle.xml.parser.v2.XMLDocumentFragment dddlXMLDoc)
validateDDL
in class DBObject
dddlXMLDoc
- alter XMLDocumentFragment
protected java.util.HashMap getClauseTypeNotToEmit()
getClauseTypeNotToEmit
in class DBObject
public boolean checkGlobalTemporaryDifferent()
public int processGlobalTemporaryTable(oracle.xml.parser.v2.XMLDocumentFragment inXML)
inXML
- input xml document
public java.util.ArrayList getColumnList()
public void getTableTypeInfo(oracle.xml.parser.v2.XMLDocumentFragment newInputXML)
newInputXML
- input xml file
java.lang.Exception
- when get the vlaue of the tagpublic void setTableOwner(java.lang.String owner)
owner
- owner stringpublic java.lang.String getTableOwner()
public void needRebuildIndexes(oracle.xml.parser.v2.XMLDocument inXMLDoc)
inXMLDoc
- input xml documentpublic boolean getNeedRebuildIndexes()
public void doConstraints(boolean objExists, boolean changeDB)
objExists
- object exists in target db flagchangeDB
- flag to indicate whether to apply the changes to db.public void doCreateDDLConstraints(oracle.xml.parser.v2.XMLElement xElm)
xElm
- xml elementpublic java.util.HashMap getIsLogical(oracle.xml.parser.v2.XMLElement xmlElm)
public java.lang.String getCommentFromTable()
public void getCommentFromColumns(java.util.HashMap colsHashMap)
colsHashMap
- column hash mappublic oracle.xml.parser.v2.XMLDocumentFragment processObsoleteTableColumn(oracle.xml.parser.v2.XMLDocumentFragment inXML, boolean objectExists)
inXML
- input xml document.objectExists
- object exists in target db or not
public java.util.HashMap getObsoleteColNames()
public java.lang.String getReplaceTSpace()
public java.lang.String getTableSpaceType()
public java.lang.String getPhysicalObjectName()
public boolean checkTargetDBObjectExists()
checkTargetDBObjectExists
in class DBObject
java.lang.Exception
- when the statement or connection is closedpublic oracle.sql.CLOB getDiffDocument(oracle.sql.CLOB tranformCLOB) throws java.lang.Exception
getDiffDocument
in class DBObject
tranformCLOB
- CLOB to be compared to the target DB
java.lang.Exception
- when closing the statement
|
Oracle Fusion Middleware extensions for XML based Datamodel Framework 11g Release 1 (11.1.1.5) E22566-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |