1 16 package org.apache.cocoon.ojb.jdo.components; 17 18 import org.apache.avalon.framework.activity.Initializable; 19 import org.apache.avalon.framework.logger.AbstractLogEnabled; 20 import org.apache.avalon.framework.thread.ThreadSafe; 21 22 import org.apache.ojb.jdori.sql.OjbStorePMF; 23 24 import javax.jdo.PersistenceManager; 25 import javax.jdo.PersistenceManagerFactory; 26 27 34 public class JDOImpl extends AbstractLogEnabled 35 implements JDO, ThreadSafe, Initializable { 36 37 protected PersistenceManagerFactory factory; 38 39 42 public PersistenceManager getPersistenceManager() { 43 return this.factory.getPersistenceManager(); 44 } 45 46 49 public void initialize() throws Exception { 50 this.factory = new OjbStorePMF(); 51 } 52 } 53 | Popular Tags |