org.davesag.generica.persistence
Interface Manager

All Known Implementing Classes:
HibernateArchivist, HibernateTransaction, JdoArchivist, JdoTransaction

public interface Manager

A Manager passes on requests to an underlying delegate objects.

Since:
Generica 1.0
Version:
CVS Revision $Id: Manager.java,v 1.4 2004/04/06 15:40:41 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Method Summary
 Object getDelegate()
          Get the object to delegate to.
 void setDelegate(Object delegate)
          Set the object to delegate to.
 

Method Detail

setDelegate

public void setDelegate(Object delegate)
                 throws ClassCastException
Set the object to delegate to.

Parameters:
delegate - The object to delegate to.
Throws:
ClassCastException - if the deletaged object was not a valid class for this manager.

getDelegate

public Object getDelegate()
Get the object to delegate to.

Returns:
The object being delegated to.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.