org.apache.cocoon.ojb.odmg.components
Interface ODMG

All Superinterfaces:
Component
All Known Implementing Classes:
ODMGImpl

public interface ODMG
extends Component

Interface component to the ODMG Implementation. It is used to get the ODMG Implementation object to interact with object database through ODMG API.

Version:
CVS $Id: ODMG.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Giacomo Pati

Field Summary
static String ROLE
          The ROLE
 
Method Summary
 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.
 

Field Detail

ROLE

static final String ROLE
The ROLE

Method Detail

getInstance

org.odmg.Implementation getInstance()
                                    throws org.odmg.ODMGException
Get a ODMG Instance with default settings.

Returns:
a ODMG Implementation Object
Throws:
org.odmg.ODMGException - DOCUMENT ME!

getInstance

org.odmg.Implementation getInstance(String connection)
                                    throws org.odmg.ODMGException
Get a ODMG Instance with a specific connection definition.

Parameters:
connection - The connection name to be used (OJB specific connection name)
Returns:
a ODMG Implementation Object
Throws:
org.odmg.ODMGException - DOCUMENT ME!

getInstance

org.odmg.Implementation getInstance(String connection,
                                    int mode)
                                    throws org.odmg.ODMGException
Get a ODMG Instance with a specific connection definition and a Database operation mode.

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!

getInstance

org.odmg.Implementation getInstance(int mode)
                                    throws org.odmg.ODMGException
Get a ODMG Instance with a default connection definition and a Database operation mode.

Parameters:
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.