org.tigris.scarab.om
Class ModuleManager

java.lang.Object
  extended byorg.apache.torque.manager.AbstractBaseManager
      extended byorg.tigris.scarab.om.BaseModuleManager
          extended byorg.tigris.scarab.om.ModuleManager
All Implemented Interfaces:
org.apache.torque.manager.CacheListener, java.io.Serializable

public class ModuleManager
extends BaseModuleManager
implements org.apache.torque.manager.CacheListener

This class manages Module objects.

Version:
$Id: ModuleManager.java 9977 2005-12-09 00:40:59Z hair $
Author:
John McNally
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.tigris.scarab.om.BaseModuleManager
DEFAULT_MANAGER_CLASS, MANAGED_CLASS
 
Fields inherited from class org.apache.torque.manager.AbstractBaseManager
cache, listenersMap, log, mrCache, validFields
 
Constructor Summary
ModuleManager()
          Creates a new ModuleManager instance.
 
Method Summary
 void addedObject(org.apache.torque.om.Persistent om)
           
static Module getInstance(java.lang.String moduleDomain, java.lang.String moduleRealName, java.lang.String moduleCode)
          Get an instance of a Module by realName and code.
protected  Module getInstanceImpl()
          Get a fresh instance of a ModuleManager
protected  Module getInstanceImpl(java.lang.String moduleDomain, java.lang.String moduleRealName, java.lang.String moduleCode)
          Get an instance of a Module by realName and code.
static java.util.List getInstancesFromIssueList(java.util.List issues)
          Create a list of Modules from the given list of issues.
 java.util.List getInterestedFields()
          fields which interest us with respect to cache events
 void refreshedObject(org.apache.torque.om.Persistent om)
           
protected  void registerAsListener()
          Notify other managers with relevant CacheEvents.
 
Methods inherited from class org.tigris.scarab.om.BaseModuleManager
addCacheListener, clear, exists, existsImpl, getCachedInstance, getCachedInstanceImpl, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceImpl, getInstanceImpl, getInstances, getInstances, getInstancesImpl, getInstancesImpl, getManager, getMethodResult, putInstance, retrieveStoredOM, retrieveStoredOMs
 
Methods inherited from class org.apache.torque.manager.AbstractBaseManager
addCacheListenerImpl, cacheGet, clearImpl, getClassName, getMethodResultCache, getOMClass, getOMInstance, getOMInstance, getOMInstance, getOMs, getOMs, getOMs, getRegion, notifyListeners, putInstanceImpl, putInstanceImpl, removeInstanceImpl, setClassName, setOMClass, setRegion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleManager

public ModuleManager()
              throws org.apache.torque.TorqueException
Creates a new ModuleManager instance.

Throws:
org.apache.torque.TorqueException - if an error occurs
Method Detail

getInstanceImpl

protected Module getInstanceImpl()
Description copied from class: BaseModuleManager
Get a fresh instance of a ModuleManager

Overrides:
getInstanceImpl in class BaseModuleManager

getInstance

public static Module getInstance(java.lang.String moduleDomain,
                                 java.lang.String moduleRealName,
                                 java.lang.String moduleCode)
                          throws org.apache.torque.TorqueException
Get an instance of a Module by realName and code. If the result != 1, then throw a TorqueException. FIXME: Use caching? John?

Throws:
org.apache.torque.TorqueException

getInstanceImpl

protected Module getInstanceImpl(java.lang.String moduleDomain,
                                 java.lang.String moduleRealName,
                                 java.lang.String moduleCode)
                          throws org.apache.torque.TorqueException
Get an instance of a Module by realName and code. If the result != 1, then throw a TorqueException. FIXME: Use caching? John?

Throws:
org.apache.torque.TorqueException

getInstancesFromIssueList

public static java.util.List getInstancesFromIssueList(java.util.List issues)
                                                throws org.apache.torque.TorqueException
Create a list of Modules from the given list of issues. Each Module in the list of issues will only occur once in the list of Modules.

Parameters:
issues - a List value
Returns:
a List value
Throws:
org.apache.torque.TorqueException - if an error occurs

registerAsListener

protected void registerAsListener()
Notify other managers with relevant CacheEvents.


addedObject

public void addedObject(org.apache.torque.om.Persistent om)
Specified by:
addedObject in interface org.apache.torque.manager.CacheListener

refreshedObject

public void refreshedObject(org.apache.torque.om.Persistent om)
Specified by:
refreshedObject in interface org.apache.torque.manager.CacheListener

getInterestedFields

public java.util.List getInterestedFields()
fields which interest us with respect to cache events

Specified by:
getInterestedFields in interface org.apache.torque.manager.CacheListener


Copyright © 2000-2004 Tigris.org. All Rights Reserved.