org.apache.cocoon.ojb.jdo.components
Class JDOImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.ojb.jdo.components.JDOImpl
All Implemented Interfaces:
Initializable, Component, LogEnabled, ThreadSafe, JDO

public class JDOImpl
extends AbstractLogEnabled
implements JDO, ThreadSafe, Initializable

Implementation of the JDO component. Creates one PersistenceManagerFactory and stores it for the future use.

Version:
CVS $Id: JDOImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Antonio Gallardo

Field Summary
protected  javax.jdo.PersistenceManagerFactory factory
           
 
Fields inherited from interface org.apache.cocoon.ojb.jdo.components.JDO
ROLE
 
Constructor Summary
JDOImpl()
           
 
Method Summary
 javax.jdo.PersistenceManager getPersistenceManager()
          Get a Persitence Manager.
 void initialize()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected javax.jdo.PersistenceManagerFactory factory
Constructor Detail

JDOImpl

public JDOImpl()
Method Detail

getPersistenceManager

public javax.jdo.PersistenceManager getPersistenceManager()
Description copied from interface: JDO
Get a Persitence Manager.

Specified by:
getPersistenceManager in interface JDO

initialize

public void initialize()
                throws Exception
Specified by:
initialize in interface Initializable
Throws:
Exception


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.