public final class ModelCommand extends SimpleCommand implements ConsistentSolveCommand
SimpleCommand that represents an MdmDimensionCalculationModel in a BuildSpecification.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_OPTION
A constant that represents the default option to an OLAP DML command.
|
static java.lang.String |
PARALLEL_OPTION
A constant that represents an option that specifies parallel processing for an OLAP DML command.
|
static java.lang.String |
SERIAL_OPTION
A constant that represents an option that specifies serial processing for an OLAP DML command.
|
| Constructor and Description |
|---|
ModelCommand(MdmDimensionCalculationModel model)
Creates a
ModelCommand object for the specified MdmDimensionCalculationModel. |
ModelCommand(MdmDimensionCalculationModel model, java.lang.String option)
Creates a
ModelCommand object for the specified MdmDimensionCalculationModel. |
| Modifier and Type | Method and Description |
|---|---|
MdmDimensionCalculationModel |
getModel()
Gets the
MdmDimensionCalculationModel that is associated with this ModelCommand. |
java.lang.String |
getModelID()
Gets the ID of the
MdmDimensionCalculationModel that is associated with this ModelCommand. |
java.lang.String |
getOption()
Gets the option specified for this
ModelCommand. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the
visitModelCommand method of the SyntaxObjectVisitor and passes that method this ModelCommand and an Object. |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntaxpublic static final java.lang.String DEFAULT_OPTION
public static final java.lang.String SERIAL_OPTION
public static final java.lang.String PARALLEL_OPTION
public ModelCommand(MdmDimensionCalculationModel model, java.lang.String option)
ModelCommand object for the specified MdmDimensionCalculationModel.model - The MdmDimensionCalculationModel to include in the build specification.option - A String that contains one of the options for this class: DEFAULT_OPTION, SERIAL_OPTION, or PARALLEL_OPTION.public ModelCommand(MdmDimensionCalculationModel model)
ModelCommand object for the specified MdmDimensionCalculationModel.model - The MdmDimensionCalculationModel to include in the build specification.public MdmDimensionCalculationModel getModel()
MdmDimensionCalculationModel that is associated with this ModelCommand.MdmDimensionCalculationModel to build.public java.lang.String getModelID()
MdmDimensionCalculationModel that is associated with this ModelCommand.String that contains the ID of the MdmDimensionCalculationModel to build.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
visitModelCommand method of the SyntaxObjectVisitor and passes that method this ModelCommand and an Object.visit in class SyntaxObjectvisitor - A SyntaxObjectVisitor.context - An Object.Object returned by the visitModelCommand method.public java.lang.String getOption()
ModelCommand. The option is the value of one of the contants of this class: DEFAULT_OPTION, SERIAL_OPTION, or PARALLEL_OPTION.String that contains the option for the command of this ModelCommand.