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

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.XMLTableAccessor

public class XMLTableAccessor
extends XMLSchemaObjAccessor


Field Summary
static short TR_ENTIRE_STATEMENT
           
static short TR_NO_CONSTRAINTS
           
static short TR_NOT_DROP_CONSTRAINTS
           
static short TR_ONLY_ADD_CONSTRAINTS
           
static short TR_ONLY_DROP_CONSTRAINTS
           
 
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 getAvgRowLen()
           
 java.lang.String getAvgSpace()
           
 java.lang.String getAvgSpaceFreelistBlocks()
           
 boolean getCache()
           
 java.lang.String getChainCnt()
           
 XMLTableColumnsAccessor getColumnByName(java.lang.String colName)
           
 java.util.Vector getColumns()
           
 java.util.Vector getColumns(boolean getFresh)
           
 java.util.Vector getConstraints()
           
 java.lang.String getEmptyBlocks()
           
 boolean getIsClustered()
           
 boolean getIsClusterTable()
           
 boolean getIsRowMovement()
           
 java.lang.String getLastAnalyzed()
           
 XMLLOBColumnAccessor getLOBColumn(java.lang.String colName)
           
 java.util.Vector getLOBColumns()
           
 java.lang.String getLogging()
           
 boolean getMonitoring()
           
 java.lang.String getNumFreelistBlocks()
           
 java.lang.String getNumRows()
           
 long getObjNum()
           
 int getOrganization()
           
 XMLTableIOTAccessor getOverflowSegment()
           
 boolean getPartitioned()
           
 XMLPartitionsAccessor getPartitions()
           
static org.w3c.dom.Node getPartitionsTreeNode(org.w3c.dom.Node xml)
           
 byte getRowMovement()
           
static java.lang.String getSafeString(org.w3c.dom.Node n, java.lang.String xp)
          Statistics helper.
 java.lang.String getSampleSize()
           
 java.lang.String getSchemaElement()
           
 java.lang.String getSchemaName()
           
 java.lang.String getSchemaOwner()
           
 java.lang.String getSchemaPath()
           
 java.lang.String getSchemaURL()
           
 XMLSegmentAccessor getSegment()
           
 java.util.Vector getSQLVector(short scope)
           
 int getTempType()
          ON_COMMIT = 'DELETE' Transaction duration gtt ON_COMMIT = 'PRESERVE' Session duration gtt Else not temporary
 boolean hasOverflowSegment()
           
 void initializeAll()
          Fully initializes the accessor.
 void removeConstraint(int index)
           
 boolean setDefinedUsing(boolean defUsing)
           
 void setGenConstraintStorage(boolean genCS)
           
 void setIncludingColumn(java.lang.String incCol)
           
 void setIsClustered(boolean isClustered)
           
 void setIsRowMovement(boolean rm)
           
 void setLogging(java.lang.String logging)
           
 void setPctThreshold(short pctThreshold)
           
 void setSchemaOwner(java.lang.String schema)
           
 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, generateDDL, generateDDLs, getAppendStatistics, getChangeMode, getColumnName, getDDL, getDDL, getDDL, getDDLForExecution, getDDLForExecution, getDifferencesDocument, getDocument, getDropDDL, getName, getQuotedName, getXMLAccessorForType, getXMLAccessorForType, getXMLAccessorForType, hasDiffs, initFromDatabase, initFromDatabase, 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

TR_NO_CONSTRAINTS

public static final short TR_NO_CONSTRAINTS
See Also:
Constant Field Values

TR_NOT_DROP_CONSTRAINTS

public static final short TR_NOT_DROP_CONSTRAINTS
See Also:
Constant Field Values

TR_ONLY_DROP_CONSTRAINTS

public static final short TR_ONLY_DROP_CONSTRAINTS
See Also:
Constant Field Values

TR_ENTIRE_STATEMENT

public static final short TR_ENTIRE_STATEMENT
See Also:
Constant Field Values

TR_ONLY_ADD_CONSTRAINTS

public static final short TR_ONLY_ADD_CONSTRAINTS
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

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

getColumns

public java.util.Vector getColumns()

getColumns

public java.util.Vector getColumns(boolean getFresh)

getColumnByName

public XMLTableColumnsAccessor getColumnByName(java.lang.String colName)

getConstraints

public java.util.Vector getConstraints()

removeConstraint

public void removeConstraint(int index)

applySchemaMap

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

getSchemaPath

public java.lang.String getSchemaPath()

getCache

public boolean getCache()

getOrganization

public int getOrganization()

hasOverflowSegment

public boolean hasOverflowSegment()

setPctThreshold

public void setPctThreshold(short pctThreshold)

setIncludingColumn

public void setIncludingColumn(java.lang.String incCol)

getPartitioned

public boolean getPartitioned()
Overrides:
getPartitioned in class XMLSchemaObjAccessor

getPartitions

public XMLPartitionsAccessor getPartitions()
Overrides:
getPartitions in class XMLSchemaObjAccessor

getOverflowSegment

public XMLTableIOTAccessor getOverflowSegment()

getLOBColumn

public XMLLOBColumnAccessor getLOBColumn(java.lang.String colName)
                                  throws XMLAccessorException
Throws:
XMLAccessorException

getLOBColumns

public java.util.Vector getLOBColumns()
                               throws XMLAccessorException
Throws:
XMLAccessorException

getPartitionsTreeNode

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

getMonitoring

public boolean getMonitoring()

getTempType

public int getTempType()
ON_COMMIT = 'DELETE' Transaction duration gtt ON_COMMIT = 'PRESERVE' Session duration gtt Else not temporary


getObjNum

public long getObjNum()

getRowMovement

public byte getRowMovement()

getIsRowMovement

public boolean getIsRowMovement()

setIsRowMovement

public void setIsRowMovement(boolean rm)

setDefinedUsing

public boolean setDefinedUsing(boolean defUsing)

getIsClusterTable

public boolean getIsClusterTable()

getIsClustered

public boolean getIsClustered()

getLogging

public java.lang.String getLogging()

setLogging

public void setLogging(java.lang.String logging)

getSQLVector

public java.util.Vector getSQLVector(short scope)
                              throws XMLAccessorException
Throws:
XMLAccessorException

setIsClustered

public void setIsClustered(boolean isClustered)
                    throws XMLAccessorException
Throws:
XMLAccessorException

setGenConstraintStorage

public void setGenConstraintStorage(boolean genCS)

getSafeString

public static java.lang.String getSafeString(org.w3c.dom.Node n,
                                             java.lang.String xp)
Statistics helper. Used by IndexAccessor as well


getLastAnalyzed

public java.lang.String getLastAnalyzed()

getEmptyBlocks

public java.lang.String getEmptyBlocks()

getAvgSpace

public java.lang.String getAvgSpace()

getNumRows

public java.lang.String getNumRows()

getSampleSize

public java.lang.String getSampleSize()

getAvgRowLen

public java.lang.String getAvgRowLen()

getChainCnt

public java.lang.String getChainCnt()

getAvgSpaceFreelistBlocks

public java.lang.String getAvgSpaceFreelistBlocks()

getNumFreelistBlocks

public java.lang.String getNumFreelistBlocks()

getSchemaOwner

public java.lang.String getSchemaOwner()

setSchemaOwner

public void setSchemaOwner(java.lang.String schema)

getSchemaName

public java.lang.String getSchemaName()

getSchemaURL

public java.lang.String getSchemaURL()

getSchemaElement

public java.lang.String getSchemaElement()

toString

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