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

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

public class XMLIndexAccessor
extends XMLSchemaObjAccessor


Field Summary
static int DOMAIN_INDEX
           
 
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
 void applySchemaMap(java.util.HashMap schemaMap, int changeMode)
           
 java.lang.String generateDDL(int transform, int transformParams)
          Methods for transforming XML - primarily XML-to-DDL.
 java.lang.String getAvgDataBlocksPerKey()
           
 java.lang.String getAvgLeafBlocksPerKey()
           
 java.lang.String getBlevel()
           
 java.lang.String getClusteringFactor()
           
 java.lang.String getClusterObjectName()
           
 java.lang.String getClusterSchemaName()
           
 java.lang.String[] getColumns()
           
 java.lang.String getDistinctKeys()
           
 int getIndexType()
           
 boolean getIsBitmap()
           
 boolean getIsBitmapJoin()
           
 boolean getIsCompress()
           
 boolean getIsFunctional()
           
 boolean getIsFunctionalEnabled()
           
 boolean getIsOnCluster()
           
 boolean getIsPartition()
           
 boolean getIsReverse()
           
 boolean getIsUnique()
           
 java.lang.String getKeyCompress()
           
 java.lang.String getLastAnalyzed()
           
 java.lang.String getLeafBlocks()
           
 java.lang.String getNumRows()
           
 java.lang.String getOnObject()
           
 java.lang.String getOnObjectName()
           
 java.lang.String getOnSchemaName()
           
 boolean getPartitioned()
           
 XMLPartitionsAccessor getPartitions()
           
static org.w3c.dom.Node getPartitionsTreeNode(org.w3c.dom.Node xml)
           
 java.lang.String getSampleSize()
           
 java.lang.String getSchemaPath()
           
 XMLSegmentAccessor getSegment()
           
 java.lang.String getStatus()
           
 void initFromDatabase(CMConnection dbConn, java.lang.String objSchema, java.lang.String objName)
          Initializes an accessor from the database.
 void initFromDatabase(CMConnection dbConn, java.lang.String objSchema, java.lang.String objName, boolean forDiffing)
          Initializes an accessor from the database.
 void initializeAll()
          Fully initializes the accessor.
 void setClusterSchemaName(java.lang.String name)
           
 void setOnlineEnabled(boolean onlineEnabled)
           
 void setOnObjectName(java.lang.String name)
           
 void setOnSchemaName(java.lang.String schemaName)
           
 void setOuterJoinTableName(java.lang.String owner, java.lang.String origName, java.lang.String newName)
           
 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.XMLSchemaObjAccessor
getDegree, getDegreeDefault, getNumberPartitions, getObjectName, getObjectSchema, getParallel, getPartitionAt, getQuotedFullName, getSchema, getSXMLDocFromDB, getTablespace, setDegree, setDegreeDefault, setParallel, setSchema, setTablespace
 
Methods inherited from class oracle.sysman.dbTarget.db.changemgr.emo.docaccess.XMLAccessor
applyDiffs, applySchemaMap, compareDefinition, compareDefinition, compareDefinition, compareDefinition, createXslTransformInfo, generateDDL, generateDDL, generateDDLs, getAppendStatistics, getChangeMode, getColumnName, getDDL, getDDL, getDDL, getDDLForExecution, getDDLForExecution, getDifferencesDocument, getDocument, getDropDDL, getName, getQuotedName, getXMLAccessorForType, getXMLAccessorForType, getXMLAccessorForType, hasDiffs, initialize, 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

DOMAIN_INDEX

public static final int DOMAIN_INDEX
See Also:
Constant Field Values
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

initFromDatabase

public void initFromDatabase(CMConnection dbConn,
                             java.lang.String objSchema,
                             java.lang.String objName)
                      throws java.sql.SQLException,
                             XMLAccessorException
Description copied from class: XMLAccessor
Initializes an accessor from the database. Does not prepare the SXML document for diffing.

Overrides:
initFromDatabase in class XMLAccessor
Parameters:
dbConn - connection to the database containing the object
objSchema - schema that contains the object; null for non-schema objects
objName - name of the object
Throws:
java.sql.SQLException
XMLAccessorException

initFromDatabase

public void initFromDatabase(CMConnection dbConn,
                             java.lang.String objSchema,
                             java.lang.String objName,
                             boolean forDiffing)
                      throws java.sql.SQLException,
                             XMLAccessorException
Description copied from class: XMLAccessor
Initializes an accessor from the database. Optionally prepares the SXML document for diffing.

Overrides:
initFromDatabase in class XMLAccessor
Parameters:
dbConn - connection to the database containing the object
objSchema - schema that contains the object; null for non-schema objects
objName - name of the object
forDiffing - true if the SXML document will be compared to another to create a Diff SXML document; false if this preparation is not required
Throws:
java.sql.SQLException
XMLAccessorException

initializeAll

public void initializeAll()
                   throws XMLAccessorException
Description copied from class: XMLAccessor
Fully initializes the accessor. For most types, this is unnecessary, but some types (notably Table) access much of their information using separate accessors. Such types should override this method to fully initialize their accessors.

Overrides:
initializeAll in class XMLAccessor
Throws:
XMLAccessorException - if the XMLAccessor subclass cannot be initialized.

getSegment

public XMLSegmentAccessor getSegment()
Overrides:
getSegment in class XMLSchemaObjAccessor

applySchemaMap

public void applySchemaMap(java.util.HashMap schemaMap,
                           int changeMode)
Overrides:
applySchemaMap in class XMLSchemaObjAccessor

getSchemaPath

public java.lang.String getSchemaPath()

getIndexType

public int getIndexType()

getColumns

public java.lang.String[] getColumns()

getOnSchemaName

public java.lang.String getOnSchemaName()

setOnSchemaName

public void setOnSchemaName(java.lang.String schemaName)

getOnObjectName

public java.lang.String getOnObjectName()

getOnObject

public java.lang.String getOnObject()

setOnObjectName

public void setOnObjectName(java.lang.String name)

getClusterSchemaName

public java.lang.String getClusterSchemaName()

setClusterSchemaName

public void setClusterSchemaName(java.lang.String name)

getClusterObjectName

public java.lang.String getClusterObjectName()

getIsOnCluster

public boolean getIsOnCluster()

getIsUnique

public boolean getIsUnique()

getIsBitmap

public boolean getIsBitmap()

getStatus

public java.lang.String getStatus()

getIsBitmapJoin

public boolean getIsBitmapJoin()

getIsCompress

public boolean getIsCompress()

getIsFunctional

public boolean getIsFunctional()

getIsFunctionalEnabled

public boolean getIsFunctionalEnabled()

getIsPartition

public boolean getIsPartition()

getPartitioned

public boolean getPartitioned()
Overrides:
getPartitioned in class XMLSchemaObjAccessor

getPartitions

public XMLPartitionsAccessor getPartitions()
Overrides:
getPartitions in class XMLSchemaObjAccessor

getIsReverse

public boolean getIsReverse()

getKeyCompress

public java.lang.String getKeyCompress()

setOuterJoinTableName

public void setOuterJoinTableName(java.lang.String owner,
                                  java.lang.String origName,
                                  java.lang.String newName)

setOnlineEnabled

public void setOnlineEnabled(boolean onlineEnabled)

getLastAnalyzed

public java.lang.String getLastAnalyzed()

getBlevel

public java.lang.String getBlevel()

getDistinctKeys

public java.lang.String getDistinctKeys()

getClusteringFactor

public java.lang.String getClusteringFactor()

getLeafBlocks

public java.lang.String getLeafBlocks()

getAvgLeafBlocksPerKey

public java.lang.String getAvgLeafBlocksPerKey()

getAvgDataBlocksPerKey

public java.lang.String getAvgDataBlocksPerKey()

getNumRows

public java.lang.String getNumRows()

getSampleSize

public java.lang.String getSampleSize()

getPartitionsTreeNode

public static org.w3c.dom.Node getPartitionsTreeNode(org.w3c.dom.Node xml)

generateDDL

public java.lang.String generateDDL(int transform,
                                    int transformParams)
Description copied from class: XMLAccessor
Methods for transforming XML - primarily XML-to-DDL. The methods are named generateDDL for historic reasons but they can be used for any transformation.

Overrides:
generateDDL in class XMLAccessor

toString

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