com.crystaldecisions.sdk.plugin.desktop.objectpackage
Interface IObjectPackageBase

All Known Subinterfaces:
IObjectPackage

public interface IObjectPackageBase

This interfaces represents a top-level container that provides access to the individual SAP BusinessObjects Enterprise components stored within the object package.


Field Summary
static java.lang.String KIND
           The Kind used to query for ObjectPackage objects.
static java.lang.String PROGID
          The ProgID for the ObjectPackage Class.
 
Method Summary
 java.util.List getPackageComponents()
           Returns a collection that represents the objects contained in this object package.
 

Field Detail

KIND

static final java.lang.String KIND

The Kind used to query for ObjectPackage objects.

See Also:
Constant Field Values

PROGID

static final java.lang.String PROGID

The ProgID for the ObjectPackage Class.

ProgIDCrystalEnterprise.ObjectPackage
Query CategoryCI_INFOOBJECTS
Associated Interfacecom.crystaldecisions.sdk.plugin.desktop.objectpackage.IObjectPackage

Query syntax:

SELECT
SI_PACKAGE_COMPONENTS
FROM
CI_INFOOBJECTS
WHERE
SI_PROGID='CrystalEnterprise.ObjectPackage'

The CePropertyID named in the SELECT statement is required to access data through the IObjectPackage interface. For more information, see objectpackage.

See Also:
Constant Field Values
Method Detail

getPackageComponents

java.util.List getPackageComponents()
                                    throws SDKException

Returns a collection that represents the objects contained in this object package.

If the individual members of a package need to have their plugin or infoObject properties updated, both the enclosing ObjectPackage object and its components need to be retrieved using one query. The most effective way to accomplish this is by retrieving the ObjectPackage object's CUID and then use the following query:

 set objInfoObject = infoStore.Query("Select * From CI_INFOOBJECTS Where SI_PARENT_CUID ='objPackCUID & ' or SI_CUID= ' & objPackCUID & ' and SI_INSTANCE=0 Order By SI_COMPONENT")

This query will retrieve both the ObjectPackage object and its components with the ObjectPackage object being Item(1) in the collection. Furthermore, because the Order By clause sorts on the Boolean SI_COMPONENT property, all the objects will be true except the object package itself. Individual items in this collection can then be cast into their respective plugin interfaces and have logon information or parameter information updated prior to scheduling the entire collection.

Returns:
A List of IPackageComponent objects.
Throws:
SDKException - This is thrown if the process is unsuccessful.
InfoObject properties to query for:
SI_PACKAGE_COMPONENTS