|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.compatibility.base.marshalling.CachingMarshaller
org.openmdx.base.accessor.jmi.cci.RefObjectFactory_1
public class RefObjectFactory_1
ObjectFactory facade delegating to a JmiAccessor_1.
| Field Summary |
|---|
| Fields inherited from class org.openmdx.compatibility.base.marshalling.CachingMarshaller |
|---|
mapping |
| Constructor Summary | |
|---|---|
RefObjectFactory_1(RefRootPackage_1 refRootPackage)
|
|
RefObjectFactory_1(RefRootPackage_1 refRootPackage,
Set directAccessPaths)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the object factory. |
Object |
createMarshalledObject(Object source)
Marshals an object to be cached. |
Object_1_0 |
createObject(String objectClass)
Create an object |
Object_1_0 |
createObject(String objectClass,
Object_1_0 base)
Creates a new object with the initial values. |
Structure_1_0 |
createStructure(String type,
List fieldNames,
List fieldValues)
Create an object |
Object_1_0 |
getObject(Object accessPath)
Get an object from the object factory. |
UnitOfWork_1_0 |
getUnitOfWork()
Return the unit of work associated with the current object factory. |
Object |
unmarshal(Object source)
Unmarshals an object |
| Methods inherited from class org.openmdx.compatibility.base.marshalling.CachingMarshaller |
|---|
cache, clear, evict, marshal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openmdx.compatibility.base.marshalling.Marshaller |
|---|
marshal |
| Constructor Detail |
|---|
public RefObjectFactory_1(RefRootPackage_1 refRootPackage,
Set directAccessPaths)
public RefObjectFactory_1(RefRootPackage_1 refRootPackage)
| Method Detail |
|---|
public Object createMarshalledObject(Object source)
throws ServiceException
CachingMarshaller
createMarshalledObject in class CachingMarshallersource - The object to be marshalled
ServiceException - MARSHAL_FAILURE
Object can't be marshalledpublic Object unmarshal(Object source)
CachingMarshaller
unmarshal in interface Marshallerunmarshal in class CachingMarshallersource - The marshalled object
public void close()
throws ServiceException
ObjectFactory_1_0
After the close method completes, all methods on the
ObjectFactory_1_0 instance except isClosed()
throw an ILLEGAL_STATE ServiceException.
close in interface ObjectFactory_1_0ServiceException
public Object_1_0 getObject(Object accessPath)
throws ServiceException
ObjectFactory_1_0If an object with the given acess path is already in the cache it is returned, otherwise a new object is returned.
getObject in interface ObjectFactory_1_0accessPath - Access path of object to be retrieved.
ServiceException - ILLEGAL_STATE
if the object factory is closed
public UnitOfWork_1_0 getUnitOfWork()
throws ServiceException
ObjectFactory_1_0
getUnitOfWork in interface ObjectFactory_1_0ServiceException - ILLEGAL_STATE
if the object factory is closed
public Object_1_0 createObject(String objectClass)
throws ServiceException
ObjectFactory_1_0
createObject in interface ObjectFactory_1_0objectClass - The model class of the object to be created
ServiceException - ILLEGAL_STATE
if the object factory is closed
public Object_1_0 createObject(String objectClass,
Object_1_0 base)
throws ServiceException
ObjectFactory_1_0
createObject in interface ObjectFactory_1_0ServiceException
public Structure_1_0 createStructure(String type,
List fieldNames,
List fieldValues)
throws ServiceException
ObjectFactory_1_0
createStructure in interface ObjectFactory_1_0type - The type of the structure to be createdfieldNames - The names of the structure's fieldsfieldValues - The structure's field values
ServiceException - ILLEGAL_STATE
if the object factory is closed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||