Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.5)

E22566-01

oracle.apps.fnd.applxdf.comp
Class ViewObject

java.lang.Object
  extended by oracle.apps.fnd.applxdf.comp.DBObject
      extended by oracle.apps.fnd.applxdf.comp.ViewObject

public class ViewObject
extends DBObject

class definition.


Field Summary
 
Fields inherited from class oracle.apps.fnd.applxdf.comp.DBObject
indexExists, logger, mapPartition, notToEmitAlterDDLArray, objDoc, objectName, objElm, param
 
Constructor Summary
ViewObject()
          Constructor.
ViewObject(Parameters theParam, XDFLogger theLogger)
          Constructor with arguments.
 
Method Summary
 void dropView()
          Drop the view.
protected  java.util.Hashtable getAlterXMLParameters()
          Get the alter XML parameters.
protected  java.lang.String getAlterXMLXSLFile()
          Get alter XML XSL file.
protected  java.util.HashMap getClauseTypeNotToEmit()
          Get the clause type not to emit.
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 passed inXML element for the view object.
protected  void getDataFromTargetDB(java.sql.ResultSet rset)
          Get the data from the target db.
protected  java.util.Hashtable getRemapParameters()
          Get the remap parameters.
protected  java.lang.String getRemapXSLFile()
          Get the remap XSL file.
 java.lang.String getViewText()
          get the view text.
 boolean isSubQueryDifferent(oracle.xml.parser.v2.XMLDocumentFragment inXMLFrmt)
          Check the sub query is different.
protected  java.lang.String prepareObjectQuery(java.util.ArrayList arguments)
          Prepare the query statement for the view object.
 void setViewName(java.lang.String viewName)
          Set the view name.
 oracle.xml.parser.v2.XMLDocumentFragment validateDDL(oracle.xml.parser.v2.XMLDocumentFragment alterXML)
          Validate DDL in the alter XML.
 
Methods inherited from class oracle.apps.fnd.applxdf.comp.DBObject
checkTargetDBObjectExists, executeDDLStmt, getAlterDDLArrayToExecute, getAlterXML, getCreateDDLToExecute, getCreateDDLToExecute, getDependentDiffDocument, getDiffDocument, 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

ViewObject

public ViewObject()
Constructor.


ViewObject

public ViewObject(Parameters theParam,
                  XDFLogger theLogger)
Constructor with arguments.

Parameters:
theParam - Parameters instance
theLogger - XDFLogger instance
Method Detail

setViewName

public void setViewName(java.lang.String viewName)
Set the view name.

Parameters:
viewName - the view name

getDataFromSXML

protected void getDataFromSXML(oracle.xml.parser.v2.XMLElement xmlElm)
Get the data from the passed inXML element for the view object.

Specified by:
getDataFromSXML in class DBObject
Parameters:
xmlElm - XML element

prepareObjectQuery

protected java.lang.String prepareObjectQuery(java.util.ArrayList arguments)
Prepare the query statement for the view object.

Specified by:
prepareObjectQuery in class DBObject
Parameters:
arguments - arguments assocaited with the prepared sql statement
Returns:
query statement

getDataFromTargetDB

protected void getDataFromTargetDB(java.sql.ResultSet rset)
Get the data from the target db.

Specified by:
getDataFromTargetDB in class DBObject
Parameters:
rset - ResultSet from the query

getRemapXSLFile

protected java.lang.String getRemapXSLFile()
Get the remap XSL file.

Specified by:
getRemapXSLFile in class DBObject
Returns:
XSL file string

getRemapParameters

protected java.util.Hashtable getRemapParameters()
Get the remap parameters.

Specified by:
getRemapParameters in class DBObject
Returns:
remap parameters hashtable

getCreateDDLXSLFile

protected java.lang.String getCreateDDLXSLFile()
Get the create DDL XSL file.

Specified by:
getCreateDDLXSLFile in class DBObject
Returns:
create DDL XSL file string

getCreateDDLParameters

protected java.util.Hashtable getCreateDDLParameters()
Get the create DDL parameters.

Specified by:
getCreateDDLParameters in class DBObject
Returns:
create DDL parameters hashtable

getAlterXMLXSLFile

protected java.lang.String getAlterXMLXSLFile()
Get alter XML XSL file.

Specified by:
getAlterXMLXSLFile in class DBObject
Returns:
alter xml XSL file

getAlterXMLParameters

protected java.util.Hashtable getAlterXMLParameters()
Get the alter XML parameters.

Overrides:
getAlterXMLParameters in class DBObject
Returns:
alter XML parameters hashtable

validateDDL

public oracle.xml.parser.v2.XMLDocumentFragment validateDDL(oracle.xml.parser.v2.XMLDocumentFragment alterXML)
Validate DDL in the alter XML.

Specified by:
validateDDL in class DBObject
Parameters:
alterXML - alter XML to validate the DDL
Returns:
XMLDocumentFragment after validation

getClauseTypeNotToEmit

protected java.util.HashMap getClauseTypeNotToEmit()
Get the clause type not to emit.

Specified by:
getClauseTypeNotToEmit in class DBObject
Returns:
cluase type hash map not to emit

dropView

public void dropView()
              throws java.lang.Exception
Drop the view.

Throws:
java.lang.Exception - when closing the statement.

getViewText

public java.lang.String getViewText()
get the view text.

Returns:
view text

isSubQueryDifferent

public boolean isSubQueryDifferent(oracle.xml.parser.v2.XMLDocumentFragment inXMLFrmt)
Check the sub query is different.

Parameters:
inXMLFrmt - alter xml
Returns:
true if different

Oracle Fusion Middleware extensions for XML based Datamodel Framework
11g Release 1 (11.1.1.5)

E22566-01

Copyright © 2011 Oracle. All Rights Reserved.