Java Doc for AbstractHomeImpl.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » mim » lib » 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 » Speedo_1.4.5 » org.objectweb.speedo.mim.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.mim.lib.AbstractHomeImpl

All known Subclasses:   org.objectweb.speedo.mim.ejb.lib.EJBAbstractHomeImpl,  org.objectweb.speedo.mim.jdo.lib.JDOAbstractHomeImpl,  org.objectweb.speedo.genclass.AbstractGenClassHome,
AbstractHomeImpl
abstract public class AbstractHomeImpl implements HomeItf(Code)

author:
   S.Chassande-Barrioz


Field Summary
 bytecachePolicy
    
 booleanisFieldLockingLevel
    
 booleanisShareable
    
protected  MapnamedQueries
    
protected  Personalitypersonality
    
protected  POManagerFactoryItfpmf
    
 booleanprefetchOnExtent
    
 booleanprefetchOnGenClass
    
 booleanprefetchOnQuery
    
protected  TransactionalPersistenceManagertpm
    
protected  UserCache[]userCaches
    

Constructor Summary
public  AbstractHomeImpl(Personality p)
    
public  AbstractHomeImpl(TransactionalPersistenceManager _tpm, POManagerFactoryItf _pmf)
    

Method Summary
public  booleanactiveUserCache(String cacheName)
    
final public  QueryDefinitionaddNamedQuery(String name, QueryDefinition query)
    
protected synchronized  UserCacheaddUserCache(String userCacheName, String[] fields, int id)
    
public  booleanallLoaded()
    
final public  voidattachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, StateItf sa)
    
final public  PersistentObjectItfdetachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, Collection fgHints)
    
public  CollectionfgGetFieldsToLoad(String fgName)
     This default implementation does nothing and returns null.
final public  CollectionfgGetFieldsToLoad(String fgName, boolean onlyDirectRef)
    
public  CollectionfgGetNestedFetchGroups(String fgName)
     This default implementation does nothing and returns null.
public  booleanfgIsDefined(String fgName)
     This default implementation returns always false.
public  CollectiongetActiveUserCache()
    
public  ClassgetClassForQuery(String className, String queryName)
    
final public  QueryDefinitiongetNamedQuery(String name)
    
final public  POManagerFactoryItfgetPOManagerFactory()
    
public  StringgetPath()
    
public  booleangetPrefetchOnExtent()
    
public  booleangetPrefetchOnGenClass()
    
public  booleangetPrefetchOnQuery()
    
final public  StateItfgetState(PersistentObjectItf sp)
     It retrieves the StateItf instance used in the current context. If the po is not active then the reference accessor is returned. If there is an active then the $classNameFields used in the context is returned.
final public  TransactionalPersistenceManagergetTransactionalPersistenceManager()
     the TransactionalPersistenceManager which manage theconcurrency, loading, ...
public  UserCachegetUserCache(int cacheId)
    
public  UserCachegetUserCache(Collection fieldNames)
    
public  booleanhasToFix()
    
public  voidinitSH()
    
protected  booleanisAbstract()
    
public  booleanisCacheable()
    
public  booleanisFieldLockingLevel()
    
public  booleanisShareable()
    
protected  PersistentObjectItfnewSpeedoPOInstance(Class clazz)
     Create a new instance of a PersistentObjectItf which the clas is given in parameter.
final public  StateItfreadIntention(PersistentObjectItf sp, long[] fields)
     Notifies the transactional persistency manager of a read intention for the given persistent instance.
Parameters:
  sp - is the PersistentObjectItf which the read access is requested.
Parameters:
  fields - the ids of the fields that may be accessed by the callerof this method.
final public  QueryDefinitionremoveNamedQuery(String name)
    
public  voidsetCachePolicy(byte v)
    
public  voidsetFieldLockingLevel(boolean val)
    
final public  voidsetPOManagerFactory(POManagerFactoryItf _pmf)
    
public  voidsetPrefetchOnExtent(boolean prefetch)
    
public  voidsetPrefetchOnGenClass(boolean prefetch)
    
public  voidsetPrefetchOnQuery(boolean prefetch)
    
public  voidsetShareable(boolean v)
    
final public  voidsetTransactionalPersistenceManager(TransactionalPersistenceManager _tpm)
     It assignes a TransactionalPersistenceManager
Parameters:
  _tpm - is the TransactionalPersistenceManager which manage theconcurrency, loading, ...
public  voiduserCacheEntryUnbound(Object oid)
    
final public  StateItfwriteIntention(PersistentObjectItf sp, long[] fields)
    
public  StateItfwriteIntention(PersistentObjectItf sp, long[] fields, Object thinLock)
     Notifies the transactional persistency manager of a write intention for the given persistent instance.
Parameters:
  sp - is the PersistentObjectItf which the write access is requested.
Parameters:
  fields - the ids of the fields that may be accessed by the callerof this method.

Field Detail
cachePolicy
byte cachePolicy(Code)



isFieldLockingLevel
boolean isFieldLockingLevel(Code)



isShareable
boolean isShareable(Code)



namedQueries
protected Map namedQueries(Code)



personality
protected Personality personality(Code)



pmf
protected POManagerFactoryItf pmf(Code)



prefetchOnExtent
boolean prefetchOnExtent(Code)



prefetchOnGenClass
boolean prefetchOnGenClass(Code)



prefetchOnQuery
boolean prefetchOnQuery(Code)



tpm
protected TransactionalPersistenceManager tpm(Code)



userCaches
protected UserCache[] userCaches(Code)




Constructor Detail
AbstractHomeImpl
public AbstractHomeImpl(Personality p)(Code)



AbstractHomeImpl
public AbstractHomeImpl(TransactionalPersistenceManager _tpm, POManagerFactoryItf _pmf)(Code)




Method Detail
activeUserCache
public boolean activeUserCache(String cacheName)(Code)
This method is implemented by the generated XXXHome class



addNamedQuery
final public QueryDefinition addNamedQuery(String name, QueryDefinition query)(Code)



addUserCache
protected synchronized UserCache addUserCache(String userCacheName, String[] fields, int id)(Code)



allLoaded
public boolean allLoaded()(Code)



attachCopy
final public void attachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, StateItf sa)(Code)



detachCopy
final public PersistentObjectItf detachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, Collection fgHints)(Code)



fgGetFieldsToLoad
public Collection fgGetFieldsToLoad(String fgName)(Code)
This default implementation does nothing and returns null. Subclass to change the behavior



fgGetFieldsToLoad
final public Collection fgGetFieldsToLoad(String fgName, boolean onlyDirectRef)(Code)



fgGetNestedFetchGroups
public Collection fgGetNestedFetchGroups(String fgName)(Code)
This default implementation does nothing and returns null. Subclass to change the behavior



fgIsDefined
public boolean fgIsDefined(String fgName)(Code)
This default implementation returns always false. Subclass to change the behavior



getActiveUserCache
public Collection getActiveUserCache()(Code)



getClassForQuery
public Class getClassForQuery(String className, String queryName)(Code)



getNamedQuery
final public QueryDefinition getNamedQuery(String name)(Code)



getPOManagerFactory
final public POManagerFactoryItf getPOManagerFactory()(Code)
the PersistenceManagerFactory which represents the data supportinside which the po is persistent.



getPath
public String getPath()(Code)



getPrefetchOnExtent
public boolean getPrefetchOnExtent()(Code)



getPrefetchOnGenClass
public boolean getPrefetchOnGenClass()(Code)



getPrefetchOnQuery
public boolean getPrefetchOnQuery()(Code)



getState
final public StateItf getState(PersistentObjectItf sp)(Code)
It retrieves the StateItf instance used in the current context. If the po is not active then the reference accessor is returned. If there is an active then the $classNameFields used in the context is returned. Be careul, if the persistent object is not used in the current context, then a null value will be returned, because no StateItf is registered in the working set.



getTransactionalPersistenceManager
final public TransactionalPersistenceManager getTransactionalPersistenceManager()(Code)
the TransactionalPersistenceManager which manage theconcurrency, loading, ... of the po.



getUserCache
public UserCache getUserCache(int cacheId)(Code)



getUserCache
public UserCache getUserCache(Collection fieldNames)(Code)



hasToFix
public boolean hasToFix()(Code)



initSH
public void initSH()(Code)



isAbstract
protected boolean isAbstract()(Code)
false because it corresponds to most of caseSubclass to change the behavior



isCacheable
public boolean isCacheable()(Code)



isFieldLockingLevel
public boolean isFieldLockingLevel()(Code)



isShareable
public boolean isShareable()(Code)



newSpeedoPOInstance
protected PersistentObjectItf newSpeedoPOInstance(Class clazz) throws Exception(Code)
Create a new instance of a PersistentObjectItf which the clas is given in parameter. The default implementation does a simple 'clazz.newInstance()'.



readIntention
final public StateItf readIntention(PersistentObjectItf sp, long[] fields)(Code)
Notifies the transactional persistency manager of a read intention for the given persistent instance.
Parameters:
  sp - is the PersistentObjectItf which the read access is requested.
Parameters:
  fields - the ids of the fields that may be accessed by the callerof this method. If the i-th bit of 'fields' is set to 1, then the i-thfield of the given speedo accessor may be accessed by the caller of thismethod.



removeNamedQuery
final public QueryDefinition removeNamedQuery(String name)(Code)



setCachePolicy
public void setCachePolicy(byte v)(Code)



setFieldLockingLevel
public void setFieldLockingLevel(boolean val)(Code)



setPOManagerFactory
final public void setPOManagerFactory(POManagerFactoryItf _pmf)(Code)
It assignes a PersistenceManagerFactory
Parameters:
  _pmf - is the PersistenceManagerFactory which represents the datasupport inside which the po is persistent.



setPrefetchOnExtent
public void setPrefetchOnExtent(boolean prefetch)(Code)



setPrefetchOnGenClass
public void setPrefetchOnGenClass(boolean prefetch)(Code)



setPrefetchOnQuery
public void setPrefetchOnQuery(boolean prefetch)(Code)



setShareable
public void setShareable(boolean v)(Code)



setTransactionalPersistenceManager
final public void setTransactionalPersistenceManager(TransactionalPersistenceManager _tpm)(Code)
It assignes a TransactionalPersistenceManager
Parameters:
  _tpm - is the TransactionalPersistenceManager which manage theconcurrency, loading, ... of the po.



userCacheEntryUnbound
public void userCacheEntryUnbound(Object oid)(Code)



writeIntention
final public StateItf writeIntention(PersistentObjectItf sp, long[] fields)(Code)



writeIntention
public StateItf writeIntention(PersistentObjectItf sp, long[] fields, Object thinLock)(Code)
Notifies the transactional persistency manager of a write intention for the given persistent instance.
Parameters:
  sp - is the PersistentObjectItf which the write access is requested.
Parameters:
  fields - the ids of the fields that may be accessed by the callerof this method. If the i-th bit of 'fields' is set to 1, then the i-thfield of the given speedo accessor may be accessed by the caller of thismethod.



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.