|
IBM Alphablox V9.5.1 Blox API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BloxImpl com.alphablox.blox.AbstractBlox com.alphablox.blox.DataBlox
The server-side DataBlox. DataBlox provides a means to access and query data, serves as a data source for the user interface Blox (such as PresentBlox, GridBlox, or ChartBlox), and enables application scripting such as dynamically setting the query. In addition, it returns a resultset object and a metadata object:
getResultSet
method.
getMetaData
method.
Field Summary | |
static int |
PARENT_DEFAULT
The int representing the default parent orientation flag. |
static int |
PARENT_FIRST
The int representing the parent first orientation flag. |
static int |
PARENT_LAST
The int representing the parent last orientation flag. |
Fields inherited from class com.alphablox.blox.AbstractBlox |
RENDER_DHTML, RENDER_NONE, RENDER_PRINTER, RENDER_XML |
Constructor Summary | |
DataBlox()
Default constructor |
Method Summary | |
void |
addBookmarkDeleteFilter(BookmarkDeleteFilter filter)
Deprecated. use addEventFilter() |
void |
addBookmarkLoadFilter(BookmarkLoadFilter filter)
Deprecated. use addEventFilter() |
void |
addBookmarkRenameFilter(BookmarkRenameFilter filter)
Deprecated. use addEventFilter() |
void |
addBookmarkSaveFilter(BookmarkSaveFilter filter)
Deprecated. use addEventFilter() |
void |
addCollapseFilter(CollapseFilter filter)
Deprecated. Use addEventFilter() |
void |
addDataChangedEventListener(DataChangedEventListener listener)
|
void |
addDrillDownFilter(DrillDownFilter filter)
Deprecated. Use addEventFilter() |
void |
addDrillThroughFilter(DrillThroughFilter filter)
Deprecated. Use addEventFilter() |
void |
addDrillUpFilter(DrillUpFilter filter)
Deprecated. Use addEventFilter() |
void |
addEventFilter(DataFilter dataFilter)
Addes the dataFilter to the list of filters to be notified prior to data events being processed. |
void |
addExpandFilter(ExpandFilter filter)
Deprecated. Use addEventFilter() |
void |
addHideOnlyFilter(HideOnlyFilter filter)
Deprecated. Use addEventFilter() |
void |
addKeepOnlyFilter(KeepOnlyFilter filter)
Deprecated. Use addEventFilter() |
void |
addMemberSelectFilter(MemberSelectFilter filter)
Deprecated. Use addEventFilter() |
void |
addPivotFilter(PivotFilter filter)
Deprecated. Use addEventFilter() |
void |
addQueryFilter(QueryFilter filter)
Deprecated. Use addEventFilter() |
void |
addRemoveOnlyFilter(RemoveOnlyFilter filter)
Deprecated. Use addEventFilter() |
void |
addSelectedMembers(Member[] members)
Add to the selected members for the given dimension. |
void |
addShowAllFilter(ShowAllFilter filter)
Deprecated. Use addEventFilter() |
void |
addShowOnlyFilter(ShowOnlyFilter filter)
Deprecated. Use addEventFilter() |
void |
addSwapAxisFilter(SwapAxisFilter filter)
Deprecated. Use addEventFilter() |
void |
clearClientCache()
Call this method to clear the client cache used by MSOLAP connection; for Microsoft Analysis Services data sources only. |
void |
clearResultSet()
Clears and deletes the current result set for this DataBlox. |
void |
commitData()
Writes the current data set back to the database. |
void |
connect()
If currently connected, disconnect and clear the current result set. |
void |
connect(boolean executeTextualQuery)
If currently connected, disconnect and clear the current result set. |
void |
deleteBlox()
|
void |
deleteBookmark(int visibility,
java.lang.String owner,
java.lang.String bookmarkName)
Deprecated. Use com.alphablox.internal.common.peer.BookmarkImpl#delete() |
void |
disconnect(boolean clearResultSet)
Disconnects from the data source and releases the back end connection. |
void |
drillDown(TupleMember member)
Drills down on the specified member. |
RDBResultSet |
drillThrough(int columnCoordinate,
int rowCoordinate)
Perform a drill through operation at the specified cell. |
RDBResultSet |
drillThrough(int columnCoordinate,
int rowCoordinate,
int timeout)
Perform a drill through operation at the specified cell. |
RDBResultSet |
drillThrough(java.lang.String reportName,
int columnCoordinate,
int rowCoordinate)
Performs a drill through operation at the specified cell using the specified reportName. |
RDBResultSet |
drillThrough(Tuple[] coordinates)
Perform a drill through operation at the specified cell. |
RDBResultSet |
drillThrough(Tuple[] coordinates,
int timeout)
Perform a drill through operation at the specified cell. |
void |
drillToAllDescendants(TupleMember member)
Drills down to all descendants for the specified member. |
void |
drillUp(TupleMember member)
Drills up on the specified member. |
void |
executeCustomCalc(java.lang.String calcScript)
Executes a calculation script on an Essbase database (for example,"CALC ALL;"). |
void |
executeNamedDBCalcScript(java.lang.String calcScript)
Executes the named Essbase calculation script. |
void |
freeConnection()
Frees this DataBlox's connection and puts it back onto the connection pool. |
java.lang.String |
generateQuery()
Generates and returns a textual query reflecting the current state of the result set, in the query language of the data source (e.g., MDX). |
IQueryModel |
generateQueryModel()
Generates and returns an IQueryModel object that reflects the current state of the result set. |
java.lang.String |
getAliasTable()
Identifies the aliase table used for the current Essbase data source |
java.lang.Object |
getASCSConnection()
This method is used only by the Symphony adapter. |
java.lang.String |
getBookmarkFilter()
Returns the default location from which to store and load bookmarks. |
java.lang.String |
getCalculatedMembers()
Gets the string that generates the calculated members |
Calculation[] |
getCalculations()
|
java.lang.String |
getCatalog()
Gets the name of the database catalog. |
java.lang.String |
getColumnSort()
Identifies how to sort data values for members on the column axis. |
CommentsBlox |
getCommentsBlox()
|
java.lang.String |
getDataSourceName()
Gets the name of the data source. |
java.lang.String |
getDimensionRoot()
Identifies the dimension and one or more members used as the root. |
Member[] |
getDimensionRoot(Dimension dimension)
Returns an array of members used as the root members for the specified dimension. |
int |
getDrillDownOption()
Specifies the type of drill operation to perform. |
java.lang.String[] |
getDrillThroughReportNames(int columnCoordinate,
int rowCoordinate)
Returns the list of drillthrough reports found at the specified cell. |
java.lang.Object |
getExternalMDConnection()
This method is only used by implementations of external data sources and is not meant for public consumption. |
java.lang.Class[] |
getFilterClasses()
Returns the allowable filter classes for this blox |
java.lang.String |
getHiddenMembers()
Gets the hidden members. |
Member |
getHiddenMembers(MDBMetaData mdbMetaData,
int i,
java.lang.String cubeName)
Returns the hidden member with the specified index for the array of hidden members. |
Member[] |
getHiddenMembers(MDBMetaData mdbMetaData,
java.lang.String cubeName)
Returns an array of hidden members. |
Column[] |
getHiddenMembers(RDBMetaData rdbMetaData)
Returns an array containing the hidden colummns (members). |
Column |
getHiddenMembers(RDBMetaData rdbMetaData,
int i)
Returns the hidden column (member) with the specifed index for the array of hidden columns (members). |
java.lang.String |
getHiddenTuples()
Gets the current hiddenTuples |
java.lang.Class[] |
getListenerClasses()
Returns the allowable listener classes for this blox |
java.util.HashMap |
getMDXForDimensions()
Returns the HashMap of MDX set statements for a particular dimensions. |
java.lang.String |
getMemberNameRemovePrefix()
Identifies the start point of a member name when returned from the data source. |
java.lang.String |
getMemberNameRemoveSuffix()
Identifies the end point of a member name when returned from the data source. |
java.lang.String |
getMergedDimensions()
Returns a comma-delimited String representing the names of the "logical" dimensions to merge in the Other Axis of the DataLayoutPanel. |
java.lang.String |
getMergedHeaders()
Gets a string of the dimensions on the same axis whose headers are merged. |
MetaData |
getMetaData()
Returns a read-only copy of the metadata. |
int |
getParentFirst()
Returns an int value representing the parent first setting, either default, parent first or parent last. |
java.lang.String |
getProvider()
[OLE DB for OLAP datasource only] Return the OLE DB for OLAP provider string |
java.lang.String |
getQuery()
Gets the data query. |
IResultSetHandler |
getQueryPassthrough()
Applies to relational data only. |
ResultSet |
getRawResultSet()
Returns a read-only copy of the result set. |
ResultSet |
getResultSet()
Returns a read-only copy of the result set. |
java.lang.String |
getRowSort()
Identifies row members for multidimensional data sources are sorted. |
java.lang.String |
getSchema()
Gets the name of the database schema. |
Dimension[] |
getSelectableSlicerDimensions()
Returns an array containing the dimensions that appear on the page axis in the PageBlox. |
Dimension |
getSelectableSlicerDimensions(int i)
Returns the ith dimension on the page axis in the PageBlox. |
Member[] |
getSelectedMembers(Dimension dimension)
Returns the selected members for the given dimension. |
java.lang.String |
getUserName()
Gets the database user name used to access the data source. |
AASCubeXMLDocument |
getXMLResultSet()
Returns a read-only copy of the result set as XML DOM. |
void |
hideMembers(Column[] columns)
Hides the columns (members) in the specified array. |
void |
hideMembers(Member[] members)
Specifies the members to hide. |
void |
hideMembers(java.lang.String membersToHide)
Specifies the members to hide. |
void |
hideTuples(java.lang.String selectedTuples)
Hides specified tuples |
boolean |
init(BloxContext bloxContext,
java.lang.String bloxName)
Initializes the DataBlox. |
boolean |
isAASUserAuthorizationEnabled()
Identifies if the username and password entered during Alphablox login for authentication should be used to access an Essbase data source |
boolean |
isApplyPropertiesAfterBookmark()
Identifies whether, after retrieving a bookmark, the Blox properties should override those in the bookmark. |
boolean |
isAutoConnect()
Identifies if the DataBlox is allowed to connect to the database automatically whenever it needs database access. |
boolean |
isAutoDisconnect()
Identifies if the DataBlox is allowed to disconnect from the database automatically whenever a data access operation is complete. |
boolean |
isConnected()
Returns true when the data source is connected, false if not. |
boolean |
isConnectOnStartup()
Identifies if the DataBlox will automatically connect to its data source upon Blox instantiation. |
boolean |
isDrillKeepSelectedMember()
Identifies whether the member being drilled on should be retained or removed. |
boolean |
isDrillRemoveUnselectedMembers()
Identifies whether to remove all members that are not being drilled on. |
boolean |
isEnableKeepRemove()
Identifies whether the Keep Only and Remove Only options are available to the end user in the context menus of both the GridBlox and ChartBlox. |
boolean |
isEnableShowHide()
Identifies whether the Show Only, Show All, and Hide Only options are available to end users in the context menus of both the GridBlox and ChartBlox. |
boolean |
isInternalSortEnabled()
Gets whether or not the internal sort is enabled. |
boolean |
isLeafDrillDownAvailable()
Identifies if the user should be allowed to drill down on a leaf member. |
boolean |
isOnErrorClearResultSet()
Identifies whether the existing result set should be cleared if a subsequent database operation fails |
boolean |
isPerformInAllGroups()
Identifies whether a drill operation is performed on all occurrences of the selected member in each outer nested group containing the dimension, or only on the single selected occurrence of the member. |
boolean |
isRetainSlicerMemberSet()
Return the persistence of page filter selections after a member is selected. |
boolean |
isShowShortHierarchyNames()
A flag that determines how to generate dimension display names for dimensions with multiple hierarchies. |
boolean |
isShowSuppressDataDialog()
Identifies if a warning dialog should pop up when the useOlapDrillOptimization property is set to
true and either suppressMissingColumns or suppressMissingRows is also
set to true . |
boolean |
isSuppressDuplicates()
Identifies whether to remove from the grid those rows or columns containing duplicate header values. |
boolean |
isSuppressMissing()
|
boolean |
isSuppressMissingColumns()
Identifies whether columns containing no data at all should be removed from the grid. |
boolean |
isSuppressMissingRows()
Identifies whether rows containing no data at all should be removed from the grid. |
boolean |
isSuppressNoAccess()
Identifies whether to remove from the grid those rows or columns containing data the users cannot access. |
boolean |
isSuppressZeros()
Identifies whether to remove from the grid those rows or columns containing all zeros. |
boolean |
isTextualQueryEnabled()
Identifies if the textual query rather than the serialized object should be used to restore a bookmark. |
boolean |
isUseAliases()
Identifies if aliases are used for the Essbase data source in use |
boolean |
isUseOlapDrillOptimization()
Identifies if drill optimization is enabled for Microsoft Analysis Services data sources. |
void |
keepOnly(TupleMember member)
Keeps only the specified member. |
void |
keepOnly(TupleMember[] members)
Keeps only the members found in the specified array. |
java.lang.String[][] |
listBookmarks(int visibility,
java.lang.String owner)
Deprecated. Use BookmarksBlox.listBookmarks() ,
BookmarksBlox.listBookmarks(com.alphablox.blox.repository.BookmarkMatcher) |
void |
loadBookmark(Bookmark bookmark)
|
void |
loadBookmark(int visibility,
java.lang.String owner,
java.lang.String bookmarkName)
Loads a bookmark into this Blox. |
void |
loadRDBResultSet(java.sql.ResultSet storeProcedureResultSet)
|
void |
lockCurrentDataSet()
Locks the called upon result set. |
void |
pivot(AxisDimension dimension,
int newAxisIndex,
int newNestLevel)
Pivots the specified dimension to another position in the schema, either from axis to axis, slicer to axis, or axis to slicer. |
void |
pivot(int oldAxisIndex,
int oldNestLevel,
int newAxisIndex,
int newNestLevel)
Pivots the specified dimension to another position in the schema, either from axis to axis, slicer to axis, or axis to slicer. |
void |
refresh()
Refreshes the data set. |
void |
removeBookmarkDeleteFilter(BookmarkDeleteFilter filter)
Deprecated. use removeEventFilter() |
void |
removeBookmarkLoadFilter(BookmarkLoadFilter filter)
Deprecated. use removeEventFilter() |
void |
removeBookmarkRenameFilter(BookmarkRenameFilter filter)
Deprecated. use removeEventFilter() |
void |
removeBookmarkSaveFilter(BookmarkSaveFilter filter)
Deprecated. use removeEventFilter() |
void |
removeCollapseFilter(CollapseFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeColumnSort()
Removes the column sort. |
void |
removeDataChangedEventListener(DataChangedEventListener listener)
|
void |
removeDrillDownFilter(DrillDownFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeDrillThroughFilter(DrillThroughFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeDrillUpFilter(DrillUpFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeEventFilter(DataFilter dataFilter)
Removes the dataFilter from the list of filters to notify prior to data events being processed. |
void |
removeExpandFilter(ExpandFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeHideOnlyFilter(HideOnlyFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeKeepOnlyFilter(KeepOnlyFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeMemberSelectFilter(MemberSelectFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeOnly(TupleMember member)
Removes only the specified member. |
void |
removeOnly(TupleMember[] members)
Removes the members found in specified array of members. |
void |
removePivotFilter(PivotFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeQueryFilter(QueryFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeRemoveOnlyFilter(RemoveOnlyFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeRowSort()
Removes row sort. |
void |
removeShowAllFilter(ShowAllFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeShowOnlyFilter(ShowOnlyFilter filter)
Deprecated. Use removeEventFilter() |
void |
removeSwapAxisFilter(SwapAxisFilter filter)
Deprecated. Use removeEventFilter() |
void |
renameBookmark(int visibility,
java.lang.String owner,
java.lang.String oldBookmarkName,
java.lang.String newBookmarkName,
java.lang.String description)
Deprecated. Use BookmarksBlox.getBookmark(Blox, String, String) ,
BookmarksBlox.getBookmark(String, String, String, String, String) ,
com.alphablox.internal.common.peer.BookmarkImpl#setName(String) ,
com.alphablox.internal.common.peer.BookmarkImpl#saveAll() |
void |
restoreBookmark(int visibility,
java.lang.String owner,
java.lang.String bookmarkName)
Deprecated. Use loadBookmark(int, String, String) |
void |
saveBookmark(int visibility,
java.lang.String owner,
java.lang.String bookmarkName,
java.lang.String description)
Saves a bookmark. |
void |
saveBookmarkHidden(int visibility,
java.lang.String owner,
java.lang.String bookmarkName,
java.lang.String description)
|
void |
setAASUserAuthorizationEnabled(boolean useAASUserAuthorization)
Specifies whether to use the username and password entered during Alphablox login for authentication to an Essbase data source. |
void |
setAliasTable(java.lang.String aliasTable)
Specifies the Hyperion Essbase alias table to use with the data source. |
void |
setApplyPropertiesAfterBookmark(boolean applyPropertiesAfterBookmark)
Specifies whether, after retrieving a bookmark, the Blox properties should override those in the bookmark. |
void |
setAutoConnect(boolean autoConnect)
Enabling this property will cause the DataBlox to reconnect to the data source automatically in all cases except during startup. |
void |
setAutoDisconnect(boolean autoDisconnect)
Enabling this property will cause the DataBlox to disconnect from the data source automatically when the application no longer requires a connection without erasing the current result set. |
void |
setBookmarkFilter(java.lang.String bookmarkFilter)
Specifies a default location from which to store and load bookmarks. |
void |
setCalculatedMembers(java.lang.String calculatedMembers)
Specifies one or more new members to be calculated by Alphablox using the result set retrieved from the data source. |
void |
setCatalog(java.lang.String catalog)
Specifies the data catalog. |
void |
setColumnSort(ResultColumn column,
boolean ascending)
Specifies how to sort column members for relational data sources. |
void |
setColumnSort(java.lang.String sortString)
Specifies how to sort column members for multidimensional data sources. |
void |
setColumnSort(java.lang.String sortString,
java.lang.String[] headerMembers,
java.lang.String[] footerMembers)
|
void |
setColumnSort(Tuple tuple,
AxisDimension dimension,
boolean ascending)
Specifies how to sort column members for multi-dimensional data sources. |
void |
setColumnSort(Tuple tuple,
AxisDimension dimension,
boolean ascending,
boolean preserveHierarchy)
Specifies how to sort column members for multi-dimensional data sources. |
void |
setColumnSort(Tuple tuple,
AxisDimension dimension,
boolean ascending,
boolean preserveHierarchy,
TupleMember[] headerMbrs,
TupleMember[] footerMbrs)
Specifies how to sort column members for multi-dimensional data sources. |
void |
setCommentsBlox(CommentsBlox commentsBlox)
|
void |
setConnectOnStartup(boolean connectOnStartup)
Specifies whether the DataBlox will automatically connect to its data source upon Blox instantiation. |
void |
setCredential(java.lang.Object credential)
Specifies a credential object to be used with the given datasource instead of a username and password. |
void |
setDataSourceName(java.lang.String dataSourceName)
The data source name must be defined in Alphablox. |
void |
setDataValues(Tuple[][] coordinates,
java.lang.String[] values)
Changes data values in the result set at the coordinates specified. |
void |
setDimensionRoot(Dimension dimension,
Member member)
Deprecated. |
void |
setDimensionRoot(Dimension dimension,
Member[] members)
Specifies the dimension and members to use as the root. |
void |
setDimensionRoot(java.lang.String dimensionRoot)
Specifies the dimension and one or more members to use as the root |
void |
setDrillDownOption(int drillDownOption)
Specifies the type of drill operation to perform. |
void |
setDrillKeepSelectedMember(boolean drillKeepSelectedMember)
Specifies whether the member being drilled on should be retained or removed. |
void |
setDrillRemoveUnselectedMembers(boolean drillRemoveUnselectedMembers)
Specifies whether to remove all members that are not being drilled on. |
void |
setEnableKeepRemove(boolean enableKeepRemove)
Specifies whether the Keep Only and Remove Only options are available to the end user in the context menus of both the GridBlox and ChartBlox. |
void |
setEnableShowHide(boolean enableShowHide)
Specifies whether the Show Only, Show All, and Hide Only options are available to end users in the context menus of both the GridBlox and ChartBlox. |
void |
setHiddenMembers(Column[] columns)
Hides the specified columns (members). |
void |
setHiddenMembers(Member[] members)
Hides the members in the specified array. |
void |
setHiddenMembers(java.lang.String hiddenMembers)
Specifies the members to hide. |
void |
setHiddenTuples(java.lang.String selectedTuples)
Sets hiddenTuples parameter to the specified selectedTuples it will replace the existing hiddenTuples |
void |
setInitialProperty(java.lang.String propertyName,
java.lang.String propertyValue)
|
void |
setInternalSortEnabled(boolean enable)
Sets whether or not the internal sort is enabled. |
void |
setLeafDrillDownAvailable(boolean leafDrillDownAvailable)
Specifies if the user should be allowed to drill down on a leaf member. |
void |
setMDXForDimensions(java.util.HashMap map)
Sets the MDX set statement for particular dimensions. |
void |
setMemberNameRemovePrefix(java.lang.String prefix)
Specifies the start point of a member name when returned from the data source. |
void |
setMemberNameRemoveSuffix(java.lang.String suffix)
Specifies the end point of a member name when returned from the data source. |
void |
setMergedDimensions(java.lang.String mergedDimensions)
Sets the dimensions to appear "merged" on the Other Axis of the Data Layout panel and in the Dimension Explorer/Member Filter. |
void |
setMergedHeaders(java.lang.String mergedHeaders)
Specifies the dimensions on the same axis whose headers are to be merged. |
void |
setOnErrorClearResultSet(boolean clearResultSet)
Specifies whether the existing result set should be cleared if a subsequent database operation fails. |
void |
setParentFirst(int parentFirst)
Specifies how the parents are returned relative to the children. |
void |
setPassword(java.lang.String password)
Specifies the database password to use when accessing the data source. |
void |
setPerformInAllGroups(boolean performInAllGroups)
Specifies whether a drill operation is performed on all occurrences of the selected member in each outer nested group containing the dimension, or only on the single selected occurrence of the member. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
|
void |
setProvider(java.lang.String provider)
[OLE DB for OLAP only] Sets the provider string to use to access the data source. |
void |
setQuery(java.lang.String query)
Sets the query. |
void |
setQueryModel(IQueryModel queryModel)
Sets the query based on an IQueryModel object. |
void |
setQueryPassthrough(IResultSetHandler passThroughHandler)
For relational data only. |
void |
setRetainSlicerMemberSet(boolean persistentMemberSelection)
Specifies the persistence of page filter selections after a member is selected. |
void |
setRowSort(java.lang.String sortString)
Specifies how to sort row members for multidimensional data sources. |
void |
setRowSort(java.lang.String sortString,
java.lang.String[] headerMembers,
java.lang.String[] footerMembers)
|
void |
setRowSort(Tuple tuple,
AxisDimension dimension,
boolean ascending)
Specifies how to sort row members for multi-dimensional data sources. |
void |
setRowSort(Tuple tuple,
AxisDimension dimension,
boolean ascending,
boolean preserveHierarchy)
Specifies how to sort row members for multi-dimensional data sources. |
void |
setRowSort(Tuple tuple,
AxisDimension dimension,
boolean ascending,
boolean preserveHierarchy,
TupleMember[] headerMembers,
TupleMember[] footerMembers)
Specifies how to sort row members for multi-dimensional data sources. |
void |
setSchema(java.lang.String schema)
Specifies the data schema to access. |
void |
setSelectableSlicerDimensions(Dimension[] dimensions)
Sets the data source dimensions that appear on the page axis, acting as filters to the data appearing in the grid. |
void |
setSelectableSlicerDimensions(java.lang.String selectableSlicerDimensions)
Specifies the dimensions that appear on the page (slicer) axis. |
void |
setSelectedMembers(Member[] members)
Sets the selected members for the given dimension. |
void |
setShowShortHierarchyNames(boolean showShortHierarchyNames)
A flag that determines how to generate dimension display names for dimensions with multiple hierarchies. |
void |
setShowSuppressDataDialog(boolean showDialog)
Specifies if a warning dialog should pop up when the useOlapDrillOptimization property is set to
true and either suppressMissingColumns or suppressMissingRows is also
set to true .
|
void |
setSuppressDuplicates(boolean suppressDuplicates)
Specifies whether to remove from the grid those rows or columns containing duplicate header values. |
void |
setSuppressMissing(boolean suppressMissing)
Deprecated. Use setSuppressMissingColumns and/or
setSuppressMissingRows instead. |
void |
setSuppressMissingColumns(boolean suppressMissingColumns)
Specifies whether to remove columns containing no data at all from the grid. |
void |
setSuppressMissingRows(boolean suppressMissingRows)
Specifies whether to remove rows containing no data at all from the grid. |
void |
setSuppressNoAccess(boolean suppressNoAccess)
Specifies whether to remove from the grid those rows or columns containing data the users cannot access. |
void |
setSuppressZeros(boolean suppressZero)
Specifies whether to remove from the grid those rows or columns containing all zeros. |
void |
setTextualQueryEnabled(boolean textualQuery)
When true , use the textual query, not the serialized query, when restoring a bookmark. |
void |
setUseAliases(boolean useAliases)
Specifies whether to use aliases for Hyperion Essbase data sources. |
void |
setUseOlapDrillOptimization(boolean useOptimization)
Specifies whether drill optimization should be enabled for Microsoft Analysis Services data sources. |
void |
setUserName(java.lang.String userName)
Sets the user name to use to access the data source. |
void |
showMembers(Column[] columns)
Shows the previously hidden columns (members) in the specified array. |
void |
showMembers(Member[] members)
Shows members in the specified array that were previously hidden. |
void |
showMembers(java.lang.String membersToShow)
Shows the previously hidden members in the specified string. |
void |
showOnlyTuples(java.lang.String selectedTuples)
Shows only the specified selectedTuples. |
void |
showOnlyTuples(Tuple[] tuples)
Show only the specified selectedTuples. |
void |
showTuples(java.lang.String selectedTuples)
Shows or unhides specified selectedTuples if they are hidden. |
void |
swapRowAndColumnAxes()
Swaps the members on the row axis with the members on the column axes. |
void |
unlockAll()
Unlocks any data that was previously locked in the Essbase database. |
void |
updateResultSet()
Applies the properties to the textual or serialized query (depending on which query is most recent) and creates a new result set. |
void |
writeback(java.lang.Object coordinates,
java.lang.Object values,
java.lang.String command)
Combines into a single method the actions performed by the lockCurrentDataSet, commitData, setDataValues, unlockAll, executeCustomCalc, and refresh methods. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PARENT_DEFAULT
public static final int PARENT_FIRST
public static final int PARENT_LAST
Constructor Detail |
public DataBlox()
Method Detail |
public void deleteBlox() throws ServerBloxException
deleteBlox
in class AbstractBlox
ServerBloxException
public void addBookmarkLoadFilter(BookmarkLoadFilter filter) throws ServerBloxException
addBookmarkLoadFilter
in interface BookmarkableBlox
filter
- the class to call when the bookmark is loaded
ServerBloxException
- if there is any problem registering the filter eventpublic void removeBookmarkLoadFilter(BookmarkLoadFilter filter) throws ServerBloxException
removeBookmarkLoadFilter
in interface BookmarkableBlox
filter
- the class to remove from this event
ServerBloxException
- if there is any problem unregistering the filter eventpublic void addBookmarkSaveFilter(BookmarkSaveFilter filter) throws ServerBloxException
addBookmarkSaveFilter
in interface BookmarkableBlox
filter
- the class to call when the bookmark is saved
ServerBloxException
- if there is any problem registering the filter eventpublic void removeBookmarkSaveFilter(BookmarkSaveFilter filter) throws ServerBloxException
removeBookmarkSaveFilter
in interface BookmarkableBlox
filter
- the class to remove from this event
ServerBloxException
- if there is any problem unregistering the filter eventpublic void addBookmarkRenameFilter(BookmarkRenameFilter filter) throws ServerBloxException
addBookmarkRenameFilter
in interface BookmarkableBlox
filter
- the class to call when the bookmark is renamed
ServerBloxException
- if there is any problem registering the filter eventpublic void removeBookmarkRenameFilter(BookmarkRenameFilter filter) throws ServerBloxException
removeBookmarkRenameFilter
in interface BookmarkableBlox
filter
- the class to remove from this event
ServerBloxException
- if there is any problem unregistering the filter eventpublic void addBookmarkDeleteFilter(BookmarkDeleteFilter filter) throws ServerBloxException
addBookmarkDeleteFilter
in interface BookmarkableBlox
filter
- the class to call when the bookmark is deleted
ServerBloxException
- if there is any problem registering the filter eventpublic void removeBookmarkDeleteFilter(BookmarkDeleteFilter filter) throws ServerBloxException
removeBookmarkDeleteFilter
in interface BookmarkableBlox
filter
- the class to remove from this event
ServerBloxException
- if there is any problem unregistering the filter eventpublic java.lang.Class[] getListenerClasses()
AbstractBlox
getListenerClasses
in class AbstractBlox
public java.lang.Class[] getFilterClasses()
AbstractBlox
getFilterClasses
in class AbstractBlox
public boolean init(BloxContext bloxContext, java.lang.String bloxName) throws InvalidParameterException, ServerBloxException
init
in class AbstractBlox
bloxContext
- the BloxContext in which this blox belongsbloxName
- The name of DataPeer object to bind to.
InvalidParameterException
ServerBloxException
public void setProperty(java.lang.String propertyName, java.lang.String propertyValue) throws InvalidBloxPropertyNameException, InvalidBloxPropertyValueException, ServerBloxException
setProperty
in class AbstractBlox
InvalidBloxPropertyNameException
InvalidBloxPropertyValueException
ServerBloxException
public void setInitialProperty(java.lang.String propertyName, java.lang.String propertyValue) throws InvalidBloxPropertyNameException, InvalidBloxPropertyValueException, ServerBloxException
setInitialProperty
in class AbstractBlox
InvalidBloxPropertyNameException
InvalidBloxPropertyValueException
ServerBloxException
public boolean isTextualQueryEnabled() throws ServerBloxException
true
if query should be saved as a text string.
ServerBloxException
setTextualQueryEnabled(boolean)
public boolean isApplyPropertiesAfterBookmark() throws ServerBloxException
true
if Blox properties should override those in the bookmark; false
otherwise.
ServerBloxException
setApplyPropertiesAfterBookmark(boolean)
public java.lang.String getDataSourceName() throws ServerBloxException
ServerBloxException
setDataSourceName(String)
public java.lang.String getCatalog() throws ServerBloxException
ServerBloxException
setCatalog(String)
public java.lang.String getSchema() throws ServerBloxException
ServerBloxException
setSchema(String)
public java.lang.String getUserName() throws ServerBloxException
Gets the database user name used to access the data source.
ServerBloxException
setUserName(String)
public boolean isAASUserAuthorizationEnabled() throws ServerBloxException
true
if Alphablox login username and password should be used to access
an Essbase data source. The default is false
.
ServerBloxException
public java.lang.String getQuery() throws ServerBloxException
ServerBloxException
public Dimension getSelectableSlicerDimensions(int i) throws ServerBloxException, java.lang.ArrayIndexOutOfBoundsException
i
- The index of the specified dimension on the page axis.
ServerBloxException
- When unable to connect to the database, when the metadata
is corrupted, or when the connection has gone bad.
java.lang.ArrayIndexOutOfBoundsException
- When the index is negative, or greater than or
equal to the total number of dimensions on the page axis.public Dimension[] getSelectableSlicerDimensions() throws ServerBloxException
ServerBloxException
- When unable to connect to the database, when the metadata
is corrupted, or when the connection has gone bad.public java.lang.String getMergedDimensions() throws ServerBloxException
ServerBloxException
- When unable to connect to the database, when the metadata
is corrupted, or when the connection has gone bad.public boolean isOnErrorClearResultSet() throws ServerBloxException
true
if the existing result set should be cleared. The default is false
.
ServerBloxException
setOnErrorClearResultSet(boolean)
public int getDrillDownOption() throws ServerBloxException
ServerBloxException
public boolean isDrillKeepSelectedMember() throws ServerBloxException
true
to retain the member being drilled on; false
otherwise.
ServerBloxException
setDrillKeepSelectedMember(boolean)
public boolean isDrillRemoveUnselectedMembers() throws ServerBloxException
true
if all other members should be removed; false
otherwise.
ServerBloxException
setDrillRemoveUnselectedMembers(boolean)
public boolean isPerformInAllGroups() throws ServerBloxException
true
to perform the drill operation in all groups;
false
to perform the drill operation only on the single selected occurrence of this member.
The default is true
.
ServerBloxException
public boolean isUseAliases() throws ServerBloxException
true
if aliases are used.
ServerBloxException
setUseAliases(boolean)
public java.lang.String getAliasTable() throws ServerBloxException
ServerBloxException
setAliasTable(String)
public java.lang.String getMemberNameRemoveSuffix() throws ServerBloxException
ServerBloxException
setMemberNameRemoveSuffix(String)
public java.lang.String getMemberNameRemovePrefix() throws ServerBloxException
ServerBloxException
setMemberNameRemovePrefix(String)
public boolean isSuppressMissingRows() throws ServerBloxException
true
to remove rows that have no data; false
otherwise. Default
is false
.
ServerBloxException
setSuppressMissingRows(boolean)
public boolean isSuppressMissingColumns() throws ServerBloxException
true
to remove columns that have no data; false
otherwise. Default
is false
.
ServerBloxException
setSuppressMissingColumns(boolean)
public boolean isSuppressMissing() throws ServerBloxException
ServerBloxException
public boolean isSuppressNoAccess() throws ServerBloxException
true
if data the users cannot access is suppressed; false
otherwise.
ServerBloxException
setSuppressNoAccess(boolean)
public boolean isSuppressZeros() throws ServerBloxException
true
if data columns or rows containing all zeross are suppressed; false
otherwise.
ServerBloxException
setSuppressZeros(boolean)
public boolean isSuppressDuplicates() throws ServerBloxException
true
if data columns or rows containing duplicate header values are suppressed;
false
otherwise. Default is true
.
ServerBloxException
setSuppressDuplicates(boolean)
public java.lang.String getCalculatedMembers() throws ServerBloxException
ServerBloxException
public java.lang.String getMergedHeaders() throws ServerBloxException
setMergedHeaders(String)
for details.
ServerBloxException
setMergedHeaders(String)
public java.lang.String getBookmarkFilter() throws ServerBloxException
Returns the default location from which to store and load bookmarks.
subDirectory, name=BloxID, application=AppContext, user=UserName
ServerBloxException
setBookmarkFilter(String)
public int getParentFirst() throws ServerBloxException
ServerBloxException
public java.lang.String getRowSort() throws ServerBloxException
setRowSort
method for details.
ServerBloxException
public java.lang.String getColumnSort() throws ServerBloxException
setColumnSort
for details.
ServerBloxException
public java.lang.String getDimensionRoot() throws ServerBloxException
DimA:NewRootMemberA1,NewRootMemberA2;DimB:NewRootMemberB1,NewRootMemeberB2;...Note:If you specify a dimension without new root members, the dimension root is reset to the database default root member for that dimension.
ServerBloxException
public Member[] getDimensionRoot(Dimension dimension) throws ServerBloxException
dimension
- The dimension containing the desired root members.
ServerBloxException
- When the connection has gone bad,
when the specified dimension is invalid, or when unable to create the root member array.public boolean isEnableKeepRemove() throws ServerBloxException
true
to enalbe the Keep Only and Remove Only options in the context menu;
false
to disable them. Default is true
.
ServerBloxException
public boolean isEnableShowHide() throws ServerBloxException
true
if the Show Only, Show All, and Hide Only options are enabled;
false
if not. Default is true
.
ServerBloxException
public boolean isLeafDrillDownAvailable() throws ServerBloxException
true
or false
ServerBloxException
setLeafDrillDownAvailable(boolean)
public java.lang.String getHiddenMembers() throws ServerBloxException
DimensionName1:MemberNameA,MemberNameB;
DimensionName2:MemberNameC,MemberNameD;
...
DimensionNameN:MemberNameX,MemberNameY
ServerBloxException
public java.lang.String getHiddenTuples() throws ServerBloxException
{Year,Product:Qtr3,Audio;Qtr4,Visual}, {Accounts, Market:Profit,East}Each tuple list contains the dimension names separated by commas, followed by a colon, followed by the list of tuples. Each member of the tuple is separated by a comma and each tuple is separated by a semi-colon
ServerBloxException
public boolean isAutoConnect() throws ServerBloxException
ServerBloxException
setAutoConnect(boolean)
public boolean isAutoDisconnect() throws ServerBloxException
ServerBloxException
setAutoDisconnect(boolean)
public boolean isConnectOnStartup() throws ServerBloxException
setConnectOnStartup
for more information.
true
if the DataBlox automatically connects to the data source when it is instantiated;
false
if not.
ServerBloxException
setConnectOnStartup(boolean)
public boolean isUseOlapDrillOptimization() throws ServerBloxException
true
when query optimization is turned on
ServerBloxException
setUseOlapDrillOptimization(boolean)
public boolean isShowSuppressDataDialog() throws ServerBloxException
useOlapDrillOptimization
property is set to
true
and either suppressMissingColumns
or suppressMissingRows
is also
set to true
.
true
to pop up an alert dialog; false
to suppress the pop-up dialog.
ServerBloxException
setShowSuppressDataDialog(boolean)
,
setUseOlapDrillOptimization(boolean)
,
setSuppressMissingColumns(boolean)
,
setSuppressMissingRows(boolean)
public boolean isRetainSlicerMemberSet() throws ServerBloxException
ServerBloxException
public java.lang.String getProvider() throws ServerBloxException
ServerBloxException
public boolean isInternalSortEnabled() throws ServerBloxException
ServerBloxException
public boolean isShowShortHierarchyNames() throws ServerBloxException
false
value will generate the usual "dimension (hierarchy)" format. A true
value will set
the format to be "hierarchy".
ServerBloxException
public void setRetainSlicerMemberSet(boolean persistentMemberSelection) throws InvalidBloxPropertyValueException, ServerBloxException
persistentMemberSelection
- true if page filter selections should be persistent
InvalidBloxPropertyValueException
ServerBloxException
public void setTextualQueryEnabled(boolean textualQuery) throws InvalidBloxPropertyValueException, ServerBloxException
true
, use the textual query, not the serialized query, when restoring a bookmark. This
allows the deveoloper to save textual queries to the bookmark and restore them without using
the serialized version.
textualQuery
-
InvalidBloxPropertyValueException
ServerBloxException
public void setApplyPropertiesAfterBookmark(boolean applyPropertiesAfterBookmark) throws InvalidBloxPropertyValueException, ServerBloxException
dataSourceName
property ignores the applyPropertiesAfterBookmark()
setting. If data source A is currently used by a PresentBlox on a page and the user loads a bookmark that
was saved on data source B, data source B will be used and loaded even if applyPropertiesAfterBookmark
is set to true
.
applyPropertiesAfterBookmark
- true
to have Blox properties override those in the bookmark.
The default is false
.
InvalidBloxPropertyValueException
ServerBloxException
public void setDataSourceName(java.lang.String dataSourceName) throws InvalidBloxPropertyValueException, ServerBloxException
The data source name must be defined in Alphablox. If a data
source is not specified, the Blox loads with no initial data source. This feature enables
the data source to be set programmatically, perhaps based on user properties or actions.
However, to prevent an error message appearing to the user, be sure to set the value of the
autoConnect
property to false.
This method also reads in the properties of the data source such as username,
password, catalog, schema, query, and dimensions on page axis. Therefore, if you want to set
any of these properties using the Java methods such as setUserName
and setPassword
,
set them after the setDataSourceName()
method. The order these data source properties are
set is not an issue if you use the Blox tags.
The tags are designed to enforce that the data source is set before the call to set the
other data source properties, the side effect is taken care for you.
dataSourceName
- name of the data source
InvalidBloxPropertyValueException
ServerBloxException
public void setCatalog(java.lang.String catalog) throws InvalidBloxPropertyValueException, ServerBloxException
catalog
- Name of the data catalog
InvalidBloxPropertyValueException
ServerBloxException
public void setSchema(java.lang.String schema) throws InvalidBloxPropertyValueException, ServerBloxException
schema
property for a DataBlox, the value is taken from the data
source definition. A schema is a "database" in Essbase terminology.
schema
- Name of the schema
InvalidBloxPropertyValueException
ServerBloxException
public void setUserName(java.lang.String userName) throws InvalidBloxPropertyValueException, ServerBloxException
Sets the user name to use to access the data source.
The default user name is specified when defining the data source to Alphablox.
If the userName
property is not specified for a DataBlox, the value is taken from
the data source definition.
If you use this method in conjunction with setDataSourceName
method, you should set the user name after calling setDataSourceName()
.
Otherwise, the DataBlox will connect with all the properties in the data source
specified and override any properties set earlier. This is because the setDataSourceName()
method also reads in the properties of the data source such as username, password, catalog, schema,
query, and dimensions on page axis. The order these data source properties are set is not an
issue if you use the Blox tags. The tags are designed to enforce that the data source is set
before the call to set the other data source properties, the side effect is taken care for you.
userName
- the username to use to access the data source. Default is the username specified when
defining the data source to Alphablox.
InvalidBloxPropertyValueException
ServerBloxException
public void setProvider(java.lang.String provider) throws InvalidBloxPropertyValueException, ServerBloxException
[OLE DB for OLAP only] Sets the provider string to use to access the data source.
The default provider string is specified when defining the data source to Alphablox.
If the provider
property is not specified for a DataBlox, the value is taken from
the data source definition.
If you use this method in conjunction with setDataSourceName
method, you should set the provider string after calling setDataSourceName()
.
Otherwise, the DataBlox will connect with all the properties in the data source
specified and override any properties set earlier. This is because the setDataSourceName()
method also reads in the properties of the data source such as username, password, catalog, schema,
query, and dimensions on page axis. The order these data source properties are set is not an
issue if you use the Blox tags. The tags are designed to enforce that the data source is set
before the call to set the other data source properties, the side effect is taken care for you.
provider
- the provider string to use to access the data source. Default is the provider specified when
defining the data source to Alphablox.
InvalidBloxPropertyValueException
ServerBloxException
public void setInternalSortEnabled(boolean enable) throws InvalidBloxPropertyValueException, ServerBloxException
enable
-
InvalidBloxPropertyValueException
ServerBloxException
public void setAASUserAuthorizationEnabled(boolean useAASUserAuthorization) throws InvalidBloxPropertyValueException, ServerBloxException
useAASUserAuthorization
- true
to use the Alphablox login information
for Essbase authentication; false
to use the normal authentication process
InvalidBloxPropertyValueException
ServerBloxException
public void setPassword(java.lang.String password) throws InvalidBloxPropertyValueException, ServerBloxException
password
- the password to use
InvalidBloxPropertyValueException
ServerBloxException
public void setQuery(java.lang.String query) throws InvalidBloxPropertyValueException, ServerBloxException
updateResultSet()
or
connect()
.
query
- The query to be executed.
InvalidBloxPropertyValueException
ServerBloxException
public void setQueryModel(IQueryModel queryModel) throws InvalidBloxPropertyValueException, ServerBloxException
If the IQueryModel object is an IMDXQueryModel object, then Alphablox will use dimension expressions (IMDXDimensionExpression objects) from the IMDXQueryModel to optimize MDX queries generated in the future.
To execute the query call updateResultSet()
or connect()
.
queryModel
- An IQueryModel object that contains the query as a data structure.
InvalidBloxPropertyValueException
ServerBloxException
setUseOlapDrillOptimization(boolean useOptimization)
public void setSelectableSlicerDimensions(java.lang.String selectableSlicerDimensions) throws InvalidBloxPropertyValueException, ServerBloxException
selectableSlicerDimensions
- a comma-separated string of unique dimension names.
InvalidBloxPropertyValueException
ServerBloxException
public void setMergedDimensions(java.lang.String mergedDimensions) throws ServerBloxException
mergedDimensions
- the dimensions to be "merged." The dimension names should be comma-delimited.
ServerBloxException
public void setSelectableSlicerDimensions(Dimension[] dimensions) throws ServerBloxException
dimensions
- The dimensions to appear on the page axis.
ServerBloxException
- When a runtime error occurs.public void setOnErrorClearResultSet(boolean clearResultSet) throws InvalidBloxPropertyValueException, ServerBloxException
clearResultSet
- true
to clear the existing result set. The default is false
.
ServerBloxException
InvalidBloxPropertyValueException
isOnErrorClearResultSet()
public void setDrillDownOption(int drillDownOption) throws InvalidBloxPropertyValueException, ServerBloxException
drillDownOption
- an integer from 1 to 5 specifying the level to drill down to. Possible values are:
InvalidBloxPropertyValueException
ServerBloxException
public void setDrillKeepSelectedMember(boolean drillKeepSelectedMember) throws InvalidBloxPropertyValueException, ServerBloxException
drillKeepSelectedMember
- true
to retain the member being drilled on; false
otherwise. The default is true
.
InvalidBloxPropertyValueException
ServerBloxException
public void setDrillRemoveUnselectedMembers(boolean drillRemoveUnselectedMembers) throws InvalidBloxPropertyValueException, ServerBloxException
drillRemoveUnselectedMembers
- true
if all other members should be removed;
false
otherwise. The default is false
.
InvalidBloxPropertyValueException
ServerBloxException
public void setPerformInAllGroups(boolean performInAllGroups) throws InvalidBloxPropertyValueException, ServerBloxException
performInAllGroups
- true
to perform the drill operation in all groups;
false
to perform the drill operation only on the single selected occurrence of this member.
The default is true
.
InvalidBloxPropertyValueException
ServerBloxException
public void setUseAliases(boolean useAliases) throws InvalidBloxPropertyValueException, ServerBloxException
useAliases
- true
to use aliases. Default is false
.
InvalidBloxPropertyValueException
ServerBloxException
public void setAliasTable(java.lang.String aliasTable) throws InvalidBloxPropertyValueException, ServerBloxException
aliasTable
property is specified on a DataBlox and the
useAliases
property is set to true
, the value is
taken from the corresponding data source definition, if the value is present.
aliasTable
- the name of an alias table
InvalidBloxPropertyValueException
ServerBloxException
public void setCredential(java.lang.Object credential) throws InvalidBloxPropertyValueException, ServerBloxException
credential
- The credential object to send to the datasource. Consult
the documentation of the database for the given datasource to see the actual
type of object required for the credential.
InvalidBloxPropertyValueException
ServerBloxException
public void setMemberNameRemoveSuffix(java.lang.String suffix) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies the end point of a member name when returned from the data source.
This method only affects the result set, not the metadata. That is, subsequent metadata calls to get the display name of a member will still include the suffix.
This property is of particular use with Essbase data sources where member names must be unique. Unique names are often created by adding unique strings as suffixes or prefixes on member names. Using this property enables stripping off the suffix strings before displaying the member names. The removal can only be applied to member names; it cannot be applied to dimension names. Additionally, properties and methods that take member names as arguments will use the unique member name prior to the prefix or suffix removal.
For example, if a member has a name of "123##Year", with setMemberNameRemoveSuffix("##")
,
the returned member name becomes "123".
suffix
- the text indicating the end point of a member name
InvalidBloxPropertyValueException
ServerBloxException
public void setMemberNameRemovePrefix(java.lang.String prefix) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies the start point of a member name when returned from the data source.
This method removes the text from a member name string returned from a data source beginning with and including the specified string.
This method only affects the result set, not the metadata. That is, subsequent metadata calls to get the display name of a member will still include the prefix. This property is of particular use with Essbase data sources where member names must be unique. Unique names are often created by adding unique strings as suffixes or prefixes on member names. Using this property enables stripping off the prefix strings before displaying the member names. The removal can only be applied to member names; it cannot be applied to dimension names. Additionally, properties and methods that take member names as arguments will use the unique member name prior to the prefix or suffix removal.
For example, if a member has a name of "123##Year", with setMemberNameRemovePrefix("##")
,
the returned member name becomes "Year".
prefix
- the text indicating the starting point of a member name
InvalidBloxPropertyValueException
ServerBloxException
public void setSuppressMissing(boolean suppressMissing) throws InvalidBloxPropertyValueException, ServerBloxException
setSuppressMissingColumns
and/or
setSuppressMissingRows
instead.
InvalidBloxPropertyValueException
ServerBloxException
public void setSuppressMissingRows(boolean suppressMissingRows) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies whether to remove rows containing no data at all from the grid.
Use the setMissingValueString()
method on GridBlox to specify what to display in
cells with no value.
When the data source is Microsoft Analysis Services, this method should be used with care in
conjunction with the setUseOlapDrillOptimization()
method. When both are set to true
,
users may only see partial data when they drill down and then perform other actions such as changing page
filters, drilling up, or using Dimension Explorer/Member Filter.
See setUserOlapDrillOptimization
for more information.
To suppress duplicate shared members in Essbase result sets, use the SUPSHARE
command in your report
script query. To learn more about this command, refer to your Essbase documentation.
suppressMissingRows
- true
to remove rows that have no data; false
otherwise. Default
is false
.
InvalidBloxPropertyValueException
ServerBloxException
setUseOlapDrillOptimization(boolean)
public void setSuppressMissingColumns(boolean suppressMissingColumns) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies whether to remove columns containing no data at all from the grid.
Use the setMissingValueString()
method on GridBlox to specify what to display in
cells with no value.
When the data source is Microsoft Analysis Services, this method should be used with care in
conjunction with the setUseOlapDrillOptimization()
method. When both are set to true
,
users may only see partial data when they drill down and then perform other actions such as changing page
filters, drilling up, or using the Member Filter.
See setUserOlapDrillOptimization
for more information.
To suppress duplicate shared members in Essbase result sets, use the SUPSHARE
command in your report
script query. To learn more about this command, refer to your Essbase documentation.
suppressMissingColumns
- true
to remove columns that have no data; false
otherwise. Default
is false
.
InvalidBloxPropertyValueException
ServerBloxException
setUseOlapDrillOptimization(boolean)
public void setSuppressNoAccess(boolean suppressNoAccess) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies whether to remove from the grid those rows or columns containing data the users cannot access.
To suppress duplicate shared members in Essbase result sets, use the SUPSHARE
command in your report
script query. To learn more about this command, refer to your Essbase documentation.
suppressNoAccess
- true
to suppress data the users cannot access; false
to
leave it. Default is false
.
InvalidBloxPropertyValueException
ServerBloxException
public void setSuppressZeros(boolean suppressZero) throws InvalidBloxPropertyValueException, ServerBloxException
suppressZero
- true
to suppress data columns or rows containing all zeross; false
to leave them. Default is false
.
InvalidBloxPropertyValueException
ServerBloxException
public void setSuppressDuplicates(boolean suppressDuplicates) throws InvalidBloxPropertyValueException, ServerBloxException
suppressDuplicates
- true
to suppress data columns or rows containing duplicate header values;
false
to leave them. Default is true
.
InvalidBloxPropertyValueException
ServerBloxException
public void setCalculatedMembers(java.lang.String calculatedMembers) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies one or more new members to be calculated by Alphablox using the result set retrieved from the data source. Members used in calculation have to exist in the result set or the calculated member will not show.
The string is a comma-delimited list of one or more calculated member definitions. Specify each definition as shown below:
dim:calc{refMember:gen:missingIsZero:drillDownMember:drillUpMember}= expression{scopeDim:scopeMember}
where:
definition string Component | Description |
---|---|
|
The name of the dimension on which to create a calculated member. If you are merging headers using the |
|
The name of calculated member. The name could be the same as an existing member or dimension name since a calculated
member has an internal unique name in the form |
refMember |
The name of an existing member, including other calculated members, before which this calculated member is to be placed. Specify the reference member is optional. You must place double quotes around member names that contain special characters. For example: calculatedMembers="Product:\"Profit %\"{missingIsZero} = Gross Margin/Sales*100" The calculated member calc will be placed before refMember in the grid. If you do not specify a reference member, the calculated member calc will be placed in the last row or column. If the user drills on or hides the reference member, the calculated member retains its position. However, if the user removes the reference member, the calculated member moves to the last row or column. |
|
The generation number of the calculated member. Specifying a generation number is optional. Generation can be defined as either absolute or relative
to the To specify absolute generation, define gen as a positive integer. A colon is required before the generation number even if there is no reference member defined. To specify relative generation, define gen
as a + (plus) or - (minus) operator followed by an integer. The calculated
member's generation will be the reference member's generation
number plus or minus the integer defined in |
|
Optional keyword (case-insensitive) to use if you want all missing values for members involved in the calculation to be treated as zero. By default, all missing values in the calculation are treated as missing. To change the default behavior, use this special keyword. The following example will treat all missing values in Product1, Product2, and Product3 as zero. Product:Total Sales{missingIsZero} = Product1 + Product2 + Product3 This keyword only affects calculations using member variables. It has no effect on calculation functions. |
|
Optional. The real member to drill down when users try to drill down on this calculated member. |
|
Optional. The real member to drill up when users try to drill up from this calculated member. For example: Year:Total{:::Qtr3:Jul} = sum() This would drill down on Qtr3 and drill up on Jul from
the calculated member "Total". Notice that when the optional
refMember, gen,
and |
|
The arithmetic expression involving members of dim or values from other dimensions. For example, adds a calculated member called "Products 1 and 2" in the "All Products" dimension. This expression involves only members from the same dimension where the calculated member is added. If the calculation involves values from the intersection
of multiple dimensions, you should specify the dimension where each
member is from by separating the dimension and member name with a colon,
and then separate each dimesnion:member dim1:member1;dim2:member2;...;dimN:memberN where:
In the following example, a calculated member "Percentage of Total" is added to the All Products dimension with values from the intersection of All Products and All Locations as dividers: For functions supported in calculations, see the DataBlox Section in the Developer's Referencefor a detailed listing and description. |
|
Defines the dimension and members for which the calculated member is displayed. Additional scope members are separated by commas. Additional pairs are divided within the braces by a semicolon. Specifying a scope is optional. Member names that contain special characters should be enclosed in double quotes (note that you need to escape inner double quotes). When a scope is defined, the calculated member appears
only for the members specified in the scope. However, if the calculated
member and a scope member are on different axes, intersecting cells
that do not fall in the scope are still drawn. Their value is determined
by the If no scope is defined, the calculated member is displayed wherever the members involved in the expression appear. Four member search functions are available for specifying the level of members the calculated member should be displayed for:
|
The following restrictions apply to calculated members:
calculatedMembers
- the string to generate the calculated members
InvalidBloxPropertyValueException
ServerBloxException
public void setBookmarkFilter(java.lang.String bookmarkFilter) throws InvalidBloxPropertyValueException, ServerBloxException
You can use this location to provide grouping and visibility for bookmarks, giveing you control over the set of bookmarks available to end users. The filter you specify causes the bookmarks to be stored in the subdirectory defined in the string bookmarkFilter under the usual bookmark directory (public, private, or group) in the Alphablox repository.
Additionally, the setBookmarkFilter
method can allow bookmarks to be shared across
multiple Blox and/or multiple applications.
bookmarkFilter
- name of the subdirectory, or a comma separated list of the form:
subDirectory, name=BloxID, application=AppContext, user=UserNamewhere
name
, application
, and user
clauses are optional, and
the subDirectory clause is required.
InvalidBloxPropertyValueException
ServerBloxException
public void setParentFirst(int parentFirst) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies how the parents are returned relative to the children.
parentFirst
- integer (using constants). Valid values are:
DataBlox.PARENT_DEFAULT
: the order of the members returned from the query should be
respected
DataBlox.PARENT_FIRST
: parent members should come before their child members regardless
of the order of the members returned from the query
DataBlox.PARENT_LAST
: parent members should come after their child members regardless
of the order of the members returned from the query
Notes:
true
to place the parents before the children;
false
to place children first. If this tag attribute is not specified, the order of the members
returned from the query is respected.
expandCollapseMode ="true"
)
and want parents to display first, use the value of this method to DataBlox.PARENT_DEFAULT
rather than do so in the query. This is to ensure the expand/collapse mode can search through the result set
correctly to determine the base members and shared members.
InvalidBloxPropertyValueException
ServerBloxException
public void setRowSort(java.lang.String sortString, java.lang.String[] headerMembers, java.lang.String[] footerMembers) throws InvalidBloxPropertyValueException, ServerBloxException
InvalidBloxPropertyValueException
ServerBloxException
public void setRowSort(java.lang.String sortString) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies how to sort row members for multidimensional data sources.
The String sortString consists of either two, three or four comma delimited elements:FALSE
.
Ascending
, Asc
,
Descending
or Desc
.
true
to keep members with their parents after a sort is performed.
"1,0,asc,FALSE" "2,-1,desc" "2,asc" "0, descending"
sortString
- A comma delimited string representing the sort.
InvalidBloxPropertyValueException
- When the sortString has an incorrect format.
ServerBloxException
- When a runtime error occurs.public void setColumnSort(java.lang.String sortString) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies how to sort column members for multidimensional data sources. The String sortString consists of either two, three or four comma delimited elements:
false
.
Ascending
, Asc
,
Descending
or Desc
.
true
or false
. This specifies whether to keep
members with their parents after a sort is performed.
The following examples demonstrate this syntax:
"1,0,asc,FALSE" "2,-1,desc" "2,asc" "0, descending"
sortString
- A comma delimited string representing the sort.
InvalidBloxPropertyValueException
- When the sortString has an incorrect format.
ServerBloxException
- When a runtime error occurs.public void setColumnSort(java.lang.String sortString, java.lang.String[] headerMembers, java.lang.String[] footerMembers) throws InvalidBloxPropertyValueException, ServerBloxException
InvalidBloxPropertyValueException
ServerBloxException
public void setDimensionRoot(java.lang.String dimensionRoot) throws InvalidBloxPropertyValueException, ServerBloxException
dimensionRoot
- A String which specifies the new root members for the specified dimension or dimensions.
The String is in the form:
DimA:NewRootMemberA1,NewRootMemberA2;DimB:NewRootMemberB1,NewRootMemberB1;...A unique name (base name in Hyperion Essbase) or display name can be used for the dimension and member names string specified in the property value. This allows you to differentiate between different members or dimensions with the same display names. In Hyperion Essbase, you can specify a member, regardless of the alias table in use, by using the base name.
setDimensionRoot("[ACCOUNT].[ACCOUNT_TYPE]:[ACCOUNT].[ACCOUNT TYPE].[All ACCOUNT TYPE].[ACCOUNT_TYPE]");
InvalidBloxPropertyValueException
ServerBloxException
public void setDimensionRoot(Dimension dimension, Member[] members) throws ServerBloxException
dimension
- the dimension to set as the root member.members
- the root members. If this parameter is null, or of zero length, dimension root resets to the database default.
ServerBloxException
public void setDimensionRoot(Dimension dimension, Member member) throws ServerBloxException
setDimensionRoot(Dimension, Member[])
method.
dimension
- the dimension to set as the root member.member
- the root member. If this parameter is null, dimension root resets to the database default.
ServerBloxException
public void setEnableKeepRemove(boolean enableKeepRemove) throws InvalidBloxPropertyValueException, ServerBloxException
enableKeepRemove
- true
to enable the Keep Only and Remove Only options in the context menu,
false
to disable them. Default is true
.
InvalidBloxPropertyValueException
ServerBloxException
public void setEnableShowHide(boolean enableShowHide) throws InvalidBloxPropertyValueException, ServerBloxException
enableShowHide
- true
to enable the Show Only, Show All, and Hide Only options;
false
to disable them. Default is true
.
InvalidBloxPropertyValueException
ServerBloxException
public void setLeafDrillDownAvailable(boolean leafDrillDownAvailable) throws InvalidBloxPropertyValueException, ServerBloxException
leafDrillDownAvailable
- true
to allow the user to drill down on a leaf member
InvalidBloxPropertyValueException
ServerBloxException
isLeafDrillDownAvailable()
public void setMergedHeaders(java.lang.String mergedHeaders) throws InvalidBloxPropertyValueException, ServerBloxException
mergedHeaders
- a colon-separated string of dimensionString:matchPatterns:drillableDim, where:
hiddenMembers
or hiddenTuples
property). By default, the merged header adds a space as a separator among the merged dimension headers.
For example, if the headers for Scenario and Measures are merged, the new header is "Scenario Measures,"
with a space in between.
The order of the dimension specification has to be the same as that in the result set, and they must be consecutive. For example, if you have a query that returns All Time Periods, Measures, and Scenario in that sequence, then the following examples are valid:
mergedHeaders="All Time Periods, Measures, Scenario = Measures and Scenario by Year" mergedHeaders="Measures, Scenario = Measures & Scenario"But the following are not:
mergedHeaders="All Time Periods, Scenario = Scenario by Period" (dimensions are not consecutive) mergedHeaders="Measures, All Time Periods = Measures by Period" (order is not correct)
Note: Calculated member (specified using the calculatedMembers
property (or the
setCalculatedMembers(String)
method) is performed before the headers are merged. Therefore, when you need to add a calculated member or
members, use the original dimension names. hiddenMembers
and hiddenTuples
,
on the contrary, are performed after mergedHeaders
, and therefore the newly merged header should
be used.
mergedHeaders="All Time Periods, Measures = Measures by Period: Qtr 1 = Q1, Qtr 2 = Q2, Qtr 3 = Q3, Qtr 4 = Q4"
As a result, Qtr 1 00 Sales becomes Q1 00 Sales and Qtr 1 01 Forecast becomes Q1 01 Forecast.
mergedHeaders="Measures, Scenario::Scenario"Note: There can only be one drillable dimension when headers are merged. Setting a drillable dimension makes the other dimensions in the dimensionString not drillable.
InvalidBloxPropertyValueException
ServerBloxException
public void setHiddenMembers(java.lang.String hiddenMembers) throws InvalidBloxPropertyValueException, ServerBloxException
hiddenMembers
- A comma delimited string specifying the members to hide.
The members are grouped by dimension.
Each group of members is proceeded by the name of the dimension followed by a colon.
Separate each group with a semicolon.
For example, DimensionName1:MemberNameA,MemberNameB; DimensionName2:MemberNameC,MemberNameD;
ServerBloxException
- When an error occurred while trying to hide members
InvalidBloxPropertyValueException
- When the argument string is formatted incorrectly.public void setAutoConnect(boolean autoConnect) throws InvalidBloxPropertyValueException, ServerBloxException
Enabling this property will cause the DataBlox to reconnect to the data source automatically in all cases except
during startup. The default value is false
. If enabled and the user performs an operation that requires a data source connection,
the DataBlox will connect to the datasource, restore the current query, and execute the operation. This property is
usually used in conjuction with autoDisconnect. This only works with relational datasources.
Connecting to a data source and restoring a query are time-intensive processes. The
autoConnect
and autoDisconnect
properties should be used only in certain
cases, such as when the number of connections to a database is limited.
If autoConnect
is disabled and autoDisconnect
is enabled, the user will not
be able to perform operations on the result set after the initial disconnect.
autoConnect
- set to true
to enable automatically connecting, set false to disable
automatically connecting.
InvalidBloxPropertyValueException
ServerBloxException
setAutoDisconnect(boolean)
public void setAutoDisconnect(boolean autoDisconnect) throws InvalidBloxPropertyValueException, ServerBloxException
Enabling this property will cause the DataBlox to disconnect from the data source automatically
when the application no longer requires a connection without erasing the current result set.
The default value is false
. This property is
usually used in conjuction with autoDisconnect
. This only works with relational or
Microsoft Analysis Services data sources.
Connecting to a data source and restoring a query are time intensive processes. The
autoConnect
and autoDisconnect
properties should be used only in
certain cases, such as when you are experiencing scalability problems with Microsoft Analysis
Services due to large client cache memory consuption per connection. In this case, if you have
custom code that performs metadata operations such as a for loop with thousands of
resolveMember
calls,
you should call the clearClientCache
method afterwards
to free up the memory.
The autoDisconnect
property does not apply to the RDB metadata object on
a server-side DataBlox. The DataBlox will not disconnect from an RDB data source after a
metadata request, even if autoDisconnect
is set to true. The application must
explicitly disconnect when it is through with the object. However, you can still use
setAutoConnect
to reconnect to the data source on future metadata requests.
If autoDisconnect
is enabled and autoConnect
is disabled,
the user will not be able to perform operations on the result set after the initial disconnect.
autoDisconnect
- set to true to enable automatically disconnecting, set false to disable automatically
disconnecting.
InvalidBloxPropertyValueException
ServerBloxException
setAutoConnect(boolean)
public void setConnectOnStartup(boolean connectOnStartup) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies whether the DataBlox will automatically connect to its data source upon Blox instantiation.
To prevent a DataBlox from connecting to a data source, set this method to false
.
When the data query is set later, you need to call the connect()
method to connect to the
data source.
When connectOnStartup
is set to true
, it overrides the autoConnect
property. The connectOnStartup
property causes a database connection, even if no query is defined.
Note that the visible
property only specifies whether an applet should be sent to the client.
If the DataBlox's visible
property is set to false, it still connects to the data source
unless connectOnStartup
is set to false
.
connectOnStartup
- true
to automatically connect to the data source when the Blox is
instantiated; false
to not connect.
InvalidBloxPropertyValueException
ServerBloxException
public void setUseOlapDrillOptimization(boolean useOptimization) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies whether drill optimization should be enabled for Microsoft Analysis Services data sources.
By default, the useOlapDrillOptimization
property is set to true
for Microsoft
Analysis Services data sources for better query performance. Use this property with care in conjunction with
the suppressMissingColumns
or suppressMissingRows
property. When both properties
are set to true
, users may
only see partial data when they drill down and then perform other actions such as changing page filters,
drilling up, or using Dimension Explorer/Member Filter. When this sequence of user actions occur, a dialog
will pop up that alerts the users of this possibility and recommends the users to turn off Suppress Missing.
This dialog can be turned off with the showSuppressDataDialog
property.
useOptimization
- true
to use the query optimization
InvalidBloxPropertyValueException
ServerBloxException
setShowSuppressDataDialog(boolean)
public void setShowSuppressDataDialog(boolean showDialog) throws InvalidBloxPropertyValueException, ServerBloxException
Specifies if a warning dialog should pop up when the useOlapDrillOptimization
property is set to
true
and either suppressMissingColumns
or suppressMissingRows
is also
set to true
.
This method only applies to Microsoft Analysis Services data sources.
This dialog alerts users of the possibility of incomplete data when they drill down and then perform further
data analysis operations. This can happen when users drill down and then perform other actions such as changing
page filters, drilling up, or using Dimension Explorer/Member Filter. When this sequence of user actions occur,
a dialog will pop up that alerts the users of the possibility of incomplete data and recommends the users to
turn off Suppress Missing using the Data options dialog. When the showSuppressDataDialog
property
is set to false
, the dialog will not pop up.
showDialog
- true
to pop up an alert dialog; false
to suppress the popup dialog.
Defaults to true
.
InvalidBloxPropertyValueException
ServerBloxException
public void setShowShortHierarchyNames(boolean showShortHierarchyNames) throws InvalidBloxPropertyValueException, ServerBloxException
InvalidBloxPropertyValueException
ServerBloxException
public void clearClientCache() throws ServerBloxException, BadConnectionException
autoDisconnect
is set to true
.
ServerBloxException
BadConnectionException
public void connect() throws DataBloxCannotConnectException, ServerBloxException
If currently connected, disconnect and clear the current result set. Connect using any data properties on the DataPeer that have changed. Some properties that may be set are the dataSourceName, userName, password, catalog, schema, and query. Also executes the text query if the query property has been set.
If you already have a server-side object created (such as a MDBMetaData object),
after calling connect()
, since the object is still pointing to the original
connection that no longer exists, you will need to recreate the server-side object.
query
property is missing, no query is executed when
the connection is made. Use the setQuery
method to set the value
for the query property.
DataBloxCannotConnectException
- When the DataBlox failed to connect to the data source.
ServerBloxException
- When unable to properly initialize the DataPeer.connect(boolean)
public void connect(boolean executeTextualQuery) throws DataBloxCannotConnectException, ServerBloxException
executeTextualQuery
- If true
, also execute the textual query if the query property has been set after connecting.
DataBloxCannotConnectException
- When the DataBlox failed to connect to the data source.
ServerBloxException
- When unable to properly initialize the DataPeer.public boolean isConnected() throws ServerBloxException
true
when the data source is connected, false
if not.
true
if the data source has already been connected, false
otherwise.
ServerBloxException
- When unable to properly initialize the DataPeer.public void disconnect(boolean clearResultSet) throws ServerBloxException
false
, the result set is not cleared.
clearResultSet
- Use true
to clear the result set, false
not to clear the result set.
ServerBloxException
- When unable to properly initialize the DataPeer.public void refresh() throws DataBloxBadConnectionException, ServerBloxException
DataBloxBadConnectionException
- When the connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void clearResultSet() throws ServerBloxException
ServerBloxException
- When unable to properly initialize the DataPeer.public void executeCustomCalc(java.lang.String calcScript) throws DataBloxBadConnectionException, ServerBloxException
calcScript
- The named calculation script saved in the database.
DataBloxBadConnectionException
- When the connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void executeNamedDBCalcScript(java.lang.String calcScript) throws DataBloxBadConnectionException, ServerBloxException
calcScript
- The named calculation script saved in the database.
DataBloxBadConnectionException
- When the connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void lockCurrentDataSet() throws DataBloxBadConnectionException, ServerBloxException
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void commitData() throws DataBloxBadConnectionException, ServerBloxException
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void setDataValues(Tuple[][] coordinates, java.lang.String[] values) throws ServerBloxException
coordinates
- An array of coordinates, a single coordinate is itself an array of tuple
that specifies a cell in the data cube. Invalid coordinates will result in an exception.values
- An array of data values to be written back. If only one value appears in the
value string, it is applied to all specified cell coordinates. Non-numeric values such as
a blank string or #MISSING are submitted to the data source as a missing value.
ServerBloxException
- When an error occurs.public RDBResultSet drillThrough(Tuple[] coordinates) throws ServerBloxException
coordinates
- - The first tuple's index is the column coordinate of the specified cell.
The second tuple's index is the row coordinate of the specified cell.
ServerBloxException
public RDBResultSet drillThrough(Tuple[] coordinates, int timeout) throws ServerBloxException
coordinates
- - The first tuple's index is the column coordinate of the specified cell.
The second tuple's index is the row coordinate of the specified cell.timeout
- - how long to wait in seconds while executing a drillthrough before terminating the attempt and generating an error
ServerBloxException
public RDBResultSet drillThrough(int columnCoordinate, int rowCoordinate, int timeout) throws ServerBloxException
columnCoordinate
- - The column coordinate of the specified cell.rowCoordinate
- - The row coordinate of the specified cell.timeout
- - how long to wait in seconds while executing a drillthrough before terminating the attempt and generating an error
ServerBloxException
public RDBResultSet drillThrough(int columnCoordinate, int rowCoordinate) throws ServerBloxException
columnCoordinate
- - The column coordinate of the specified cell.rowCoordinate
- - The row coordinate of the specified cell.
ServerBloxException
public RDBResultSet drillThrough(java.lang.String reportName, int columnCoordinate, int rowCoordinate) throws ServerBloxException
reportName
- The name of the drillthrough report.columnCoordinate
- The column coordinate of the specified cell.rowCoordinate
- The row coordinate of the specified cell.
ServerBloxException
public java.lang.String[] getDrillThroughReportNames(int columnCoordinate, int rowCoordinate) throws ServerBloxException
columnCoordinate
- The column coordinate for the specified cellrowCoordinate
- The row coordinate for the specified cell
ServerBloxException
public void swapRowAndColumnAxes() throws ServerBloxException
ServerBloxException
public void writeback(java.lang.Object coordinates, java.lang.Object values, java.lang.String command) throws ServerBloxException
coordinates
- The coordinates object can be in two forms: Tuple[][] or a String.
If the coordinates object is in the form of a string, it should be a comma delimited string
denoting the coordinates of the cells to write back to. If the coordinates object is in the form of
a Tuple[][], a Tuple[] in the array represents the coordinates for each cell you want to write back to.values
- The values object can be in two forms Object[] or String. If the values is a string,
it should be a comma delimited string denoting the values for the writeback operation. The order of
the values corresponds to the order of the coordinates specified. If the coordinates object is in the form
of Object[], each object in the array represents a value to writeback.
The order of the values will correspond to the order of the coordinates specified.command
- A command to execute on the data source's database. This argument must be non-null.
If no command are to be executed, use the version of writeback that takes coordinates and values only,
or pass in an empty string for the command parameter.
ServerBloxException
- When an error occurs while trying to writeback.public void unlockAll() throws ServerBloxException, DataException, BadConnectionException, java.lang.Exception
ServerBloxException
DataException
BadConnectionException
java.lang.Exception
public java.lang.String generateQuery() throws DataBloxBadConnectionException, ServerBloxException
DataBloxBadConnectionException
ServerBloxException
public IQueryModel generateQueryModel() throws ServerBloxException
ServerBloxException
public MetaData getMetaData() throws DataBloxCannotConnectException, ServerBloxException
DataBloxCannotConnectException
- When the DataBlox fails to connect
to the datasource.
ServerBloxException
public ResultSet getResultSet() throws DataBloxCannotConnectException, CannotCreateResultSetException, ServerBloxException
DataBloxCannotConnectException
- When the DataBlox failed to connect to datasource.
CannotCreateResultSetException
- When a result set cannot be found after connecting
to the datasource, usually because a query hasn't been specified.
ServerBloxException
public ResultSet getRawResultSet() throws DataBloxCannotConnectException, CannotCreateResultSetException, ServerBloxException
DataBloxCannotConnectException
- When the DataBlox failed to connect to datasource.
CannotCreateResultSetException
- When a result set cannot be found after connecting
to the datasource, usually because a query hasn't been specified.
ServerBloxException
public AASCubeXMLDocument getXMLResultSet() throws CannotCreateXMLResultSetException, ServerBloxException
ServerBloxException
- When unable to properly initialize the DataPeer.
CannotCreateXMLResultSetException
- When unable to build the XML DOM.public void drillDown(TupleMember member) throws DataBloxBadConnectionException, ServerBloxException
member
- The member to drill down on. This member cannot be null.
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void drillToAllDescendants(TupleMember member) throws DataBloxBadConnectionException, ServerBloxException
member
- The member to drill down on. This member cannot be null.
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void drillUp(TupleMember member) throws DataBloxBadConnectionException, ServerBloxException
member
- The member to drill up on. This member cannot be null.
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void pivot(AxisDimension dimension, int newAxisIndex, int newNestLevel) throws ServerBloxException, DataBloxBadConnectionException
dimension
- The dimension that is being pivotednewAxisIndex
- The index of the axis the dimension is to be moved to.newNestLevel
- The nesting level within the new axis the dimension is to be moved to.
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void pivot(int oldAxisIndex, int oldNestLevel, int newAxisIndex, int newNestLevel) throws DataBloxBadConnectionException, ServerBloxException
oldAxisIndex
- The index of the axis the dimension is to be moved from.oldNestLevel
- The nesting level within the axis the dimension is to be moved from.newAxisIndex
- The index of the axis the dimension is to be moved to.newNestLevel
- The nesting level within the new axis the dimension is to be moved to.
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void keepOnly(TupleMember member) throws DataBloxBadConnectionException, ServerBloxException
member
- The only member to keep. This member cannot be null.
DataBloxBadConnectionException
- When the connection has gone bad.
ServerBloxException
- When an error occurs.public void keepOnly(TupleMember[] members) throws DataBloxBadConnectionException, ServerBloxException
members
- Array specifying the members to keep. If the array is null, this call
is ignored.
DataBloxBadConnectionException
- When the connection has gone bad.
ServerBloxException
- When an error occurs.public void removeOnly(TupleMember member) throws DataBloxBadConnectionException, ServerBloxException
member
- The member to remove. This member cannot be null.
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void removeOnly(TupleMember[] members) throws DataBloxBadConnectionException, ServerBloxException
members
- An array of members to remove. If the array is null, this call is ignored.
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void setRowSort(Tuple tuple, AxisDimension dimension, boolean ascending) throws ServerBloxException
tuple
- The tuple on the row axis that specifies the row on which to sort.dimension
- Specifies the dimension on the column axis for which grouping
is preserved. The parameter can be null, which indicates that no grouping is to be preserved
on the column axis.ascending
- Specifies the sort order. If True, the sort will be ascending,
otherwise descending.
ServerBloxException
- When a runtime error occurs.public void setRowSort(Tuple tuple, AxisDimension dimension, boolean ascending, boolean preserveHierarchy) throws ServerBloxException
tuple
- The tuple on the row axis that specifies the row on which to sort.dimension
- Specifies the dimension on the column axis for which grouping
is preserved. The parameter can be null, which indicates that no grouping is to be preserved
on the column axis.ascending
- Specifies the sort order. If True, the sort will be ascending,
otherwise descending.preserveHierarchy
- specifies whether or not the hierarchy will be preserved. True if it is to
be preserved, otherwise false.
ServerBloxException
- When a runtime error occurs.public void setRowSort(Tuple tuple, AxisDimension dimension, boolean ascending, boolean preserveHierarchy, TupleMember[] headerMembers, TupleMember[] footerMembers) throws ServerBloxException
tuple
- The tuple on the row axis that specifies the row on which to sort.dimension
- Specifies the dimension on the column axis for which grouping
is preserved. The parameter can be null, which indicates that no grouping is to be preserved
on the column axis.ascending
- Specifies the sort order. If True, the sort will be ascending,
otherwise descending.preserveHierarchy
- specifies whether or not the hierarchy will be preserved. True if it is to
be preserved, otherwise false.
ServerBloxException
- When a runtime error occurs.public void setColumnSort(Tuple tuple, AxisDimension dimension, boolean ascending) throws ServerBloxException
tuple
- The tuple on the column axis that specifies the column on which to sort.dimension
- Specifies the dimension on the row axis for which grouping
is preserved. The parameter can be null, which indicates that no grouping is to be preserved
on the row axis.ascending
- Specifies the sort order. If True, the sort will be ascending,
otherwise descending.
ServerBloxException
- When a runtime error occurs.public void setColumnSort(Tuple tuple, AxisDimension dimension, boolean ascending, boolean preserveHierarchy) throws ServerBloxException
tuple
- The tuple on the column axis that specifies the column on which to sort.dimension
- Specifies the dimension on the row axis for which grouping
is preserved. The parameter can be null, which indicates that no grouping is to be preserved
on the row axis.ascending
- Specifies the sort order. If True, the sort will be ascending,
otherwise descending.preserveHierarchy
- specifies whether or not the hierarchy will be preserved. True if it is to
be preserved, otherwise false.
ServerBloxException
- When a runtime error occurs.public void setColumnSort(Tuple tuple, AxisDimension dimension, boolean ascending, boolean preserveHierarchy, TupleMember[] headerMbrs, TupleMember[] footerMbrs) throws ServerBloxException
tuple
- The tuple on the column axis that specifies the column on which to sort.dimension
- Specifies the dimension on the row axis for which grouping
is preserved. The parameter can be null, which indicates that no grouping is to be preserved
on the row axis.ascending
- Specifies the sort order. If True, the sort will be ascending,
otherwise descending.preserveHierarchy
- specifies whether or not the hierarchy will be preserved. True if it is to
be preserved, otherwise false.
ServerBloxException
- When a runtime error occurs.public void setColumnSort(ResultColumn column, boolean ascending) throws ServerBloxException
column
- a column in this DataBlox's relational result set.ascending
- specifies the sort order. If true
, the sort will be ascending,
otherwise descending.
ServerBloxException
- When a runtime error occurs.public void removeRowSort() throws DataBloxBadConnectionException, ServerBloxException
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void removeColumnSort() throws DataBloxBadConnectionException, ServerBloxException
DataBloxBadConnectionException
- When connection to the database has gone bad.
ServerBloxException
- When an error was encountered.public void setSelectedMembers(Member[] members) throws ServerBloxException
members
- The selected members to set. Members must belong to the same dimension.
ServerBloxException
- When a runtime error occurs.Member
,
MDBMetaData.resolveMember(java.lang.String)
public void addSelectedMembers(Member[] members) throws ServerBloxException
members
- An array containing the selected members to set.
All the members must belong to the same dimension.
ServerBloxException
- When an invalid member is encountered.Member
,
MDBMetaData.resolveMember(java.lang.String)
public Member[] getSelectedMembers(Dimension dimension) throws ServerBloxException
dimension
- the given dimension.
ServerBloxException
Dimension
,
Member
,
MDBMetaData.resolveDimension(java.lang.String)
,
MDBMetaData.resolveMember(java.lang.String)
public Member getHiddenMembers(MDBMetaData mdbMetaData, int i, java.lang.String cubeName) throws ServerBloxException, java.lang.ArrayIndexOutOfBoundsException
mdbMetaData
- The multidimensional metadata from which the members should be retrieved.
If this parameter is null, the members are generated from a new metadata
object.i
- the index of desired hidden member.cubeName
- the name of the cube from which the members should be retrieved.
In Essbase, the cube name is Cube 1.
ServerBloxException
- When unable to connect to the database or when the metadata
is corrupted.
java.lang.ArrayIndexOutOfBoundsException
- When the index is negative, or greater than or
equal to the total number of hidden members.public Member[] getHiddenMembers(MDBMetaData mdbMetaData, java.lang.String cubeName) throws ServerBloxException
mdbMetaData
- The multidimensional metadata from which the members should be retrieved.cubeName
- the name of the cube from which the members should be retrieved.
ServerBloxException
public void setHiddenMembers(Member[] members) throws ServerBloxException
members
- an array containing the members to hide. This array cannot be null.
ServerBloxException
- When an error occurred while trying to set hidden members.public void showMembers(Member[] members) throws ServerBloxException
members
- an array of members to show. This array cannot be null.
ServerBloxException
- When an error occurred while trying to show members.public void hideMembers(java.lang.String membersToHide) throws ServerBloxException
membersToHide
- A comma delimited string specifying the members to hide.
The members are grouped by dimension.
Each group of members is proceeded by the name of the dimension followed by a colon.
Separate each group with a semicolon.
For example, DimensionName1:MemberNameA,MemberNameB; DimensionName2:MemberNameC,MemberNameD;
ServerBloxException
- When an error occurred while trying to hide members.public void hideMembers(Member[] members) throws ServerBloxException
members
- An array containing the members to hide.
ServerBloxException
- When an error occurred while trying to hide memberspublic Column getHiddenMembers(RDBMetaData rdbMetaData, int i) throws ServerBloxException, java.lang.ArrayIndexOutOfBoundsException
rdbMetaData
- The relational metadata from which the members should be retrieved.
If this parameter is null, then the members are generated from a new metadata object.i
- The index of the hidden member.
ServerBloxException
- When unable to connect to the database or when the metadata
is corrupted.
java.lang.ArrayIndexOutOfBoundsException
- When the index is negative, or greater than or
equal to the total number of hidden members.public Column[] getHiddenMembers(RDBMetaData rdbMetaData) throws ServerBloxException
rdbMetaData
- The relational metadata from which the members should be retrieved.
If this parameter is null, then the members are generated from a new metadata object.
ServerBloxException
- When unable to connect to the database or when the metadata
is corrupted.public void setHiddenMembers(Column[] columns) throws ServerBloxException
columns
- Array of members to hide. This array cannot be null.
ServerBloxException
- When an error occurred while trying to set hidden members.public void showMembers(java.lang.String membersToShow) throws ServerBloxException
membersToShow
- A comma delimited string specifying the members to show.
The members are grouped by dimension.
Each group of members is proceeded by the name of the dimension followed by a colon.
Separate each group with a semicolon.
For example, DimensionName1:MemberNameA,MemberNameB; DimensionName2:MemberNameC,MemberNameD;
ServerBloxException
- When an error occurred while trying to show memberspublic void showMembers(Column[] columns) throws ServerBloxException
columns
- An array specifying the members to show. The array cannot be null.
ServerBloxException
- When an error occurred while trying to show memberspublic void hideMembers(Column[] columns) throws ServerBloxException
columns
- An array containing the members to hide.
ServerBloxException
- When an error occurred while trying to hide members.public void setHiddenTuples(java.lang.String selectedTuples) throws ServerBloxException
selectedTuples
- - The hidden tuple list is in the form of the following example:
{Year,Product:Qtr3,Audio;Qtr4,Visual}, {Accounts, Market:Profit,East}If there is only one group of hidden tuples, the curly braces are optional. Each tuple list contains the dimension names separated by commas, followed by a colon, followed by the list of tuples. Each member of the tuple is separated by a comma and each tuple is separated by a semi-colon.
ServerBloxException
public void showTuples(java.lang.String selectedTuples) throws ServerBloxException
selectedTuples
- - The hidden tuple list is in the form of the following example:
{Year,Product:Qtr3,Audio;Qtr4,Visual}, {Accounts, Market:Profit,East}If there is only one group of hidden tuples, the curly braces are optional. Each tuple list contains the dimension names separated by commas, followed by a colon, followed by the list of tuples. Each member of the tuple is separated by a comma and each tuple is separated by a semi-colon
ServerBloxException
public void showOnlyTuples(java.lang.String selectedTuples) throws ServerBloxException
selectedTuples
- - The hidden tuple list is in the form of the following example
{Year,Product:Qtr3,Audio;Qtr4,Visual}, {Accounts, Market:Profit,East}If there is only one group of hidden tuples, the curly braces are optional. Each tuple list contains the dimension names separated by commas, followed by a colon, followed by the list of tuples. Each member of the tuple is separated by a comma and each tuple is separated by a semi-colon.
ServerBloxException
public void showOnlyTuples(Tuple[] tuples) throws ServerBloxException
tuples
- - The list of tuples to show
ServerBloxException
public void hideTuples(java.lang.String selectedTuples) throws ServerBloxException
selectedTuples
- - The hidden tuple list is in the form of the following example:
{Year,Product:Qtr3,Audio;Qtr4,Visual}, {Accounts, Market:Profit,East}If there is only one group of hidden tuples, the curly braces are optional. Each tuple list contains the dimension names separated by commas, followed by a colon, followed by the list of tuples. Each member of the tuple is separated by a comma and each tuple is separated by a semi-colon.
ServerBloxException
public void deleteBookmark(int visibility, java.lang.String owner, java.lang.String bookmarkName) throws ServerBloxException
com.alphablox.internal.common.peer.BookmarkImpl#delete()
ServerBloxException
BookmarksBlox
,
com.alphablox.internal.common.peer.BookmarkImpl
public java.lang.String[][] listBookmarks(int visibility, java.lang.String owner) throws ServerBloxException
BookmarksBlox.listBookmarks()
,
BookmarksBlox.listBookmarks(com.alphablox.blox.repository.BookmarkMatcher)
ServerBloxException
BookmarksBlox
,
com.alphablox.internal.common.peer.BookmarkImpl
,
BookmarkMatcher
public void renameBookmark(int visibility, java.lang.String owner, java.lang.String oldBookmarkName, java.lang.String newBookmarkName, java.lang.String description) throws ServerBloxException
BookmarksBlox.getBookmark(Blox, String, String)
,
BookmarksBlox.getBookmark(String, String, String, String, String)
,
com.alphablox.internal.common.peer.BookmarkImpl#setName(String)
,
com.alphablox.internal.common.peer.BookmarkImpl#saveAll()
ServerBloxException
BookmarksBlox
,
com.alphablox.internal.common.peer.BookmarkImpl
public void restoreBookmark(int visibility, java.lang.String owner, java.lang.String bookmarkName) throws ServerBloxException
loadBookmark(int, String, String)
visibility
- The visibility level of the bookmark. The valid int values are
RepositoryBlox.VISIBILITY_GROUP, RepositoryBlox.VISIBILITY_APPLICATION, and RepositoryBlox.VISIBILITY_PRIVATEowner
- The name of the group containing the bookmark to restore.
If the specified visibility is not RepositoryBlox.VISIBILITY_GROUP, this parameter
is ignored.bookmarkName
- The name of the bookmark to restore.
ServerBloxException
- When an error occurs while trying to restore the bookmark.public void loadBookmark(int visibility, java.lang.String owner, java.lang.String bookmarkName) throws ServerBloxException
loadBookmark
in interface BookmarkableBlox
visibility
- The visibility level of the bookmark. The valid int values are
RepositoryBlox.VISIBILITY_GROUP, RepositoryBlox.VISIBILITY_APPLICATION, and RepositoryBlox.VISIBILITY_PRIVATEowner
- The name of the group containing the bookmark to restore.
If the specified visibility is not RepositoryBlox.VISIBILITY_GROUP, this parameter
is ignored.bookmarkName
- The name of the bookmark to restore.
ServerBloxException
- When an error occurs while trying to restore the bookmark.public void loadBookmark(Bookmark bookmark) throws ServerBloxException
loadBookmark
in interface BookmarkableBlox
ServerBloxException
public void saveBookmark(int visibility, java.lang.String owner, java.lang.String bookmarkName, java.lang.String description) throws ServerBloxException
saveBookmark
in interface BookmarkableBlox
visibility
- The visibility level of the bookmark. The valid int values are
RepositoryBlox.VISIBILITY_GROUP, RepositoryBlox.VISIBILITY_APPLICATION, and RepositoryBlox.VISIBILITY_PRIVATEowner
- The name of the group to which to save the bookmark.
If the specified visibility is not RepositoryBlox.VISIBILITY_GROUP, this parameter
is ignored.bookmarkName
- The name for the bookmark.description
- The description for the bookmark.
ServerBloxException
- When an error occurs while trying to save the bookmark.BookmarksBlox
public void saveBookmarkHidden(int visibility, java.lang.String owner, java.lang.String bookmarkName, java.lang.String description) throws ServerBloxException
ServerBloxException
public void addDrillThroughFilter(DrillThroughFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeDrillThroughFilter(DrillThroughFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addDrillDownFilter(DrillDownFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeDrillDownFilter(DrillDownFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addDrillUpFilter(DrillUpFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeDrillUpFilter(DrillUpFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addPivotFilter(PivotFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removePivotFilter(PivotFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addKeepOnlyFilter(KeepOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeKeepOnlyFilter(KeepOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addRemoveOnlyFilter(RemoveOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeRemoveOnlyFilter(RemoveOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addHideOnlyFilter(HideOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeHideOnlyFilter(HideOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addShowOnlyFilter(ShowOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeShowOnlyFilter(ShowOnlyFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addShowAllFilter(ShowAllFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeShowAllFilter(ShowAllFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addCollapseFilter(CollapseFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeCollapseFilter(CollapseFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addExpandFilter(ExpandFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeExpandFilter(ExpandFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addMemberSelectFilter(MemberSelectFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeMemberSelectFilter(MemberSelectFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addSwapAxisFilter(SwapAxisFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeSwapAxisFilter(SwapAxisFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addQueryFilter(QueryFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void removeQueryFilter(QueryFilter filter) throws ServerBloxException
filter
-
ServerBloxException
public void addEventFilter(DataFilter dataFilter) throws ServerBloxException
dataFilter
-
ServerBloxException
public void removeEventFilter(DataFilter dataFilter) throws ServerBloxException
dataFilter
-
ServerBloxException
public void setQueryPassthrough(IResultSetHandler passThroughHandler) throws ServerBloxException
passThroughHandler
-
ServerBloxException
public IResultSetHandler getQueryPassthrough() throws ServerBloxException
ServerBloxException
public void loadRDBResultSet(java.sql.ResultSet storeProcedureResultSet) throws ServerBloxException, DataException
ServerBloxException
DataException
public void setCommentsBlox(CommentsBlox commentsBlox) throws ServerBloxException
ServerBloxException
public CommentsBlox getCommentsBlox()
public Calculation[] getCalculations() throws ServerBloxException
ServerBloxException
public void addDataChangedEventListener(DataChangedEventListener listener)
public void freeConnection() throws ServerBloxException, BadConnectionException
ServerBloxException
BadConnectionException
public void removeDataChangedEventListener(DataChangedEventListener listener)
public java.lang.Object getASCSConnection()
public java.lang.Object getExternalMDConnection()
public void updateResultSet() throws ServerBloxException, DataException
ServerBloxException
DataException
public void setMDXForDimensions(java.util.HashMap map) throws ServerBloxException
map
- Collection of MDX set statements for specific dimensions.
ServerBloxException
public java.util.HashMap getMDXForDimensions() throws ServerBloxException
ServerBloxException
|
IBM Alphablox V9.5.1 Blox API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |