|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.AWXML.BaseObject
An abstract class that specifies an object in the Analytic Workspace Java API object model. For a diagram of some of the BaseObject
class hierarchy and associations, see Analytic Workspace Java API Object Model.
The object model identifies an object hierarchy that defines ownership relationships between instances of BaseObject
. For a description of the object hierarchy and other diagrams, see Object Hierarchy.
Objects at the top of the hierarchy are owned by an analytic workspace. The top-level objects are: Cube
, Dimension
, and SolveGroup
. A lower-level object is owned by its parent object. For example, a Measure
is owned by its parent Cube
and a Level
is owned by its parent Hierarchy
.
Each BaseObject
instance has a unique name, which is used to construct its identifier. The object identifier is its full name, which consists of its lineage, unique name, and type. The object lineage identifies the name space of the object. Top-level objects are logically owned by an analytic workspace, but their namespace is the relational schema. The full name of a top-level object does not include a lineage component.
The BaseObject
class provides methods for obtaining the name, identifer, owner (if one exists), and schema of the object. You can move the object by resetting its schema. You can also use BaseObject
methods to assign long, short, and plural descriptive names to the object.
The BaseObject
class provides action methods that interact with the Oracle Database through a JDBC connection. You can use these action methods to physically create, delete, or alter the object in the Database. For objects that exist within a sequence, you can create the object and specify its position. For example, you can specify the order of a dimension reference for a cube, or the position within the solve group for a solve.
The BaseObject
class provides a method for obtaining the full object specification as an XML string.
Field Summary | |
static java.lang.String |
DATABASENULL A constant that specifies that a text reference is null . |
Constructor Summary | |
BaseObject(BaseObject input) Creates a BaseObject for the specified owner. |
Method Summary | |
java.lang.String |
Alter(AWConnection connection) Alters the class attributes of the object in the current analytic workspace of the specified database connection. |
java.lang.String |
Create(AWConnection connection) Creates a BaseObject in the current analytic workspace of the specified database connection. |
java.lang.String |
CreateAfter(AWConnection connection, BaseObject referencedObj) Creates a BaseObject and adds it after the referenced object in a sequence of objects in the current analytic workspace of the specified database connection. |
java.lang.String |
CreateBefore(AWConnection connection, BaseObject referencedObj) Creates a BaseObject and adds it before the referenced object in a sequence in the current analytic workspace of the specified database connection. |
java.lang.String |
CreateFirst(AWConnection connection) Creates a BaseObject and adds it as the first object in a sequence of objects in the current analytic workspace of the specified database connection. |
boolean |
DataRead() Indicates whether the object definition has been read into memory from the analytic workspace by the readAWDefinitions method of the AW object in use. |
java.lang.String |
Delete(AWConnection connection) Deletes the object in the current analytic workspace of the specified database connection. |
java.lang.String |
getColumnName() Gets the column name of the object. |
java.lang.String |
getId() Gets the full name of the object. |
java.lang.String |
getLongName() Gets the long descriptive name of the object. |
java.lang.String |
getLongName(java.lang.String lang) Gets the long descriptive name of the object in the specified language. |
java.lang.String |
getName() Gets the logical name of the object. |
BaseObject |
getOwner() Gets the owner of the current object. |
java.lang.String |
getPluralName() Gets the plural name of the object. |
java.lang.String |
getPluralName(java.lang.String lang) Gets the plural name of the object in the specified language. |
java.lang.String |
getSchema() Gets the relational schema of a top-level object. |
java.lang.String |
getShortName() Gets the short descriptive name of the object. |
java.lang.String |
getShortName(java.lang.String lang) Gets the short descriptive name of the object in the specified language. |
void |
setColumnName(java.lang.String input) Specifies a column name for the object. |
void |
setLongName(java.lang.String input) Assigns a long descriptive name to the object. |
void |
setLongName(java.lang.String lang, java.lang.String input) Assigns to the object a long descriptive name in the specified language. |
void |
setName(java.lang.String input) Specifies the logical name of the object. |
void |
setPluralName(java.lang.String input) Assigns a plural name to the object. |
void |
setPluralName(java.lang.String lang, java.lang.String input) Assigns to the object a plural name in the specified language. |
void |
setSchema(java.lang.String input) Specifies the relational schema of the object. |
void |
setShortName(java.lang.String input) Assigns a short descriptive name to the object. |
void |
setShortName(java.lang.String lang, java.lang.String input) Assigns to the object a short descriptive name in the specified language. |
java.lang.String |
WriteToXML() Gets an XML representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String DATABASENULL
null
.Constructor Detail |
public BaseObject(BaseObject input)
BaseObject
for the specified owner. This method sets the long, short, and plural descriptive names to the default system-generated name for the new object.
To create a top-level object (a Dimension
, Cube
, or SolveGroup
) with no owner, use the factory methods such as AW.createCube()
.
input
- The BaseObject
that owns the new object.Method Detail |
public boolean DataRead()
readAWDefinitions
method of the AW
object in use.
This method returns true
unless a partial read has been executed by the readAWTopLevelDefinitions
method of the AW
.
boolean
that is true
if the object definition has been completely read into memory, or false
otherwise.public void setSchema(java.lang.String input)
Cube
, Dimension
, and SolveGroup
. The top-level objects exist within the namespace of the schema. All other objects inherit the schema of the owner.
When a factory method creates a top-level object, the schema of the object is the default AW$DEFAULT
schema. If you specify a different schema for the object, then the schema must match the schema in which the object is physically created.
input
- A String
that contains the name of the schema for this BaseObject
.public java.lang.String getSchema()
String
that contains the name of the schema, or null
if the object is not a Cube
, Dimension
, or SolveGroup
.public void setName(java.lang.String input)
The logical name is also the default long, short, and plural descriptive name for the object. In general, the simple logical name for an object conforms to the rules for a SQL simple expression. Its length is from 1 to 30 bytes and is not case-sensitive.
input
- A String
that contains a logical name for the object.public java.lang.String getName()
String
that contains the logical name of the object.public void setColumnName(java.lang.String input)
input
- A String
that contains a column name for the object.public java.lang.String getColumnName()
String
that contains the column name of the object.public void setShortName(java.lang.String input)
input
- A String
that contains a short name for the object.public java.lang.String getLongName()
String
that contains the long name of the object.public java.lang.String getLongName(java.lang.String lang)
lang
- A String
that specifies the language for the long name.String
that contains the long name of the object in the specified language.public void setLongName(java.lang.String input)
input
- A String
that contains a long name for the object.public java.lang.String getShortName()
String
that contains the short name of the object.public java.lang.String getShortName(java.lang.String lang)
lang
- A String
that specifies the language for the short name.String
that contains the short name of the object in the specified language.public void setPluralName(java.lang.String input)
input
- A String
that contains a plural name for the object.public java.lang.String getPluralName()
String
that contains the plural name of the object.public java.lang.String getPluralName(java.lang.String lang)
lang
- A String
that specifies the language for the plural name.String
that contains the plural name of the object in the specified language.public java.lang.String getId()
lineage.name.type
String
that contains the full name of the object.public java.lang.String WriteToXML()
String
that contains the XML that represents the object.public BaseObject getOwner()
BaseObject
that owns the current object.public java.lang.String Create(AWConnection connection)
BaseObject
in the current analytic workspace of the specified database connection. If the BaseObject
is part of a sequence, then this method adds it to the end of the list.connection
- The AWConnection
that represents the database connection.String
that contains success
.public java.lang.String CreateFirst(AWConnection connection)
BaseObject
and adds it as the first object in a sequence of objects in the current analytic workspace of the specified database connection. Use this method only to create a BaseObject
that you want to add to a sequence.connection
- The AWConnection
that represents the database connection.String
that contains success
.public java.lang.String CreateAfter(AWConnection connection, BaseObject referencedObj)
BaseObject
and adds it after the referenced object in a sequence of objects in the current analytic workspace of the specified database connection. Use this method only to create a BaseObject
that you want to add to a sequence.connection
- The AWConnection
that represents the database connection.referencedObj
- The BaseObject
in the sequence after which to add the new BaseObject
.String
that contains success
.public java.lang.String CreateBefore(AWConnection connection, BaseObject referencedObj)
BaseObject
and adds it before the referenced object in a sequence in the current analytic workspace of the specified database connection. Use this method only to create a BaseObject
that you want to add to a sequence.connection
- The AWConnection
that represents the database connection.referencedObj
- The BaseObject
in the sequence before which to add the new BaseObject
.String
that contains success
.public java.lang.String Delete(AWConnection connection)
connection
- The AWConnection
that represents database connection.String
that contains success
.public java.lang.String Alter(AWConnection connection)
Alter
method to change descriptive names of the object or to reset the schema of a top-level object. To alter the structural definition of a BaseObject
, you must create, modify, or remove its owned objects.connection
- The AWConnection
that represents the database connection.String
that contains success
.public void setPluralName(java.lang.String lang, java.lang.String input)
lang
- A String
that specifies the language for the plural name.input
- A String
that contains a plural name for the object in the specified language.public void setLongName(java.lang.String lang, java.lang.String input)
lang
- A String
that specifies the language for the long name.input
- A String
that contains a long name for the object in the specified language.public void setShortName(java.lang.String lang, java.lang.String input)
lang
- A String
that specifies the language for the short name.input
- A String
that contains a short name for the object in the specified language.
|
Oracle® OLAP Analytic Workspace Java API Reference 10g Release 2 (10.2) B14351-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |