net.xoetrope.optional.data.pojo
Class XPojoContext

java.lang.Object
  extended by net.xoetrope.optional.data.pojo.XPojoContext
All Implemented Interfaces:
XPojoRoot
Direct Known Subclasses:
XPojoHibernateContext

public abstract class XPojoContext
extends java.lang.Object
implements XPojoRoot

An interface for the POJO's setup and operating context.

The context object need not implement this interface, but if it does then the methods declared by the interface will be invoked

Copyright (c) Xoetrope Ltd., 2001-2007
License: see license.txt


Constructor Summary
XPojoContext()
           
 
Method Summary
 void closeSession()
           
abstract  java.lang.Object getRoot()
          Return the root element in the pojo hierarchy or null if there is no single root, or if the XML configuration defines the root object
 void openSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.xoetrope.optional.data.pojo.XPojoRoot
configure, setProject
 

Constructor Detail

XPojoContext

public XPojoContext()
Method Detail

getRoot

public abstract java.lang.Object getRoot()
Return the root element in the pojo hierarchy or null if there is no single root, or if the XML configuration defines the root object


openSession

public void openSession()

closeSession

public void closeSession()