org.openmdx.base.accessor.jmi.cci
Interface RefPackage_1_0

All Superinterfaces:
RefBaseObject, RefPackage
All Known Subinterfaces:
audit1Package, basePackage, compatibilityPackage, datastore1Package, datastore1Package, deployment1Package, document1Package, filter1Package, generic1Package, ietfPackage, isoPackage, lock1Package, model1Package, netPackage, oasis_openPackage, omgPackage, openmdxPackage, orgPackage, preferences1Package, primitiveTypesPackage, RefPackage_1_1, RefPackage_1_2, RefPackage_1_3, rfcPackage, role1Package, runtime1Package, sequence1Package, state1Package, unPackage, view1Package, w3cPackage
All Known Implementing Classes:
audit1PackageImpl, basePackageImpl, compatibilityPackageImpl, datastore1PackageImpl, datastore1PackageImpl, deployment1PackageImpl, document1PackageImpl, filter1PackageImpl, generic1PackageImpl, ietfPackageImpl, isoPackageImpl, Jmi1PackageInvocationHandler.RefPackage_1Proxy, lock1PackageImpl, model1PackageImpl, netPackageImpl, oasis_openPackageImpl, omgPackageImpl, openmdxPackageImpl, orgPackageImpl, preferences1PackageImpl, primitiveTypesPackageImpl, RefPackage_1, RefRootPackage_1, rfcPackageImpl, role1PackageImpl, runtime1PackageImpl, sequence1PackageImpl, state1PackageImpl, unPackageImpl, view1PackageImpl, w3cPackageImpl

public interface RefPackage_1_0
extends RefPackage

This interface extends the javax.jmi.reflect.RefPackage interface by openMDX-specific helpers. This methods must not be used by 100% JMI-compliant applications.


Method Summary
 void refBegin()
          Same as
 void refCommit()
          Same as
 RefFilter_1_0 refCreateFilter(String filterForClass, FilterProperty[] filterProperties, AttributeSpecifier[] attributeSpecifiers)
           
 RefStruct refCreateStruct(String structName, Object arg)
          Creates an instance of a struct data type defined by the metaobject 'structType' (or 'structName') whose attribute values are specified by arg which must be instanceof Structure_1_0.
 Model_1_0 refModel()
          Returns model defined for this package.
 RefObject refObject(String refMofId)
          Get object with the given id.
 ObjectFactory_1_0 refObjectFactory()
          Returns the object factory from which the package creates and retrieves objects.
 void refRollback()
          Same as
 UnitOfWork_1_0 refUnitOfWork()
          Return the current unit of work.
 
Methods inherited from interface javax.jmi.reflect.RefPackage
refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refDelete, refGetEnum, refGetEnum, refPackage, refPackage
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

refModel

Model_1_0 refModel()
Returns model defined for this package.

Returns:
Model_1_0 model assigned to this package.

refObjectFactory

ObjectFactory_1_0 refObjectFactory()
Returns the object factory from which the package creates and retrieves objects.

Returns:
ObjectFactory_1_0 object factory.

refObject

RefObject refObject(String refMofId)
Get object with the given id. This operation is equivalent to
   Object_1_0 object = refPackage.refObjectFactory().getObject(
     new Path(identity)
   );
   RefObject refObject = (RefRootPackage_1)refPackage.refOutermostPackage()).marshal(object);
 

Parameters:
refMofId - unique id of RefObject.
Returns:
RefObject

refUnitOfWork

UnitOfWork_1_0 refUnitOfWork()
Return the current unit of work. Equivalent to refOutermostPackage().refUnitOfWork().


refBegin

void refBegin()
Same as
 try {
   this.refUnitOfWork.begin();
 }
 catch(ServiceException e) {
   throw new JmiServiceException(e);
 }
 
The added value of this method is to map a ServiceException to a JmiServiceException which simplifies exception handling.


refCommit

void refCommit()
Same as
 try {
   this.refUnitOfWork.commit();
 }
 catch(ServiceException e) {
   throw new JmiServiceException(e);
 }
 
The added value of this method is to map a ServiceException to a JmiServiceException which simplifies exception handling.


refRollback

void refRollback()
Same as
 try {
   this.refUnitOfWork.rollback();
 }
 catch(ServiceException e) {
   throw new JmiServiceException(e);
 }
 
The added value of this method is to map a ServiceException to a JmiServiceException which simplifies exception handling.


refCreateStruct

RefStruct refCreateStruct(String structName,
                          Object arg)
Creates an instance of a struct data type defined by the metaobject 'structType' (or 'structName') whose attribute values are specified by arg which must be instanceof Structure_1_0. The members of the arg correspond 1-to-1 to the parameters for the specific create operation.


refCreateFilter

RefFilter_1_0 refCreateFilter(String filterForClass,
                              FilterProperty[] filterProperties,
                              AttributeSpecifier[] attributeSpecifiers)


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.