This project has retired. For details please refer to its
        
        Attic page.
      
 
ODMGImpl (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.ojb.odmg.components
Class ODMGImpl
java.lang.Object
  
org.apache.avalon.framework.logger.AbstractLogEnabled
      
org.apache.cocoon.ojb.odmg.components.ODMGImpl
- All Implemented Interfaces: 
 - Disposable, Initializable, Component, LogEnabled, ThreadSafe, ODMG
 
public class ODMGImpl
- extends AbstractLogEnabled
- implements ODMG, ThreadSafe, Initializable, Disposable
  
OJB backed implementation of the ODMG component. Creates a ODMG Implementation
 Object and stores it for the future use.
- Version:
 
  - CVS $Id: ODMGImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $
 
- Author:
 
  - Giacomo Pati
 
 
| Fields inherited from interface org.apache.cocoon.ojb.odmg.components.ODMG | 
ROLE | 
 
 
| 
Method Summary | 
 void | 
dispose()
 
            | 
 org.odmg.Implementation | 
getInstance()
 
          Get a ODMG Instance with default settings. | 
 org.odmg.Implementation | 
getInstance(int mode)
 
          Get a ODMG Instance with a default connection definition and a Database operation mode. | 
 org.odmg.Implementation | 
getInstance(String connection)
 
          Get a ODMG Instance with a specific connection definition. | 
 org.odmg.Implementation | 
getInstance(String connection,
            int mode)
 
          Get a ODMG Instance with a specific connection definition and a Database operation mode. | 
 void | 
initialize()
 
            | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ODMGImpl
public ODMGImpl()
initialize
public void initialize()
                throws Exception
- Specified by:
 initialize in interface Initializable
 
- Throws:
 Exception
 
dispose
public void dispose()
- Specified by:
 dispose in interface Disposable
 
 
getInstance
public org.odmg.Implementation getInstance()
                                    throws org.odmg.ODMGException
- Description copied from interface: 
ODMG 
- Get a ODMG Instance with default settings.
- Specified by:
 getInstance in interface ODMG
 
- Returns:
 - a ODMG Implementation Object
 - Throws:
 org.odmg.ODMGException - DOCUMENT ME!
 
 
getInstance
public org.odmg.Implementation getInstance(String connection)
                                    throws org.odmg.ODMGException
- Description copied from interface: 
ODMG 
- Get a ODMG Instance with a specific connection definition.
- Specified by:
 getInstance in interface ODMG
 
- Parameters:
 connection - The connection name to be used (OJB specific connection name)
- Returns:
 - a ODMG Implementation Object
 - Throws:
 org.odmg.ODMGException - DOCUMENT ME!
 
 
getInstance
public org.odmg.Implementation getInstance(int mode)
                                    throws org.odmg.ODMGException
- Description copied from interface: 
ODMG 
- Get a ODMG Instance with a default connection definition and a Database operation mode.
- Specified by:
 getInstance in interface ODMG
 
- Parameters:
 mode - The Database operation mode
- Returns:
 - a ODMG Implementation Object
 - Throws:
 org.odmg.ODMGException - DOCUMENT ME!
 
 
getInstance
public org.odmg.Implementation getInstance(String connection,
                                           int mode)
                                    throws org.odmg.ODMGException
- Description copied from interface: 
ODMG 
- Get a ODMG Instance with a specific connection definition and a Database operation mode.
- Specified by:
 getInstance in interface ODMG
 
- Parameters:
 connection - The connection name to be used (OJB specific connection name)mode - The Database operation mode
- Returns:
 - a ODMG Implementation Object
 - Throws:
 org.odmg.ODMGException - DOCUMENT ME!
 
 
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.