|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsamples.javaclient.analyzer.AnalyzerUtilities
Utility class. Provides methods that are used across the application. Methods in this class show how to:
runCalcBuilder()
runQueryBuilder()
.updateMeasures(oracle.dss.metadataManager.common.MDMeasure)
showOpenDialog()
showSaveAsDialog()
openView(java.lang.String, boolean, int, int, int, int)
saveView(java.lang.String, oracle.dss.dataView.Dataview)
Nested Class Summary | |
private class |
AnalyzerUtilities.OpenViewWorker
Inner class for opening a view on a separate thread. |
Field Summary | |
static java.lang.String |
ERR_BAD_CATALOG_CREDENTIALS
Error BIB-01017. |
static java.lang.String |
ERR_BAD_CONNECTION
Error BIB-16613. |
static java.lang.String |
ERR_BAD_USER_CREDENTIALS
Error BIB-16612. |
static java.lang.String |
ERR_INVALID_BIUSER
Error BIB-14736. |
static java.lang.String |
ERR_INVALID_CATALOG_USER
Error BIB-14736. |
static java.lang.String |
ERR_INVALID_OBJECT
Error BIB-14122. |
static java.lang.String |
ERR_INVALID_ROOT
Error BIB-14820. |
private Analyzer |
m_analyzer
Main application class. |
private AnalyzerConnection |
m_connection
Connection for the application. |
private javax.swing.JLabel |
m_statusText
Status message: "Status: Not connected". |
static java.lang.String |
MSG_BAD_CATALOG_CREDENTIALS
Error message: "Invalid Catalog User ID or Password." |
static java.lang.String |
MSG_BAD_CONNECTION
Error message: "Invalid host, port or SID." |
static java.lang.String |
MSG_BAD_UNKNOWN
Error message: "Unable to connect." |
static java.lang.String |
MSG_BAD_USER_CREDENTIALS
Error message: "Invalid User ID or Password." |
static java.lang.String |
MSG_INVALID_OBJECT
Error message: "The crosstab or graph contains an invalid object(s). |
static java.lang.String |
MSG_INVALID_ROOT
Error message: "The specified file-system directory does not exist." |
Constructor Summary | |
AnalyzerUtilities(Analyzer analyzer)
Constructor. |
Method Summary | |
javax.swing.JWindow |
getBusyBar(java.lang.String message)
Gets the busy bar for this application. |
java.lang.String |
getErrorText(java.lang.Throwable t)
Analyzes an exception and attempts to find an appropriate message to display to a user. |
void |
openView(java.lang.String strName,
boolean isDirty,
int x,
int y,
int width,
int height)
Loads a dataview in a separate thread. |
void |
runCalcBuilder()
Runs the CalcBuilder wizard. |
void |
runQueryBuilder()
Runs the QueryBuilder. |
(package private) boolean |
saveView(java.lang.String strName,
oracle.dss.dataView.Dataview dv)
Saves a presentation. |
(package private) void |
showErrorMessage(java.lang.String strMsg,
java.lang.Throwable t)
Displays an error message dialog. |
(package private) void |
showExportDialog()
Displays the Export dialog. |
(package private) void |
showGraphFormatDialog()
Displays the Graph Format dialog. |
(package private) void |
showGraphTypeDialog()
Displays the Graph Type dialog. |
void |
showOpenDialog()
Displays the Open dialog. |
(package private) void |
showPrintDialog()
Displays the Print dialog. |
(package private) void |
showSaveAsDialog()
Displays the Save As dialog. |
private void |
updateMeasures(oracle.dss.metadataManager.common.MDMeasure mdMeasure)
Adds a new custom measure to the list of measures for the active view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Analyzer m_analyzer
private AnalyzerConnection m_connection
private javax.swing.JLabel m_statusText
public static final java.lang.String MSG_BAD_UNKNOWN
public static final java.lang.String MSG_BAD_USER_CREDENTIALS
public static final java.lang.String MSG_BAD_CONNECTION
public static final java.lang.String MSG_BAD_CATALOG_CREDENTIALS
public static final java.lang.String MSG_INVALID_OBJECT
public static final java.lang.String MSG_INVALID_ROOT
public static final java.lang.String ERR_BAD_USER_CREDENTIALS
getErrorText(java.lang.Throwable)
,
MSG_BAD_USER_CREDENTIALS
,
Constant Field Valuespublic static final java.lang.String ERR_BAD_CONNECTION
getErrorText(java.lang.Throwable)
,
MSG_BAD_CONNECTION
,
Constant Field Valuespublic static final java.lang.String ERR_BAD_CATALOG_CREDENTIALS
getErrorText(java.lang.Throwable)
,
MSG_BAD_CATALOG_CREDENTIALS
,
Constant Field Valuespublic static final java.lang.String ERR_INVALID_BIUSER
AnalyzerConnection.getCatalogConnection(oracle.dss.connection.client.Connection)
,
Constant Field Valuespublic static final java.lang.String ERR_INVALID_CATALOG_USER
AnalyzerConnection.getCatalogConnection(oracle.dss.connection.client.Connection)
,
Constant Field Valuespublic static final java.lang.String ERR_INVALID_OBJECT
getErrorText(java.lang.Throwable)
,
#MSG_INVALID_CATALOG_USER
,
Constant Field Valuespublic static final java.lang.String ERR_INVALID_ROOT
getErrorText(java.lang.Throwable)
,
MSG_INVALID_ROOT
,
Constant Field ValuesConstructor Detail |
public AnalyzerUtilities(Analyzer analyzer)
analyzer
- The main analyzer application class.Method Detail |
public void runCalcBuilder()
updateMeasures(oracle.dss.metadataManager.common.MDMeasure)
private void updateMeasures(oracle.dss.metadataManager.common.MDMeasure mdMeasure) throws oracle.dss.selection.step.InvalidStepArgException, oracle.dss.selection.SelectionException, oracle.dss.dataSource.common.QueryException, oracle.dss.metadataManager.common.MetadataManagerException
oracle.dss.selection.step.InvalidStepArgException
- If there is a problem in the Step.
oracle.dss.selection.SelectionException
- If the selection for the measure dimension
cannot be created.
oracle.dss.dataSource.common.QueryException
- If there is a problem fetching data after the
measure dimension is updated.
oracle.dss.metadataManager.common.MetadataManagerException
- If there is a problem in the MetadataManagerrunCalcBuilder()
public java.lang.String getErrorText(java.lang.Throwable t)
t
- The exception that was thrown.
void showErrorMessage(java.lang.String strMsg, java.lang.Throwable t)
strMsg
- The message to display in the error dialog.t
- The Exception that was thrown.public void runQueryBuilder()
void showGraphFormatDialog()
The Graph Format dialog contains different panels, depending on the graph type of the graph.
GraphFormatDialog
void showGraphTypeDialog()
The Graph Type dialog is separate from the Graph Format dialog because the Graph Format dialog has different panels, depending on the graph type.
GraphTypeDialog
void showExportDialog()
This method gets the active view and checks to make sure it is a crosstab. Then it constructs a dialog that contains the standard BI Beans ExportPanel, as well as OK and Cancel buttons. Then this method shows the dialog. Data from the crosstab is exported to a file in the format that the user selects in the dialog.
void showPrintDialog()
public void showOpenDialog()
openView(java.lang.String, boolean, int, int, int, int)
,
BIPresentationFilter
public void openView(java.lang.String strName, boolean isDirty, int x, int y, int width, int height)
strName
- Name of the presentation to open, such as "/My Reports/Sales Trends".isDirty
- true
if the view has changes that need to be saved,
false
if it does not.x
- The horizontal position for the view.y
- The vertical position for the view.width
- The width of the view.height
- The height of the view.showOpenDialog()
,
AnalyzerUtilities.OpenViewWorker
public javax.swing.JWindow getBusyBar(java.lang.String message)
message
- The message to display in the busy bar.
void showSaveAsDialog()
saveView(java.lang.String, oracle.dss.dataView.Dataview)
boolean saveView(java.lang.String strName, oracle.dss.dataView.Dataview dv)
strName
- The name under which to save the object. Pass the full
path name from the root folder.dv
- The view to save.
true
if the save is successful,
false
if it is not.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |