|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SynchroManager
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
TheSynchroManager interface is used to coordinate
ReportDictionary data drawn from multiple DataProvider
objects.
The fundamental rules for synchronizing ReportExpression instances
are:
type.ReportExpression with a DIMENSION
ObjectQualification can be added to one Link only.DataProvider can have only one DIMENSION object for each
Link instance.
ReportDictionary.getSynchroManager(),
ObjectType,
ObjectQualification,
Link| Method Summary | |
|---|---|
Link |
createLink(java.lang.String name,
java.lang.String description,
ReportExpression expr1,
ReportExpression expr2)
Create a Link to synchronize two or more
ReportExpression objects from different
DataProvider objects contained in the same
DocumentInstance. |
Link |
getLink(int index)
Returns the Link object at position index. |
int |
getLinkCount()
Returns the number of ReportExpression objects linked in the
DocumentInstance object. |
void |
removeAllLinks()
Removes all Link objects in the ReportDictionary. |
void |
removeLink(int index)
Removes the Link object at position index
from the ReportDictionary. |
void |
removeLink(java.lang.String ID)
Removes the Link object with the identifier ID
from the ReportDictionary |
| Method Detail |
|---|
int getLinkCount()
ReportExpression objects linked in the
DocumentInstance object.
Link objects in the ReportDictionary.Link getLink(int index)
Link object at position index.
index - The position of the Link object to returned.
Link object at the given index.
Link createLink(java.lang.String name,
java.lang.String description,
ReportExpression expr1,
ReportExpression expr2)
Link to synchronize two or more
ReportExpression objects from different
DataProvider objects contained in the same
DocumentInstance.
The ReportExpression instances to be synchronized should
not belong to other Link object. A
ReportExpression can belong to only one Link
at at time.
Link objects are created automatically for all
ReportExpression instances defined on the same universe
object and included in a Query. For example: a
DocumentInstance is created using 2
DataProvider instances, DP1 and DP2, both instances are
based on the beach example universe. Result objects added to
Query 1 based on DP1 are "Country" and "Revenue"; Result
objects added to Query 2 based on DP2 are "Country" and
"Resort". The SynchroManager
created by running queries 1 and 2 contains a Link object
also named "Country" that has been generated automatically.
Note: By default, the
MERGE_DIMENSION
PropertiesType for a DocumentInstance is set to
true. Change the setting of this property by calling
DocumentInstance.getProperties() and
DocumentInstance.setProperties(java.util.Properties props).
name - The name of the new Link.description - A description of the new Link.expr1 - The ReportExpression from
DataProvider 1 that is to be linked with
expr2 from DataProvider 2.expr2 - The ReportExpression from
DataProvider 2 that is to be linked with
expr1 from DataProvider 1.
Link object.
java.lang.NullPointerException - When expr1 or expr2 is
null.
java.lang.IllegalArgumentException - When expr1 and expr2:
ObjectTypeObjectQualificationexpr1 or expr2 belong to
another Link object.
DSObjectSynchroException - Thrown when there already is a Link with the
given name (code: RWI 00801).
ServerException - When an invalid Link is defined in the
Link collection.void removeLink(int index)
Link object at position index
from the ReportDictionary.
index - The position of Link object to be removed.
ServerExeption.void removeLink(java.lang.String ID)
Link object with the identifier ID
from the ReportDictionary
ID - The unique identifier of the Link to be removed.
ServerExeption.void removeAllLinks()
Link objects in the ReportDictionary.
ServerExeption.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||