|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.accessor.jmi.spi.RefPackage_1
public abstract class RefPackage_1
Implementation of RefPackage_1_0.
This implementation supports leightweight serialization. It contains only members to the immediate and outermost package. Other members are static.
| Field Summary | |
|---|---|
protected Map |
classes
Map containing |
protected Map |
filterConstructors
|
protected Map |
structConstructors
|
| Constructor Summary | |
|---|---|
RefPackage_1(RefPackage outermostPackage,
RefPackage immediatePackage)
|
|
| Method Summary | |
|---|---|
Collection |
refAllAssociations()
This implementation does not support association classes. |
Collection |
refAllClasses()
|
Collection |
refAllPackages()
|
RefAssociation |
refAssociation(RefObject association)
This implementation does not support association classes. |
RefAssociation |
refAssociation(String associationName)
This implementation does not support association classes. |
void |
refBegin()
Same as |
RefClass |
refClass(RefObject type)
|
RefClass |
refClass(String qualifiedClassName)
|
void |
refCommit()
Same as |
RefFilter_1_0 |
refCreateFilter(String filterClassName,
FilterProperty[] filterProperties,
AttributeSpecifier[] attributeSpecifiers)
|
RefFilter_1_0 |
refCreateFilter(String filterClassName,
FilterProperty[] filterProperties,
AttributeSpecifier[] attributeSpecifiers,
RefFilter_1_0 delegateFilter,
Short delegateQuantor,
String delegateName)
Create a filter |
RefStruct |
refCreateStruct(RefObject structType,
List args)
|
RefStruct |
refCreateStruct(String structName,
List args)
|
RefStruct |
refCreateStruct(String structName,
Object arg)
arg must be instanceof Structure_1_0. |
void |
refDelete()
|
RefEnum |
refGetEnum(RefObject enumType,
String literalName)
This implementation does not supporte enums. |
RefEnum |
refGetEnum(String enumName,
String literalName)
This implementation does not supporte enums. |
RefPackage |
refImmediatePackage()
|
RefObject |
refMetaObject()
|
Model_1_0 |
refModel()
Returns model defined for this package. |
RefObject |
refObject(RefObject primary,
RefObject secondary)
Returns a proxy implementing the same interfaces as the secondary RefObject and delegating to
the primary |
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. |
RefPackage |
refOutermostPackage()
|
RefPackage |
refPackage(RefObject nestedPackage)
|
RefPackage |
refPackage(String nestedPackageName)
|
PersistenceManager |
refPersistenceManager()
Retrieves the JDO Persistence Manager delegating to this package. |
void |
refRollback()
Same as |
UnitOfWork_1_0 |
refUnitOfWork()
Return the current unit of work. |
Collection |
refVerifyConstraints(boolean deepVerify)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jmi.reflect.RefBaseObject |
|---|
equals, hashCode, refMofId |
| Field Detail |
|---|
protected transient Map classes
protected transient Map structConstructors
protected transient Map filterConstructors
| Constructor Detail |
|---|
public RefPackage_1(RefPackage outermostPackage,
RefPackage immediatePackage)
| Method Detail |
|---|
public PersistenceManager refPersistenceManager()
refPersistenceManager in interface RefPackage_1_1
public RefObject refObject(RefObject primary,
RefObject secondary)
RefObject and delegating to
- the primary
RefObject if possible
- the secondary
RefObject as fallback
- Specified by:
refObject in interface RefPackage_1_1
- Parameters:
primary - its methods override the secondary object's methodssecondary - its interfacse are implemented by the proxy object as well
- Returns:
- a proxy object delgating to the primary or secondary object as appropriate
public ObjectFactory_1_0 refObjectFactory()
RefPackage_1_0
refObjectFactory in interface RefPackage_1_0public Model_1_0 refModel()
RefPackage_1_0
refModel in interface RefPackage_1_0public RefObject refObject(String refMofId)
RefPackage_1_0
Object_1_0 object = refPackage.refObjectFactory().getObject(
new Path(identity)
);
RefObject refObject = (RefRootPackage_1)refPackage.refOutermostPackage()).marshal(object);
refObject in interface RefPackage_1_0refMofId - unique id of RefObject.
public UnitOfWork_1_0 refUnitOfWork()
RefPackage_1_0
refUnitOfWork in interface RefPackage_1_0public void refBegin()
RefPackage_1_0
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.
refBegin in interface RefPackage_1_0public void refCommit()
RefPackage_1_0
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.
refCommit in interface RefPackage_1_0public void refRollback()
RefPackage_1_0
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.
refRollback in interface RefPackage_1_0
public RefStruct refCreateStruct(String structName,
Object arg)
refCreateStruct in interface RefPackage_1_0
public RefStruct refCreateStruct(String structName,
List args)
refCreateStruct in interface RefPackage
public RefFilter_1_0 refCreateFilter(String filterClassName,
FilterProperty[] filterProperties,
AttributeSpecifier[] attributeSpecifiers)
refCreateFilter in interface RefPackage_1_0
public RefFilter_1_0 refCreateFilter(String filterClassName,
FilterProperty[] filterProperties,
AttributeSpecifier[] attributeSpecifiers,
RefFilter_1_0 delegateFilter,
Short delegateQuantor,
String delegateName)
RefPackage_1_1
refCreateFilter in interface RefPackage_1_1public RefObject refMetaObject()
refMetaObject in interface RefBaseObjectpublic RefPackage refPackage(RefObject nestedPackage)
refPackage in interface RefPackagepublic RefPackage refPackage(String nestedPackageName)
refPackage in interface RefPackagepublic Collection refAllPackages()
refAllPackages in interface RefPackagepublic RefClass refClass(RefObject type)
refClass in interface RefPackagepublic RefClass refClass(String qualifiedClassName)
refClass in interface RefPackagepublic Collection refAllClasses()
refAllClasses in interface RefPackagepublic RefAssociation refAssociation(RefObject association)
refAssociation in interface RefPackagepublic RefAssociation refAssociation(String associationName)
refAssociation in interface RefPackagepublic Collection refAllAssociations()
refAllAssociations in interface RefPackage
public RefStruct refCreateStruct(RefObject structType,
List args)
refCreateStruct in interface RefPackage
public RefEnum refGetEnum(RefObject enumType,
String literalName)
refGetEnum in interface RefPackage
public RefEnum refGetEnum(String enumName,
String literalName)
refGetEnum in interface RefPackagepublic void refDelete()
refDelete in interface RefPackagepublic RefPackage refImmediatePackage()
refImmediatePackage in interface RefBaseObjectpublic RefPackage refOutermostPackage()
refOutermostPackage in interface RefBaseObjectpublic Collection refVerifyConstraints(boolean deepVerify)
refVerifyConstraints in interface RefBaseObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||