|
||||||||||
| 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.generic.spi.ViewConnection_1
public class ViewConnection_1
StateConnection_1
| Field Summary |
|---|
| Fields inherited from class org.openmdx.compatibility.base.marshalling.CachingMarshaller |
|---|
mapping |
| Method Summary | |
|---|---|
protected void |
assertOpen()
Asserts that the connection is open |
void |
clear()
Clears the cache |
Object_1_0 |
cloneObject(Path target,
Object_1_0 original,
boolean completelyDirty)
This method clones an object |
void |
close()
Close the object factory. |
protected 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 initialValues)
This method creates a new object with the initial values. |
Object_1_0 |
createObject(String roleClass,
String roleId,
Object_1_0 roleCapable)
This method creates a new role of a RoleCapable object. |
Structure_1_0 |
createStructure(String type,
List fieldNames,
List fieldValues)
Create an object |
void |
evict()
|
Connection_1Factory |
getConnectionFactory()
Return this connection's factory |
Object_1_0 |
getObject(Object accessPath)
Get an object from the object factory. |
Object_1_0 |
getObject(Object accessPath,
Boolean dateStateInstance,
boolean initializeCacheWithDelegate)
|
UnitOfWork_1_0 |
getUnitOfWork()
Return the unit of work associated with the current object factory. |
Boolean |
hasContainerManagedUnitOfWork()
Container managed units of work are either non transactional or part of a bigger unit of work. |
protected boolean |
isOpen()
Tells whether the connection is open of not |
Object |
unmarshal(Object source)
Unmarshals an object |
| Methods inherited from class org.openmdx.compatibility.base.marshalling.CachingMarshaller |
|---|
cache, 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 |
| Method Detail |
|---|
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 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 initialValues)
throws ServiceException
ObjectFactory_1_1This method method and its org::openmdx::compatibility::role1 model are deprecated in favour of the org::openmdx::base::RoleCapable class and the $link{ObjectFactory_1_1#createObject(java.lang.String, java.lang.String,Object_1_0) createObject(String,String,Object_1_0)} method.
createObject in interface ObjectFactory_1_0createObject in interface ObjectFactory_1_1ServiceExceptionRole
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
public Object_1_0 getObject(Object accessPath)
throws ServiceException
ObjectFactory_1_0If an object with the given access 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 Object_1_0 getObject(Object accessPath,
Boolean dateStateInstance,
boolean initializeCacheWithDelegate)
throws ServiceException
ServiceException
public UnitOfWork_1_0 getUnitOfWork()
throws ServiceException
ObjectFactory_1_0
getUnitOfWork in interface ObjectFactory_1_0ServiceException - ILLEGAL_STATE
if the object factory is closed
protected Object createMarshalledObject(Object source)
throws ServiceException
CachingMarshaller
createMarshalledObject in class CachingMarshallersource - The object to be marshalled
ServiceException - MARSHAL_FAILURE
Object can't be marshalledprotected final boolean isOpen()
true if the connection is open.
protected void assertOpen()
throws ServiceException
ServiceException - ILLEGAL_STATE if the connection is closed
public Object unmarshal(Object source)
throws ServiceException
CachingMarshaller
unmarshal in interface Marshallerunmarshal in class CachingMarshallersource - The marshalled object
ServiceException - MARSHAL_FAILURE
Object can't be unmarshalled
public Object_1_0 createObject(String roleClass,
String roleId,
Object_1_0 roleCapable)
throws ServiceException
ObjectFactory_1_1
createObject in interface ObjectFactory_1_1ServiceExceptionRoleCapablepublic Connection_1Factory getConnectionFactory()
ObjectFactory_1_2
getConnectionFactory in interface ObjectFactory_1_2public Boolean hasContainerManagedUnitOfWork()
ObjectFactory_1_2
hasContainerManagedUnitOfWork in interface ObjectFactory_1_2
public Object_1_0 cloneObject(Path target,
Object_1_0 original,
boolean completelyDirty)
throws ServiceException
ObjectFactory_1_3
cloneObject in interface ObjectFactory_1_3ServiceExceptionpublic void clear()
clear in interface ObjectFactory_1_3clear in class CachingMarshallerpublic void evict()
evict in interface ObjectFactory_1_3
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||