|
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.AWAction.AWAction
|
+--oracle.AWAction.BuildDatabase
Builds an analytic workspace by defining objects, loading data, and executing solves. The BuildDatabase class is used both by Java applications in an interactive environment and by XML-based applications in a batch environment. In either environment, you must instantiate a BuildDatabase object to load data from the mapped data source or execute calculations in the SolveGroup for the analytic workspace.
Batch applications must also use a BuildDatabase object to define the object containers in the analytic workspace. Interactive applications can use action methods of classes in the AWXML package to define the object containers. Action methods are denoted by an initial capital letter. For example the AWXML.Cube class has the methods Alter, Create, and Delete.
AW, MappingGroup, SolveGroup| Constructor Summary | |
BuildDatabase()Creates a BuildDatabase object. |
|
BuildDatabase(Interaction input)Creates a BuildDatabase in the specified Interaction. |
|
| Method Summary | |
void |
addBuildList(BaseObject input)Adds a Cube, Dimension, or Measure to the list of objects to build in the analytic workspace. |
void |
Execute()Builds the analytic workspace. |
java.lang.String |
Execute(AWConnection connection)Builds the current analytic workspace in the specified database connection. |
java.lang.String |
ExecuteBuild()Builds the analytic workspace. |
java.lang.String |
getAWName()Gets the name of the analytic workspace associated with the BuildDatabase. |
java.util.Vector |
getBuildList()Gets the list of Cube, Dimension, and Measure objects to build in the analytic workspace. |
java.util.GregorianCalendar |
getBuildStartDate()Gets the start date of a scheduled analytic workspace build specified by the BuildDatabase. |
java.lang.String |
getBuildType()Gets the analytic workspace build type, which can be either serial or parallel. |
boolean |
getCleanAttrs()Indicates whether existing attributes in the analytic workspace are deleted before new attributes are loaded. |
boolean |
getCleanDim()Indicates whether dimension members in the analytic workspace are deleted before new members are loaded. |
boolean |
getCleanMeasures()Indicates whether existing measures in the analytic workspace are deleted before new measures are loaded. |
int |
getMaxJobQueues()Gets the maximum number of available job queues. |
boolean |
getRunSolve()Indicates whether to run solves when building the analytic workspace. |
boolean |
getTrackStatus()Indicates whether the BuildDatabase specifies the tracking of the loading of data into the analytic workspace. |
static java.lang.String |
ModifyJobProcesses(AWConnection connection, int jobid, int processes)Changes the number of processes allocated to the specified job. |
void |
removeBuildList(BaseObject input)Removes a Cube, Dimension, or Measure from the list of objects to build in the analytic workspace. |
void |
setActiveObject(BaseObject input)Makes the specified analytic workspace the active object. |
void |
setAWName(java.lang.String input)Makes the named analytic workspace the active object. |
void |
setBuildStartDate(java.util.GregorianCalendar input)Specifies a GregorianCalendar as the start date for a scheduled build of an analytic workspace. |
void |
setBuildStartDate(java.lang.String input)Specifies a String as the start date for a scheduled build of an analytic workspace. |
void |
setBuildType(java.lang.String input)Specifies the type of build of the analytic workspace, which can be either a serial build or a parallel build. |
void |
setCleanAttrs(boolean input)Specifies whether to delete the attributes in the analytic workspace before loading new attributes. |
void |
setCleanAttrs(java.lang.Boolean input)Specifies whether to delete the existing attributes in the analytic workspace before loading new attributes. |
void |
setCleanDim(boolean input)Specifies whether to delete the dimension members in the analytic workspace before loading new members. |
void |
setCleanDim(java.lang.Boolean input)Specifies whether to delete the dimension members in the analytic workspace before loading new members. |
void |
setCleanMeasures(boolean input)Specifies whether to delete the measures in the analytic workspace before loading new measures. |
void |
setCleanMeasures(java.lang.Boolean input)Specifies whether to delete the measures in the analytic workspace before loading new measures. |
void |
setMaxJobQueues(int input)Specifies the maximum number of available job queues. |
void |
setMaxJobQueues(java.lang.String input)Specifies the maximum number of available job queues. |
void |
setRunSolve(boolean input)Specifies whether to run solves when building the analytic workspace. |
void |
setRunSolve(java.lang.Boolean input)Specifies whether to run solves when building the analytic workspace. |
void |
setTrackStatus(boolean input)Specifies whether to track the loading of data into the analytic workspace. |
void |
setTrackStatus(java.lang.Boolean input)Specifies whether to track the loading of data into the analytic workspace. |
static java.lang.String |
StopBuildJob(AWConnection connection, int input)Stops the job process that specifies the building of the analytic workspace. |
java.lang.String |
WriteToXML()Gets an XML representation of the BuildDatabase. |
| Methods inherited from class oracle.AWAction.AWAction |
getActiveObject, getOwner, setOwner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BuildDatabase()
BuildDatabase object.public BuildDatabase(Interaction input)
BuildDatabase in the specified Interaction.input - The Interaction that owns the BuildDatabase object.| Method Detail |
public void setMaxJobQueues(java.lang.String input)
input - A String that specifies the maximum number of job queues.public void setMaxJobQueues(int input)
input - A integer that specifies the maximum number of job queues.public int getMaxJobQueues()
public void setBuildStartDate(java.lang.String input)
String as the start date for a scheduled build of an analytic workspace. Specify the start date in the form of year, month, date, hour, minute, with the values separated by colons as in the following example.
curInteraction = new Interaction();
BuildDatabase myBuild = (BuildDatabase)
curInteraction.createAction("BUILDDATABASE");
myBuild.setBuildStartDate("2005:5:14:6:30");
input - A String that specifies a start date for the build.public void setBuildStartDate(java.util.GregorianCalendar input)
GregorianCalendar as the start date for a scheduled build of an analytic workspace. The following example creates a GregorianCalendar and uses it as the input parameter to the setBuildStartDate method.
curInteraction = new Interaction();
BuildDatabase myBuild = (BuildDatabase)
curInteraction.createAction("BUILDDATABASE");
GregorianCalendar startDate = new GregorianCalendar(2005, 4, 12, 9, 30);
myBuild.setBuildStartDate(startDate);
input - A GregorianCalendar that specifies a start date for the build.public java.util.GregorianCalendar getBuildStartDate()
BuildDatabase.GregorianCalendar that contains the start date of the build.public void setActiveObject(BaseObject input)
setAWName method. An active object takes precedence over an object that you specify by name.input - The AW object you want to make the active object.public void setAWName(java.lang.String input)
setActiveObject method. An active object takes precedence over an object that you specify by name.input - The name of the analytic workspace that you want to build.public java.lang.String getAWName()
BuildDatabase.public void setBuildType(java.lang.String input)
input value is EXECUTE; for a parallel build, the value is BACKGROUND.input - A String that specifies the type of analytic workspace build.public java.lang.String getBuildType()
EXECUTE; for a parallel build, it returns BACKGROUND.String that indicates the type of analytic workspace build specified by the BuildDatabase.public void addBuildList(BaseObject input)
Cube, Dimension, or Measure to the list of objects to build in the analytic workspace. The build list is used for serial builds.input - The Cube, Dimension, or Measure to add to the build list.public void removeBuildList(BaseObject input)
Cube, Dimension, or Measure from the list of objects to build in the analytic workspace. The build list is used for serial builds.input - The Cube, Dimension, or Measure to remove from the build list.public java.util.Vector getBuildList()
Cube, Dimension, and Measure objects to build in the analytic workspace. The build list is used for serial builds.Vector of the Cube, Dimension, and Measure objects to build.public java.lang.String WriteToXML()
BuildDatabase.String that is an XML representation of the BuildDatabase.public void Execute()
public java.lang.String Execute(AWConnection connection)
connection - The AWConnection that specifies the database connection.String that contains the results of the operation.public void setCleanDim(boolean input)
true as the input value. To load new members over the existing members, specify false.input - A boolean that is true if you want to delete dimension members before loading new members or false otherwise.public void setCleanDim(java.lang.Boolean input)
true as the value of the input object. To load new members over the existing members, specify false.input - A Boolean that has true if you want to delete dimension members before loading new members or false otherwise.public boolean getCleanDim()
true if dimension members are deleted before loading new members or false otherwise.boolean that is true if dimension members are deleted before loading new members or false otherwise.public void setCleanAttrs(boolean input)
true as the input value. To load new attributes over the existing attributes, specify false.input - A boolean that is true if you want to delete existing attributes before loading new attributes or false otherwise.public void setCleanAttrs(java.lang.Boolean input)
true as the value of the input object. To load new attributes over the existing attributes, specify false.input - A Boolean that has true if you want to delete attributes before loading new attributes or false otherwise.public boolean getCleanAttrs()
true if attributes are deleted before loading new attributes or false otherwise.boolean that is true if existing attributes are deleted before loading new attributes or false otherwise.public void setCleanMeasures(boolean input)
true as the input value. To load new measures over the existing measures, specify false.input - A boolean that is true if you want to delete existing measures before loading new measures or false otherwise.public void setCleanMeasures(java.lang.Boolean input)
true as the input value. To load new measures over the existing measures, specify false.input - A Boolean that has true if you want to delete existing measures before loading new measures or false otherwise.public boolean getCleanMeasures()
true if measures are deleted before loading new measures or false otherwise.boolean that is true if existing measures are deleted before loading new measures or false otherwise.public void setRunSolve(boolean input)
true as the input value. To build the analytic workspace without running the solves, specify false.input - A boolean that is true if you want to run the solves during a build or false otherwise.public void setRunSolve(java.lang.Boolean input)
true as the value of the input object. To build the analytic workspace without running the solves, specify false.input - A Boolean that has true if you want to run the solves during a build or false otherwise.public boolean getRunSolve()
true if the BuildDatabase specifies the running of solves when building the analytic workspace or false otherwise.boolean that is true if the BuildDatabase specifies the running of solves when building the analytic workspace or false otherwise.public void setTrackStatus(boolean input)
true as the input value. To not track the status, specify false.input - A boolean that is true if you want to track the status of the data load or false otherwise.public void setTrackStatus(java.lang.Boolean input)
true as the input value. To not track the status, specify false.input - A Boolean that has true if you want to track the status of the data load or false otherwise.public boolean getTrackStatus()
BuildDatabase specifies the tracking of the loading of data into the analytic workspace. This method returns true if the BuildDatabase specifies the tracking of the status of the data load or false otherwise.boolean that is true if the BuildDatabase specifies the tracking of the status of the data load or false otherwise.
public static java.lang.String StopBuildJob(AWConnection connection,
int input)
connection - An AWConnection that specifies a connection to an Oracle Database instance.input - An integer that is the number of the job to stop.String that indicates the results of attempting to stop the job.
public static java.lang.String ModifyJobProcesses(AWConnection connection,
int jobid,
int processes)
connection - An AWConnection that specifies a connection to an Oracle Database instance.jobid - An integer that is the indentification number of the job.processes - An integer that specifies the number of processes to allocate to the job.String that contains the results of modifying the job processes.public java.lang.String ExecuteBuild()
String that contains the results of the operation.
|
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 | ||||||||