|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlobalFormula
PROC OLAP and OLAP CUBE Studio enable users to define formulas for the dimensions of a cube that result in the creation of calculated members and named sets. In SAS 9.2, the GlobalFormula metadata type was used to store the formula that created the calculated member or named set. In SAS 9.3, it was decided that this modeling was not sufficient to enable the object to refer back to the dimension, hierarchy, or level to which the calculated member or named set belongs. Therefore, the GlobalFormula metadata type was changed to an abstract type, and the CalculatedMember and NamedSet metadata types were introduced. The new metadata types are used in cubes that have a UsageVersion of 5.0 or higher. The CONVERT option of PROC OLAP can be used to change a 4.0 cube to a 5.0 cube. A 4.0 cube is also converted to a 5.0 cube by OLAP CUBE Studio when a shared dimension is added to the 4.0 cube. For more information, see CalculatedMember and NamedSet.
Attributes of GlobalFormula are:
Associations of GlobalFormula are:
factory
create methods. // create a store to contain your objects for this change. If you do not have an existing object // or store to use. You may obtain the store from another object by using Object.getObjectStore(). MdFactory factory; //where "factory" is a valid MdFactory instance MdObjectStore objectStore = factory.createObjectStore(); GlobalFormula myObject = (GlobalFormula) factory.createComplexMetadataObject(objectStore, "GlobalFormula_Object", MetadataObjects.GLOBALFORMULA, "AAAAAAAA"); myObject.updateMetadataAll(); // Write object to server objectStore.dispose(); // dispose of the object store if it is no longer needed
MdOMIUtil
.
updateMetadataAll
method.
delete
method can be used.
This will flag the object as being deleted on the client, and will require an update call to persist
the change to the server.
Field Summary | |
---|---|
static java.lang.String |
ASSOCIATION_ASSOCIATEDCUBE_NAME
Constant used for the name of the AssociatedCube association. |
static java.lang.String |
ATTRIBUTE_EXPRESSION_NAME
Constant used for the name of the Expression attribute. |
static java.lang.String |
ATTRIBUTE_GLOBALFORMULAROLE_NAME
Constant used for the name of the GlobalFormulaRole attribute. |
static java.lang.String |
ATTRIBUTE_UNIQUENAME_NAME
Constant used for the name of the UniqueName attribute. |
Fields inherited from interface com.sas.metadata.remote.Feature |
---|
ASSOCIATION_SOURCEFEATUREMAPS_NAME, ASSOCIATION_TARGETFEATUREMAPS_NAME |
Fields inherited from interface com.sas.metadata.remote.PrimaryType |
---|
ASSOCIATION_FAVORITESCONTAINERS_NAME, ATTRIBUTE_ISHIDDEN_NAME, ATTRIBUTE_PUBLICTYPE_NAME |
Fields inherited from interface com.sas.metadata.remote.MdObjectBase |
---|
ATTRIBUTE_DESC_NAME, ATTRIBUTE_ID_NAME, ATTRIBUTE_METADATACREATED_NAME, ATTRIBUTE_METADATAUPDATED_NAME, ATTRIBUTE_NAME_NAME |
Method Summary | |
---|---|
Cube |
getAssociatedCube()
Gets the Cube for AssociatedCube |
AssociationList |
getAssociatedCubes()
Gets the AssociationList of AssociatedCubes |
AssociationList |
getAssociatedCubes(boolean fGoToServer)
Gets the Associationlist of AssociatedCubes |
java.lang.String |
getExpression()
Gets the String value of Expression |
int |
getExpressionMaxLength()
Gets the maximum length of Expression |
int |
getExpressionState()
Gets the Metadata State of Expression |
java.lang.String |
getGlobalFormulaRole()
Gets the String value of GlobalFormulaRole |
int |
getGlobalFormulaRoleMaxLength()
Gets the maximum length of GlobalFormulaRole |
int |
getGlobalFormulaRoleState()
Gets the Metadata State of GlobalFormulaRole |
java.lang.String |
getUniqueName()
Gets the String value of UniqueName |
int |
getUniqueNameMaxLength()
Gets the maximum length of UniqueName |
int |
getUniqueNameState()
Gets the Metadata State of UniqueName |
void |
initializePredObjects()
(S) Adds the Associated objects to the predObjects which are: AssociatedCube |
void |
initializeRequiredObjects()
(S) This initializes the Required Objects(Roles) which are: |
void |
setAssociatedCube(Cube inObject)
Sets the AssociatedCubes list 0th element to be inObject . |
void |
setAssociatedCubes(AssociationList list)
Sets the AssociatedCubes list to be list . |
void |
setAssociatedCubes(AssociationList list,
int state)
Sets the AssociatedCubes list to be list . |
void |
setExpression(java.lang.String inExpression)
Sets the Expression value and sets the state to MetadataState.LOCAL. |
void |
setExpression(java.lang.String inExpression,
int state)
Sets the Expression Metadata State. |
void |
setExpressionState(int state)
Sets the Metadata State of Expression . |
void |
setGlobalFormulaRole(java.lang.String inGlobalFormulaRole)
Sets the GlobalFormulaRole value and sets the state to MetadataState.LOCAL. |
void |
setGlobalFormulaRole(java.lang.String inGlobalFormulaRole,
int state)
Sets the GlobalFormulaRole Metadata State. |
void |
setGlobalFormulaRoleState(int state)
Sets the Metadata State of GlobalFormulaRole . |
void |
setUniqueName(java.lang.String inUniqueName)
Sets the UniqueName value and sets the state to MetadataState.LOCAL. |
void |
setUniqueName(java.lang.String inUniqueName,
int state)
Sets the UniqueName Metadata State. |
void |
setUniqueNameState(int state)
Sets the Metadata State of UniqueName . |
Methods inherited from interface com.sas.metadata.remote.Feature |
---|
getSourceFeatureMaps, getSourceFeatureMaps, getTargetFeatureMaps, getTargetFeatureMaps, setSourceFeatureMaps, setSourceFeatureMaps, setTargetFeatureMaps, setTargetFeatureMaps |
Methods inherited from interface com.sas.metadata.remote.PrimaryType |
---|
getFavoritesContainers, getFavoritesContainers, getIsHidden, getIsHiddenState, getPublicType, getPublicTypeMaxLength, getPublicTypeState, setFavoritesContainers, setFavoritesContainers, setIsHidden, setIsHidden, setIsHidden, setIsHidden, setIsHiddenState, setPublicType, setPublicType, setPublicTypeState |
Methods inherited from interface com.sas.metadata.remote.MdObjectBaseXML |
---|
closeUpdateMetadataXML, createEmptyXML, createObjectRefreshXML, createObjectXML, createObjectXML, createUpdateAssociationXML, createUpdateAssociationXML, createUpdateSimpleXML, doCreateUpdateXML, getUpdateSimpleSubstring, updateMetadataAll |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_UNIQUENAME_NAME
UniqueName: The fully qualified unique name for the global formula.
static final java.lang.String ATTRIBUTE_EXPRESSION_NAME
Expression: The formula.
static final java.lang.String ATTRIBUTE_GLOBALFORMULAROLE_NAME
GlobalFormulaRole: Valid values are CalculatedMember or NamedSet.
static final java.lang.String ASSOCIATION_ASSOCIATEDCUBE_NAME
AssociatedCube: The list of cubes that contains this global formula.
Method Detail |
---|
void initializeRequiredObjects() throws java.rmi.RemoteException
initializeRequiredObjects
in interface Feature
initializeRequiredObjects
in interface MdObjectBaseUtil
initializeRequiredObjects
in interface PrimaryType
initializeRequiredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.void initializePredObjects() throws java.rmi.RemoteException
AssociatedCube
initializePredObjects
in interface Feature
initializePredObjects
in interface MdObjectBase
initializePredObjects
in interface PrimaryType
initializePredObjects
in interface Root
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getUniqueName() throws java.rmi.RemoteException
String
value of UniqueName
UniqueName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getUniqueNameState() throws java.rmi.RemoteException
UniqueName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getUniqueNameMaxLength() throws java.rmi.RemoteException
UniqueName
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getExpression() throws java.rmi.RemoteException
String
value of Expression
Expression
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getExpressionState() throws java.rmi.RemoteException
Expression
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getExpressionMaxLength() throws java.rmi.RemoteException
Expression
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.java.lang.String getGlobalFormulaRole() throws java.rmi.RemoteException
String
value of GlobalFormulaRole
GlobalFormulaRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getGlobalFormulaRoleState() throws java.rmi.RemoteException
GlobalFormulaRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.int getGlobalFormulaRoleMaxLength() throws java.rmi.RemoteException
GlobalFormulaRole
java.rmi.RemoteException
- If error connecting/communicating to/with remote object.AssociationList getAssociatedCubes() throws java.rmi.RemoteException, MdException
AssociatedCubes
AssociatedCubes
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
Cube getAssociatedCube() throws java.rmi.RemoteException, MdException
Cube
for AssociatedCube
Cube
( null
if not set) of AssociatedCube
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.AssociationList getAssociatedCubes(boolean fGoToServer) throws java.rmi.RemoteException, MdException
AssociatedCubes
fGoToServer
- boolean Get the value from the server.
AssociatedCubes
which can be of type: java.rmi.RemoteException
- If error connecting/communicating to/with remote object.
MdException
- If error getting/setting part of the object.void setUniqueName(java.lang.String inUniqueName) throws java.rmi.RemoteException
UniqueName
value and sets the state to MetadataState.LOCAL.
inUniqueName
- String
java.rmi.RemoteException
- If error communicating with remote object.void setUniqueName(java.lang.String inUniqueName, int state) throws java.rmi.RemoteException
UniqueName
Metadata State.
inUniqueName
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setUniqueNameState(int state) throws java.rmi.RemoteException
UniqueName
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setExpression(java.lang.String inExpression) throws java.rmi.RemoteException
Expression
value and sets the state to MetadataState.LOCAL.
inExpression
- String
java.rmi.RemoteException
- If error communicating with remote object.void setExpression(java.lang.String inExpression, int state) throws java.rmi.RemoteException
Expression
Metadata State.
inExpression
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setExpressionState(int state) throws java.rmi.RemoteException
Expression
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setGlobalFormulaRole(java.lang.String inGlobalFormulaRole) throws java.rmi.RemoteException
GlobalFormulaRole
value and sets the state to MetadataState.LOCAL.
inGlobalFormulaRole
- String
java.rmi.RemoteException
- If error communicating with remote object.void setGlobalFormulaRole(java.lang.String inGlobalFormulaRole, int state) throws java.rmi.RemoteException
GlobalFormulaRole
Metadata State.
inGlobalFormulaRole
- Stringstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setGlobalFormulaRoleState(int state) throws java.rmi.RemoteException
GlobalFormulaRole
.
state
- int
java.rmi.RemoteException
- If error communicating with remote object.void setAssociatedCubes(AssociationList list) throws java.rmi.RemoteException
AssociatedCubes
list to be list
. Object of which can be of type:
list
- AssociationList
java.rmi.RemoteException
- If error communicating with remote object.void setAssociatedCubes(AssociationList list, int state) throws java.rmi.RemoteException
AssociatedCubes
list to be list
. Object of which can be of type:
list
- AssociationListstate
- int
java.rmi.RemoteException
- If error communicating with remote object.void setAssociatedCube(Cube inObject) throws java.rmi.RemoteException
AssociatedCubes
list 0th element to be inObject
.
inObject
- Cube
java.rmi.RemoteException
- If error communicating with remote object.
|
Metadata |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |