我正在从旧的VB HFM API迁移到Oracle Financial HFM框架整合的新Java API。
我在VB中有这段代码,但我不知道它的等效方式:
Public Sub Main()
Dim lValue As Long
'The Hyperion application works internally with numerical representations
'of dimension elements,e.g.,a given entity might be represented as
'"1162" in the database. The following lines get the internal values
'of the various dimension elements,to be used in collecting information
'from Hyperion. The scenario,year and period elements are assigned within
'the "do" loops that follow,because they must get values for many
'dimension elements.
lValue = GetMemberID(HFMCONSTANTSLib.tagHFMDIMENSIONS.DIMENSIONVALUE,"<Entity Currency>")
End Sub
Dim oTreeInfo As HSVMetaDATALib.IHsvTreeInfo
'Function that determines the internal Hyperion id of a dimension member.
Function GetMemberID(ByVal lDimID As Long,ByVal strMemLabel As String) As Long
Dim oMetaData As HSVMetaDATALib.HsvMetadata
oMetaData = oSession.Metadata
oTreeInfo = oMetaData.Dimension(lDimID)
GetMemberID = oTreeInfo.GetItemID(strMemLabel)
End Function
例如,我无法获得Java中的类比来获取Dimension成员。
我知道在Java中必须通过oracle.epm.fm.common.datatype.transport.SessionInfo
才能在此处输入oracle.epm.fm.domainobject.metadata.MetadataOM
对象输入代码,然后我才能获得Member,但我不知道它是如何工作的。