1 package org.apache.ojb.broker.core; 2 3 17 18 import org.apache.ojb.broker.PBFactoryException; 19 import org.apache.ojb.broker.PBKey; 20 import org.apache.ojb.broker.PersistenceBroker; 21 import org.apache.ojb.broker.PersistenceBrokerInternal; 22 import org.apache.ojb.broker.util.configuration.Configurable; 23 24 31 public interface PersistenceBrokerFactoryIF extends Configurable 32 { 33 45 public void setDefaultKey(PBKey key); 46 47 54 public PBKey getDefaultKey(); 55 56 62 public PersistenceBrokerInternal createPersistenceBroker(PBKey key) throws PBFactoryException; 63 64 71 public PersistenceBrokerInternal createPersistenceBroker(String jcdAlias, String user, String password) 72 throws PBFactoryException; 73 74 78 public PersistenceBrokerInternal defaultPersistenceBroker() throws PBFactoryException; 79 80 84 public void releaseAllInstances(); 85 86 91 public int activePersistenceBroker(); 92 93 101 public void shutdown(); 102 } 103 | Popular Tags |