|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectFactory_1_0
openMDX Object Layer: Object Factory Interface.
The object factory returns the same object for a given object id as long as it is not garbage collected.
| Method Summary | |
|---|---|
void |
close()
Close the object factory. |
Object_1_0 |
createObject(String objectClass)
Create an object |
Object_1_0 |
createObject(String objectClass,
Object_1_0 initialValues)
Creates a new object with the initial values. |
Structure_1_0 |
createStructure(String type,
List<String> 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. |
| Methods inherited from interface org.openmdx.compatibility.base.marshalling.Marshaller |
|---|
marshal, unmarshal |
| Method Detail |
|---|
void close()
throws ServiceException
After the close method completes, all methods on the
ObjectFactory_1_0 instance except isClosed()
throw an ILLEGAL_STATE ServiceException.
ServiceException
UnitOfWork_1_0 getUnitOfWork()
throws ServiceException
ServiceException - ILLEGAL_STATE
if the object factory is closed
Object_1_0 getObject(Object accessPath)
throws ServiceException
If an object with the given access path is already in the cache it is returned, otherwise a new object is returned.
accessPath - Access path of object to be retrieved.
ServiceException - ILLEGAL_STATE
if the object factory is closed
Object_1_0 createObject(String objectClass)
throws ServiceException
objectClass - The model class of the object to be created
ServiceException - ILLEGAL_STATE
if the object factory is closed
Object_1_0 createObject(String objectClass,
Object_1_0 initialValues)
throws ServiceException
ServiceException
Structure_1_0 createStructure(String type,
List<String> fieldNames,
List<?> fieldValues)
throws ServiceException
type - 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 | |||||||||