Java Doc for AbstractBaseManager.java in  » Database-ORM » Torque » org » apache » torque » manager » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » Torque » org.apache.torque.manager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.torque.manager.AbstractBaseManager

AbstractBaseManager
abstract public class AbstractBaseManager implements Serializable(Code)
This class contains common functionality of a Manager for instantiating OM's.
author:
   John McNally
version:
   $Id: AbstractBaseManager.java 571790 2007-09-01 12:40:44Z tv $


Field Summary
protected transient  GroupCacheAccesscache
     used to cache the om objects.
protected  MaplistenersMap
    
final protected static  Loglog
    
protected  MethodResultCachemrCache
    
protected  MapvalidFields
    


Method Summary
public  voidaddCacheListenerImpl(CacheListener listener)
    
protected  PersistentcacheGet(Serializable key)
    
protected  voidclearImpl()
    
public  voiddispose()
     Disposes of the cache.
public  StringgetClassName()
    
public  MethodResultCachegetMethodResultCache()
    
protected  ClassgetOMClass()
    
protected  PersistentgetOMInstance()
    
protected  PersistentgetOMInstance(ObjectKey id)
    
protected  PersistentgetOMInstance(ObjectKey key, boolean fromCache)
    
protected  ListgetOMs(ObjectKey[] ids)
     Gets a list of om's based on id's.
protected  ListgetOMs(List ids)
     Gets a list of om's based on id's.
protected  ListgetOMs(List ids, boolean fromCache)
     Gets a list of om's based on id's.
public  StringgetRegion()
     Get the value of region.
protected  voidnotifyListeners(List listeners, Persistent oldOm, Persistent om)
    
protected  PersistentputInstanceImpl(Persistent om)
    
protected  PersistentputInstanceImpl(Serializable key, Persistent om)
    
protected  voidregisterAsListener()
     NoOp version.
protected  PersistentremoveInstanceImpl(Serializable key)
    
abstract protected  PersistentretrieveStoredOM(ObjectKey id)
    
abstract protected  ListretrieveStoredOMs(List ids)
     Gets a list of om's based on id's.
public  voidsetClassName(String v)
    
protected  voidsetOMClass(Class omClass)
    
public  voidsetRegion(String v)
     Set the value of region.

Field Detail
cache
protected transient GroupCacheAccess cache(Code)
used to cache the om objects. cache is set by the region property



listenersMap
protected Map listenersMap(Code)



log
final protected static Log log(Code)
the log



mrCache
protected MethodResultCache mrCache(Code)
method results cache



validFields
protected Map validFields(Code)





Method Detail
addCacheListenerImpl
public void addCacheListenerImpl(CacheListener listener)(Code)

Parameters:
  listener - A new listener for cache events.



cacheGet
protected Persistent cacheGet(Serializable key)(Code)
Get an object from cache
Parameters:
  key - the primary key of the object the object from cache



clearImpl
protected void clearImpl() throws TorqueException(Code)
Clears the cache
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



dispose
public void dispose()(Code)
Disposes of the cache. This triggers a shutdown of the connected cache instances. This method should only be used during shutdown of Torque. The manager instance will not cache anymore after this call.



getClassName
public String getClassName()(Code)
Get the classname to instantiate for getInstance() value of className.



getMethodResultCache
public MethodResultCache getMethodResultCache()(Code)
The cache instance.



getOMClass
protected Class getOMClass()(Code)
Get the Class instance the om class



getOMInstance
protected Persistent getOMInstance() throws InstantiationException, IllegalAccessException(Code)
Get a fresh instance of an om an instance of the om class
throws:
  InstantiationException -
throws:
  IllegalAccessException -



getOMInstance
protected Persistent getOMInstance(ObjectKey id) throws TorqueException(Code)
Return an instance of an om based on the id
Parameters:
  id - the primary key of the object the object from persistent storage or from cache
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



getOMInstance
protected Persistent getOMInstance(ObjectKey key, boolean fromCache) throws TorqueException(Code)
Return an instance of an om based on the id
Parameters:
  key - the primary key of the object
Parameters:
  fromCache - true if the object should be retrieved from cache the object from persistent storage or from cache
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



getOMs
protected List getOMs(ObjectKey[] ids) throws TorqueException(Code)
Gets a list of om's based on id's.
Parameters:
  ids - a ObjectKey[] value a List value
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



getOMs
protected List getOMs(List ids) throws TorqueException(Code)
Gets a list of om's based on id's.
Parameters:
  ids - a List of ObjectKey's a List value
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



getOMs
protected List getOMs(List ids, boolean fromCache) throws TorqueException(Code)
Gets a list of om's based on id's.
Parameters:
  ids - a List of ObjectKey's a List value
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



getRegion
public String getRegion()(Code)
Get the value of region. value of region.



notifyListeners
protected void notifyListeners(List listeners, Persistent oldOm, Persistent om)(Code)

Parameters:
  listeners -
Parameters:
  oldOm -
Parameters:
  om -



putInstanceImpl
protected Persistent putInstanceImpl(Persistent om) throws TorqueException(Code)
Put an object into the cache
Parameters:
  om - the object if an object with the same key already is in the cachethis object will be returned, else null
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



putInstanceImpl
protected Persistent putInstanceImpl(Serializable key, Persistent om) throws TorqueException(Code)
Put an object into the cache
Parameters:
  key - the cache key for the object
Parameters:
  om - the object if an object with this key already is in the cachethis object will be returned, else null
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



registerAsListener
protected void registerAsListener()(Code)
NoOp version. Managers should override this method to notify other managers that they are interested in CacheEvents.



removeInstanceImpl
protected Persistent removeInstanceImpl(Serializable key) throws TorqueException(Code)
Remove an object from the cache
Parameters:
  key - the cache key for the object the object one last time
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



retrieveStoredOM
abstract protected Persistent retrieveStoredOM(ObjectKey id) throws TorqueException(Code)
Retrieve an object from persistent storage
Parameters:
  id - the primary key of the object the object
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



retrieveStoredOMs
abstract protected List retrieveStoredOMs(List ids) throws TorqueException(Code)
Gets a list of om's based on id's. This method must be implemented in the drived class
Parameters:
  ids - a List of ObjectKey's a List value
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



setClassName
public void setClassName(String v) throws TorqueException(Code)
Set the classname to instantiate for getInstance()
Parameters:
  v - Value to assign to className.
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



setOMClass
protected void setOMClass(Class omClass)(Code)
Set the Class that will be instantiated by this manager
Parameters:
  omClass - the om class



setRegion
public void setRegion(String v) throws TorqueException(Code)
Set the value of region.
Parameters:
  v - Value to assign to region.
throws:
  TorqueException - Any exceptions caught during processing will berethrown wrapped into a TorqueException.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.