|
Oracle® OLAP Java API Reference 11g Release 2 (11.2) E10794-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.olapi.metadata.BaseMetadataObject
oracle.olapi.metadata.mdm.MdmObject
oracle.olapi.metadata.mdm.MdmSource
oracle.olapi.metadata.mdm.MdmTable
public class MdmTable
An MdmSource
that represents a table in a relational database. You get an MdmTable
by calling the getTopLevelObject
method of an MdmDatabaseSchema
. For example, the following code gets the MdmTable
for the UNITS_FACT relational table.
MdmTable unitsTable = null; Query cubeQuery = null; String tablename="UNITS_FACT"; try { unitsTable = (MdmTable) mdmDBSchema.getTopLevelObject(tableName); cubeQuery = unitsTable.getQuery(); } catch (Exception ex) { println("Could not get the " + tableName + " table. " + ex); }
Method Summary | |
---|---|
java.lang.Object |
acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context) Calls the visitMdmTable method of the MdmObjectVisitor and passes that method this MdmTable and an Object . |
void |
addColumn(MdmColumn value) Adds an MdmColumn to the List of MdmColumn objects that are associated with this MdmTable . |
java.util.List<MdmColumn> |
getColumns() Gets the MdmColumn objects that are associated with this MdmTable . |
MdmDatabaseSchema |
getOwner() Gets the MdmDatabaseSchema that owns this MdmTable . |
Query |
getQuery() Gets the Query that is associated with this MdmTable . |
MdmQueryColumn |
getQueryColumn(java.lang.String name) Gets the specified MdmQueryColumn . |
java.util.List<MdmQueryColumn> |
getQueryColumns() Gets the MdmQueryColumn objects that are associated with this MdmTable . |
java.lang.String |
getQueryName() Gets the identifier of this MdmTable . |
void |
removeColumn(MdmColumn value) Removes an MdmColumn from the List of MdmColumn objects that are associated with this MdmTable . |
void |
setOwner(MdmDatabaseSchema owner) Specifies an MdmDatabaseSchema as the owner of this MdmTable . |
Methods inherited from class oracle.olapi.metadata.mdm.MdmSource |
---|
getDataType, getSource, getType |
Methods inherited from class oracle.olapi.metadata.mdm.MdmObject |
---|
addDescription, addObjectClassification, findOrCreateDescription, getDescription, getDescription, getDescription, getDescriptions, getMetadataProvider, getName, getNewName, getObjectClassifications, getShortDescription, isClassifiedAs, removeDescription, removeObjectClassification, setDescription, setDescription, setDescription, setName, setShortDescription |
Methods inherited from class oracle.olapi.metadata.BaseMetadataObject |
---|
getContainedByObject, getID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object acceptVisitor(MdmObjectVisitor visitor, java.lang.Object context)
visitMdmTable
method of the MdmObjectVisitor
and passes that method this MdmTable
and an Object
.acceptVisitor
in class MdmObject
visitor
- An MdmObjectVisitor
that implements the Mdm11_ObjectVisitor
interface.context
- An Object
.Object
returned by the visitMdmTable
method.public final java.util.List<MdmColumn> getColumns()
MdmColumn
objects that are associated with this MdmTable
.List
of the MdmColumn
objects associated with this MdmTable
.public void addColumn(MdmColumn value)
MdmColumn
to the List
of MdmColumn
objects that are associated with this MdmTable
.value
- The MdmColumn
to add to this MdmTable
.public void removeColumn(MdmColumn value)
MdmColumn
from the List
of MdmColumn
objects that are associated with this MdmTable
.value
- The MdmColumn
to remove from this MdmTable
.public final MdmDatabaseSchema getOwner()
MdmDatabaseSchema
that owns this MdmTable
.getOwner
in class BaseMetadataObject
MdmDatabaseSchema
that owns this MdmTable
.public final void setOwner(MdmDatabaseSchema owner)
MdmDatabaseSchema
as the owner of this MdmTable
.owner
- The MdmDatabaseSchema
to specify as the owner of this MdmTable
.public final Query getQuery()
Query
that is associated with this MdmTable
.getQuery
in interface MdmQuery
Query
associated with this MdmTable
.public final java.util.List<MdmQueryColumn> getQueryColumns()
MdmQueryColumn
objects that are associated with this MdmTable
. The MdmQueryColumn
objects for an MdmTable
are instances of MdmColumn
, so the List
returned by this method has the same objects as the List
returned by the getColumns
method.getQueryColumns
in interface MdmQuery
List
of the MdmQueryColumn
objects associated with this MdmTable
.public final java.lang.String getQueryName()
MdmTable
.getQueryName
in interface MdmQuery
String
that contains the identifier of this MdmTable
.public MdmQueryColumn getQueryColumn(java.lang.String name)
MdmQueryColumn
.getQueryColumn
in interface MdmQuery
name
- A String
that contains the name of an MdmQueryColumn
.MdmQueryColumn
that has the specified name.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |