|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RefPackage_1_0
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 |
|---|
Model_1_0 refModel()
ObjectFactory_1_0 refObjectFactory()
RefObject refObject(String refMofId)
Object_1_0 object = refPackage.refObjectFactory().getObject(
new Path(identity)
);
RefObject refObject = (RefRootPackage_1)refPackage.refOutermostPackage()).marshal(object);
refMofId - unique id of RefObject.
UnitOfWork_1_0 refUnitOfWork()
void refBegin()
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.
void refCommit()
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.
void refRollback()
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.
RefStruct refCreateStruct(String structName,
Object arg)
RefFilter_1_0 refCreateFilter(String filterForClass,
FilterProperty[] filterProperties,
AttributeSpecifier[] attributeSpecifiers)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||