oracle.sysman.dbTarget.db.changemgr.emo.docaccess
Class XMLPartitionsAccessor

java.lang.Object
  extended by oracle.sysman.dbTarget.db.changemgr.emo.docaccess.XMLAccessor
      extended by oracle.sysman.dbTarget.db.changemgr.emo.docaccess.XMLPartitionsAccessor

public class XMLPartitionsAccessor
extends XMLAccessor

This class provides accessors to Table and Index Partition attributes. The root node should be the sub-tree containing ONLY the partition metadata in the dom tree.


Field Summary
static java.lang.String SX_COMP_BASE
           
static java.lang.String SX_PART_LIST_ITEM
           
static java.lang.String X_COMP_BASE
           
static java.lang.String X_PART_LIST_ITEM
           
 
Fields inherited from class oracle.sysman.dbTarget.db.changemgr.emo.docaccess.XMLAccessor
DDL_ALTER_LEFT_TO_RIGHT, DDL_ALTER_RIGHT_TO_LEFT, DDL_CREATE_LEFT, DDL_CREATE_RIGHT, DDL_DROP, DIFF_NODES_PATTERN, MDAPI_CLUSTER, MDAPI_DB_LINK, MDAPI_FUNCTION, MDAPI_INDEX, MDAPI_MATERIALIZED_VIEW, MDAPI_MATERIALIZED_VIEW_LOG, MDAPI_PACKAGE, MDAPI_PACKAGE_BODY, MDAPI_PACKAGE_SPEC, MDAPI_PROCEDURE, MDAPI_PROFILE, MDAPI_ROLE, MDAPI_ROLLBACK_SEGMENT, MDAPI_SEQUENCE, MDAPI_SYNONYM, MDAPI_TABLE, MDAPI_TABLESPACE, MDAPI_TRIGGER, MDAPI_TYPE, MDAPI_USER, MDAPI_VIEW
 
Method Summary
 java.lang.String getCompartTbsp()
           
 int getIndexPartitionType()
           
 int getIndexSubpartitionType()
           
 boolean getIsLocalPartitioning()
          -- ---------------------------------------------------------- -- -- INDEX ONLY -- -- ---------------------------------------------------------- --
 XMLLOBColumnAccessor getLOBColumnPartition(java.lang.String partName, java.lang.String colName)
           
 int getLocalPartitionObjectPartitionType()
           
static java.lang.String getOnePartHighValue(org.w3c.dom.Node onePart)
           
static java.lang.String getOnePartName(org.w3c.dom.Node onePart)
           
static java.lang.String getOnePartOverflowTbsp(org.w3c.dom.Node onePart)
           
static java.lang.String getOnePartStatus(org.w3c.dom.Node onePart)
           
static java.lang.String getOnePartTbsp(org.w3c.dom.Node onePart)
           
static java.lang.String getOneSubPartHighValue(org.w3c.dom.Node oneSubPart)
           
static java.lang.String getOneSubPartName(org.w3c.dom.Node oneSubPart)
           
static java.lang.String getOneSubPartTbsp(org.w3c.dom.Node oneSubPart)
           
static java.lang.String getPartColumnName(org.w3c.dom.Node col)
           
 org.w3c.dom.NodeList getPartitionColumns()
           
 org.w3c.dom.NodeList getPartitions()
           
 org.w3c.dom.NodeList getPartitions(int pType)
          If not sub-partitioning get partition list item Else Get Compartition list item.
 int getPartitionType()
           
 XMLSegmentAccessor getSegmentForPartition(java.lang.String partName)
           
 XMLSegmentAccessor getSegmentForPartitionOverflow(java.lang.String partName)
           
 XMLSegmentAccessor getSegmentForSubpartition(java.lang.String subpartName)
           
 XMLSegmentAccessor getSegmentForSubpartition(java.lang.String subpartName, java.lang.String owningPartName)
           
 java.lang.String getSubPartColumnName(org.w3c.dom.Node oneSubCol)
           
 int getSubPartCount()
           
 org.w3c.dom.NodeList getSubPartitionColumns()
           
 org.w3c.dom.NodeList getSubPartitions(org.w3c.dom.Node onePart)
           
 void setXmlDoc(oracle.xml.parser.v2.XMLNode xmlDoc)
          Establishes the base node for relative xpaths.
 java.lang.String toString()
           
 
Methods inherited from class oracle.sysman.dbTarget.db.changemgr.emo.docaccess.XMLAccessor
applyDiffs, applySchemaMap, applySchemaMap, compareDefinition, compareDefinition, compareDefinition, compareDefinition, createXslTransformInfo, generateDDL, generateDDL, generateDDL, generateDDLs, getAppendStatistics, getChangeMode, getColumnName, getDDL, getDDL, getDDL, getDDLForExecution, getDDLForExecution, getDifferencesDocument, getDocument, getDropDDL, getName, getQuotedFullName, getQuotedName, getSXMLDocFromDB, getXMLAccessorForType, getXMLAccessorForType, getXMLAccessorForType, hasDiffs, initFromDatabase, initFromDatabase, initialize, initializeAll, intTypeToMDAPIType, isAlterable, MDAPITypeToIntType, printXmlRoot, registerApplyDiffListener, releaseXML, revert, setAppendStatistics, setObjectName, setTransformParams, sxmlSupported, sxmlSupported
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

X_COMP_BASE

public static java.lang.String X_COMP_BASE

SX_COMP_BASE

public static java.lang.String SX_COMP_BASE

X_PART_LIST_ITEM

public static java.lang.String X_PART_LIST_ITEM

SX_PART_LIST_ITEM

public static java.lang.String SX_PART_LIST_ITEM
Method Detail

setXmlDoc

public void setXmlDoc(oracle.xml.parser.v2.XMLNode xmlDoc)
               throws XMLAccessorException
Description copied from class: XMLAccessor
Establishes the base node for relative xpaths. Subclasses can override to get what they need from the document at the time it is set.

Overrides:
setXmlDoc in class XMLAccessor
Parameters:
xmlDoc - the node from which the base node for relative xpath attribute lookups in this object is derived
Throws:
XMLAccessorException - if it is not possible to derive a base node from xmlNode

getPartitionType

public int getPartitionType()

getSubPartCount

public int getSubPartCount()

getPartitionColumns

public org.w3c.dom.NodeList getPartitionColumns()

getSubPartitionColumns

public org.w3c.dom.NodeList getSubPartitionColumns()

getPartitions

public org.w3c.dom.NodeList getPartitions(int pType)
If not sub-partitioning get partition list item Else Get Compartition list item.


getPartitions

public org.w3c.dom.NodeList getPartitions()

getSegmentForPartition

public XMLSegmentAccessor getSegmentForPartition(java.lang.String partName)
                                          throws XMLAccessorException
Throws:
XMLAccessorException

getSegmentForSubpartition

public XMLSegmentAccessor getSegmentForSubpartition(java.lang.String subpartName)
                                             throws XMLAccessorException
Throws:
XMLAccessorException

getSegmentForSubpartition

public XMLSegmentAccessor getSegmentForSubpartition(java.lang.String subpartName,
                                                    java.lang.String owningPartName)
                                             throws XMLAccessorException
Throws:
XMLAccessorException

getSegmentForPartitionOverflow

public XMLSegmentAccessor getSegmentForPartitionOverflow(java.lang.String partName)
                                                  throws XMLAccessorException
Throws:
XMLAccessorException

getLOBColumnPartition

public XMLLOBColumnAccessor getLOBColumnPartition(java.lang.String partName,
                                                  java.lang.String colName)
                                           throws XMLAccessorException
Throws:
XMLAccessorException

getSubPartitions

public org.w3c.dom.NodeList getSubPartitions(org.w3c.dom.Node onePart)

getPartColumnName

public static java.lang.String getPartColumnName(org.w3c.dom.Node col)

getOnePartName

public static java.lang.String getOnePartName(org.w3c.dom.Node onePart)

getCompartTbsp

public java.lang.String getCompartTbsp()

getOnePartTbsp

public static java.lang.String getOnePartTbsp(org.w3c.dom.Node onePart)

getOnePartOverflowTbsp

public static java.lang.String getOnePartOverflowTbsp(org.w3c.dom.Node onePart)

getOnePartHighValue

public static java.lang.String getOnePartHighValue(org.w3c.dom.Node onePart)

getSubPartColumnName

public java.lang.String getSubPartColumnName(org.w3c.dom.Node oneSubCol)

getOneSubPartName

public static java.lang.String getOneSubPartName(org.w3c.dom.Node oneSubPart)

getOneSubPartHighValue

public static java.lang.String getOneSubPartHighValue(org.w3c.dom.Node oneSubPart)

getOneSubPartTbsp

public static java.lang.String getOneSubPartTbsp(org.w3c.dom.Node oneSubPart)

getIsLocalPartitioning

public boolean getIsLocalPartitioning()
-- ---------------------------------------------------------- -- -- INDEX ONLY -- -- ---------------------------------------------------------- --


getIndexPartitionType

public int getIndexPartitionType()

getIndexSubpartitionType

public int getIndexSubpartitionType()

getLocalPartitionObjectPartitionType

public int getLocalPartitionObjectPartitionType()

getOnePartStatus

public static java.lang.String getOnePartStatus(org.w3c.dom.Node onePart)

toString

public java.lang.String toString()
Overrides:
toString in class XMLAccessor