|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dss.calculation.client.calcBuilder.CalcStepStorageHelper
This helper class allows a CalcStep to be saved and loaded using the storage capabilities of MetadataManager and Persistence.
Constructor Summary | |
CalcStepStorageHelper() Constructor that does not specify any arguments. | |
CalcStepStorageHelper(BuilderContext builderContext) Constructor that is based on BuilderContext and is useful if a BuilderContext object such as CalcBuilder already exists. | |
CalcStepStorageHelper(MetadataManager metadataManager, CalcStep calcStep) Constructor that uses a MetadataManager to save the CalcStep . |
Method Summary | |
void |
addErrorHandler(ErrorHandler errorHandler) Adds a single error handler dialog to the bean. |
CalcStep |
getCalcStep() Retrieves the CalcStep object to save. |
ErrorHandler |
getErrorHandler() Retrieve the current error handler. |
MDFolder |
getMDFolder(CalcStep calcStep) Retrieves the MDFolder object that is associated with the specified CalcStep object. |
MDMeasure |
getMDMeasure() Retrieves the saved MDMeasure object. |
MDMeasure |
getMDMeasure(MDMeasure mdMeasure, CalcStep calcStep) Retrieves the MDMeasure object that is associated with the specified CalcStep object. |
MetadataManager |
getMetadataManager() Retrieves the MetadataManager object. |
boolean |
hasPersistenceConnection(MetadataManager metadataManager) Determines whether a persistence connection has been associated with a MetadataManager object. |
boolean |
isAllowOverwrite() Determines whether calculations can be overwritten. |
void |
removeErrorHandler() Removes the error handler dialog from the bean. |
MDObject |
save() Saves the CalcStep object into Persistence and loads the object into the MetadataManager cache. |
MDMeasure |
saveMDMeasure(MDFolder mdFolder, MDMeasure mdMeasure) Saves the specified MDMeasure object. |
void |
setAllowOverwrite(boolean bAllowOverwrite) Specifies whether calculations can be overwritten. |
void |
setCalcStep(CalcStep calcStep) Specifies the CalcStep object to save. |
MDMeasure |
setMDMeasure(MDMeasure mdMeasure) Specifies the MDMeasure object to save. |
void |
setMetadataManager(MetadataManager metadataManager) Specifies the MetadataManager object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CalcStepStorageHelper()
public CalcStepStorageHelper(MetadataManager metadataManager, CalcStep calcStep)
MetadataManager
to save the CalcStep
.metadataManager
- The MetadataManager
object that is used to save the CalcStep
object.calcStep
- The CalcStep
object to save.public CalcStepStorageHelper(BuilderContext builderContext)
BuilderContext
and is useful if a BuilderContext
object such as CalcBuilder
already exists.builderContext
- A BuilderContext
object that is used to retrieve the MetadataManager
object and CalcStep
object to save.Method Detail |
public void addErrorHandler(ErrorHandler errorHandler)
addErrorHandler
in interface ErrorHandlerCallback
errorHandler
- A ErrorHandler
to add.public void removeErrorHandler()
removeErrorHandler
in interface ErrorHandlerCallback
public ErrorHandler getErrorHandler()
ErrorHandler
which represents the current error handler.public void setAllowOverwrite(boolean bAllowOverwrite)
bAllowOverwrite
- a boolean
value that is true
when a calculation can be overwritten and false
otherwise.public boolean isAllowOverwrite()
boolean
which is true
when calculations can be overwritten, false
otherwise.public MDMeasure setMDMeasure(MDMeasure mdMeasure)
MDMeasure
object to save.mdMeasure
- The MDMeasure
value to save.MDMeasure
object which was saved.public MDMeasure getMDMeasure()
MDMeasure
object.MDMeasure
object which was saved.public void setCalcStep(CalcStep calcStep)
CalcStep
object to save.calcStep
- The CalcStep
value to save.public CalcStep getCalcStep()
CalcStep
object to save.CalcStep
object to save.public void setMetadataManager(MetadataManager metadataManager)
MetadataManager
object.metadataManager
- The MetadataManager
object.public MetadataManager getMetadataManager()
MetadataManager
object.MetadataManager
object.public MDFolder getMDFolder(CalcStep calcStep) throws javax.naming.NamingException
MDFolder
object that is associated with the specified CalcStep
object.calcStep
- The CalcStep
object to retrieve a folder for.MDFolder
object that represents the folder object, or null.javax.naming.NamingException
- If the folder cannot be found or created.public MDMeasure getMDMeasure(MDMeasure mdMeasure, CalcStep calcStep) throws IllegalArgException, MetadataManagerException
MDMeasure
object that is associated with the specified CalcStep
object.mdMeasure
- The MDMeasure
object to update. If null, a new MDMeasure
object is created.calcStep
- The CalcStep
to retrieve the MDMeasure
object for.MDMeasure
object that represents the new measure object, or null
.MetadataManagerException
- If dependent objects cannot be updated.public MDMeasure saveMDMeasure(MDFolder mdFolder, MDMeasure mdMeasure) throws MetadataManagerException
MDMeasure
object. This operation updates the MetadataManager cache and persists the object.mdFolder
- The MDFolder
object where the MDMeasure
object will be saved.mdMeasure
- The MDMeasure
object to save.MetadataManagerException
- If the measure cannot be saved.public MDObject save() throws CalcBuilderException
CalcStep
object into Persistence and loads the object into the MetadataManager
cache.MDObject
that represents the newly created or modified object, or null
.CalcBuilderException
- If there are problems saving a newly created MDMeasure
object.public boolean hasPersistenceConnection(MetadataManager metadataManager) throws CalcBuilderException
MetadataManager
object.metadataManager
- The MetadataManager
object that is used to save generated calculations.true
if a persistence connection is found and false
if it is not.CalcBuilderException
- If an invalid argument is encountered.
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |