it.negro.jajb
Class JAJBContext

java.lang.Object
  extended by it.negro.jajb.JAJBContext

public final class JAJBContext
extends java.lang.Object


Method Summary
protected  it.dangelo.javabinding.mappings.EntityWrapper getEntityWrapper(java.lang.String key)
          Saves, if is not present into context, the EntityWrapper with passed key parameter like id, and returns it.
protected  ProxyResolver getProxyResolver()
           
protected static JAJBContext getStaticInstance()
          Returns the unique singleton instance of JAJBContext.
protected static JAJBContext newInstance()
          Makes and returns a new instance of JAJBContext.
protected  void saveEntityWrapper(it.dangelo.javabinding.mappings.Entity entity)
          Saves into context the EntityWrapper for passed Entity
protected  void saveEntityWrapper(java.lang.String refId)
          Creates and save an EntityWrapper according to passed refId parameter.
protected  void setProxyResolver(ProxyResolver proxyResolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

protected static JAJBContext newInstance()
Makes and returns a new instance of JAJBContext.

Returns:
- a new instance of JAJBContext.

getStaticInstance

protected static JAJBContext getStaticInstance()
Returns the unique singleton instance of JAJBContext.

Returns:
- the unique singleton instance of JAJBContext.

getEntityWrapper

protected it.dangelo.javabinding.mappings.EntityWrapper getEntityWrapper(java.lang.String key)
                                                                  throws JAJBException
Saves, if is not present into context, the EntityWrapper with passed key parameter like id, and returns it.

Parameters:
key - the of expected EntityWrapper
Returns:
EntityWrapper
Throws:
JAJBException

saveEntityWrapper

protected void saveEntityWrapper(it.dangelo.javabinding.mappings.Entity entity)
                          throws JAJBException
Saves into context the EntityWrapper for passed Entity

Parameters:
entity - the Entity for EntityWrapper creation.
Throws:
JAJBException

saveEntityWrapper

protected void saveEntityWrapper(java.lang.String refId)
                          throws JAJBException
Creates and save an EntityWrapper according to passed refId parameter.

Parameters:
refId - the refId for Entity and EntityWrapper creation
Throws:
JAJBException

getProxyResolver

protected ProxyResolver getProxyResolver()

setProxyResolver

protected void setProxyResolver(ProxyResolver proxyResolver)


Copyright © 2008. All Rights Reserved.