|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.ocm.manager.objectconverter.impl.ObjectConverterImpl
public class ObjectConverterImpl
Default implementation for ObjectConverterImpl
Constructor Summary | |
---|---|
ObjectConverterImpl()
No-arg constructor. |
|
ObjectConverterImpl(Mapper mapper,
AtomicTypeConverterProvider converterProvider)
Constructor |
|
ObjectConverterImpl(Mapper mapper,
AtomicTypeConverterProvider converterProvider,
ProxyManager proxyManager,
ObjectCache requestObjectCache)
Constructor |
Method Summary | |
---|---|
Object |
getObject(Session session,
Class clazz,
String path)
Retrieve an object from the JCR repo |
Object |
getObject(Session session,
String path)
Retrieve an object from the JCR repo |
String |
getPath(Session session,
Object object)
Get the object JCR path |
void |
insert(Session session,
Node parentNode,
String nodeName,
Object object)
Insert the object |
void |
insert(Session session,
Object object)
Insert the object |
void |
retrieveAllMappedAttributes(Session session,
Object object)
Retrieve all mapped attributes for the given persistent object. |
void |
retrieveMappedAttribute(Session session,
Object object,
String attributeName)
Retrieve the specified attribute for the given persistent object. |
void |
setAtomicTypeConverterProvider(AtomicTypeConverterProvider converterProvider)
Sets the converter provider. |
void |
setMapper(Mapper mapper)
Set the Mapper used to solve mappings. |
void |
update(Session session,
Node objectNode,
Object object)
Update the object |
void |
update(Session session,
Node parentNode,
String nodeName,
Object object)
Update the object |
void |
update(Session session,
Object object)
Update the object |
void |
update(Session session,
String uuId,
Object object)
Update the object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectConverterImpl()
public ObjectConverterImpl(Mapper mapper, AtomicTypeConverterProvider converterProvider)
mapper
- The mapper to usedconverterProvider
- The atomic type converter providerpublic ObjectConverterImpl(Mapper mapper, AtomicTypeConverterProvider converterProvider, ProxyManager proxyManager, ObjectCache requestObjectCache)
mapper
- The mapper to usedconverterProvider
- The atomic type converter providerMethod Detail |
---|
public void setMapper(Mapper mapper)
Mapper
used to solve mappings.
mapper
- a Mapper
public void setAtomicTypeConverterProvider(AtomicTypeConverterProvider converterProvider)
converterProvider
- an AtomicTypeConverterProvider
public void insert(Session session, Object object)
ObjectConverter
insert
in interface ObjectConverter
session
- the JCR sessionobject
- the object to insertObjectConverter.insert(javax.jcr.Session,
java.lang.Object)
public void insert(Session session, Node parentNode, String nodeName, Object object)
ObjectConverter
insert
in interface ObjectConverter
session
- the JCR sessionparentNode
- The parent node used to store the new JCR element (object)nodeName
- The node name used to store the objectobject
- the object to insertObjectConverter.insert(javax.jcr.Session,
javax.jcr.Node, java.lang.String, java.lang.Object)
public void update(Session session, Object object)
ObjectConverter
update
in interface ObjectConverter
session
- the JCR sessionobject
- the object to updateObjectConverter.update(javax.jcr.Session,
java.lang.Object)
public void update(Session session, String uuId, Object object)
ObjectConverter
update
in interface ObjectConverter
session
- the JCR sessionuuId
- The UUID of the node to get updated.object
- the object to updateObjectConverter.update(javax.jcr.Session,
javax.jcr.Node, java.lang.String, java.lang.Object)
public void update(Session session, Node objectNode, Object object)
ObjectConverter
update
in interface ObjectConverter
session
- the JCR sessionobjectNode
- The node to store the objectobject
- the object to updateObjectConverter.update(javax.jcr.Session,
javax.jcr.Node, java.lang.Object)
public void update(Session session, Node parentNode, String nodeName, Object object)
ObjectConverter
update
in interface ObjectConverter
session
- the JCR sessionparentNode
- The parent node used to store the new JCR element (object)nodeName
- The node name used to store the objectobject
- the object to updateObjectConverter.update(javax.jcr.Session,
javax.jcr.Node, java.lang.String, java.lang.Object)
public Object getObject(Session session, String path)
ObjectConverter
getObject
in interface ObjectConverter
session
- The JCR sessionpath
- the JCR path
ObjectConverter.getObject(javax.jcr.Session,
java.lang.Class, java.lang.String)
public Object getObject(Session session, Class clazz, String path)
ObjectConverter
getObject
in interface ObjectConverter
session
- The JCR sessionclazz
- The class assigned to the object to retrievepath
- the JCR path
ObjectConverter.getObject(javax.jcr.Session,
java.lang.Class, java.lang.String)
public void retrieveAllMappedAttributes(Session session, Object object)
ObjectConverter
retrieveAllMappedAttributes
in interface ObjectConverter
session
- The JCR sessionobject
- The persistent objectpublic void retrieveMappedAttribute(Session session, Object object, String attributeName)
ObjectConverter
retrieveMappedAttribute
in interface ObjectConverter
session
- The JCR sessionobject
- The persistent objectattributeName
- The name of the attribute to retrievepublic String getPath(Session session, Object object)
ObjectConverter
getPath
in interface ObjectConverter
session
- the JCR sessionobject
- the object for which the path has to be retrieve
JcrMappingException
ObjectConverter.getPath(javax.jcr.Session,
java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |