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


org.objectweb.speedo.mim.api.HomeItf

All known Subclasses:   org.objectweb.speedo.mim.lib.AbstractHomeImpl,
HomeItf
public interface HomeItf extends PClassMapping,UserCacheManager,Loggable(Code)
It defines a home for a persitent class. Homes manage some properties (detacheable, cacheable, prefetch on query, prefetch on extent, ...) and some features (the user cache, named queries). It references the TPM, the PMF.
author:
   S.Chassande-Barrioz


Field Summary
 byteALL
    
 byteCACHED
    
 byteFIXED
    
 byteNO_CACHE
    
 intPOST_ATTACH
    
 intPOST_CLEAR
    
 intPOST_CREATE
    
 intPOST_DELETE
    
 intPOST_DETACH
    
 intPOST_DIRTY
    
 intPOST_LOAD
    
 intPOST_NEW
    
 intPOST_REMOVE
    
 intPOST_UPDATE
    
 intPRE_ATTACH
    
 intPRE_CLEAR
    
 intPRE_CREATE
    
 intPRE_DELETE
    
 intPRE_DETACH
    
 intPRE_DIRTY
    
 intPRE_NEW
    
 intPRE_REMOVE
    
 intPRE_UPDATE
    


Method Summary
 voidaddInstanceLifeCycleListener(Object listener)
    
 QueryDefinitionaddNamedQuery(String name, QueryDefinition query)
    
 booleanallLoaded()
    
 voidattachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, StateItf sa)
    
 PersistentObjectItfdetachCopy(PersistentObjectItf sp, POManagerItf pm, Map map, Object clone, Collection fgHints)
    
 PropertiesgetClassProperties()
    
 QueryDefinitiongetNamedQuery(String name)
     Retrieves a query defintion from its name.
 POManagerFactoryItfgetPOManagerFactory()
    
 StringgetPath()
    
 booleangetPrefetchOnExtent()
    
 booleangetPrefetchOnGenClass()
    
 booleangetPrefetchOnQuery()
    
 StringgetProjectName()
    
 StateItfgetState(PersistentObjectItf sp)
    
 TransactionalPersistenceManagergetTransactionalPersistenceManager()
     the TransactionalPersistenceManager which manages theconcurrency, loading, caching ...
 bytegetVersioningStrategy()
     The versioning strategy.
 booleanhasInstanceLifeCycleListeners()
    
 booleanhasToFix()
    
 voidinitSH()
    
 booleanisCacheable()
     Indicates if the state of persistent instance managed by this home, are kept between two transaction.
 booleanisDetachable()
    
 booleanisFieldLockingLevel()
     Indicates if the locking level must be the field.
 booleanisShareable()
    
 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.
 voidremoveInstanceLifeCycleListener(Object listener)
    
 QueryDefinitionremoveNamedQuery(String name)
    
 voidsendEvent(int eventType, Object source, Object target)
    
 voidsetCachePolicy(byte v)
     Permit to Indicate if the state of persistent instance managed by this home, are kept between two transaction.
 voidsetFieldLockingLevel(boolean val)
     Permits to Indicate if the locking level must be the field.
 voidsetPOManagerFactory(POManagerFactoryItf _pmf)
    
 voidsetPrefetchOnExtent(boolean prefetch)
     Indicates if the prefetching must be activated on extents when they return instance corresponding to this home.
 voidsetPrefetchOnGenClass(boolean prefetch)
     Indicates if the prefetching must be activated genclass loading.
 voidsetPrefetchOnQuery(boolean prefetch)
     Indicates if the prefetching must be activated on queries when they return instance corresponding to this home.
 voidsetShareable(boolean v)
    
 voidsetTransactionalPersistenceManager(TransactionalPersistenceManager _tpm)
     It assignes a TransactionalPersistenceManager
Parameters:
  _tpm - is the TransactionalPersistenceManager which manage theconcurrency, loading, ...
 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.
 StateItfwriteIntention(PersistentObjectItf sp, long[] fields)
    

Field Detail
ALL
byte ALL(Code)



CACHED
byte CACHED(Code)



FIXED
byte FIXED(Code)



NO_CACHE
byte NO_CACHE(Code)



POST_ATTACH
int POST_ATTACH(Code)



POST_CLEAR
int POST_CLEAR(Code)



POST_CREATE
int POST_CREATE(Code)



POST_DELETE
int POST_DELETE(Code)



POST_DETACH
int POST_DETACH(Code)



POST_DIRTY
int POST_DIRTY(Code)



POST_LOAD
int POST_LOAD(Code)



POST_NEW
int POST_NEW(Code)



POST_REMOVE
int POST_REMOVE(Code)



POST_UPDATE
int POST_UPDATE(Code)



PRE_ATTACH
int PRE_ATTACH(Code)



PRE_CLEAR
int PRE_CLEAR(Code)



PRE_CREATE
int PRE_CREATE(Code)



PRE_DELETE
int PRE_DELETE(Code)



PRE_DETACH
int PRE_DETACH(Code)



PRE_DIRTY
int PRE_DIRTY(Code)



PRE_NEW
int PRE_NEW(Code)



PRE_REMOVE
int PRE_REMOVE(Code)



PRE_UPDATE
int PRE_UPDATE(Code)





Method Detail
addInstanceLifeCycleListener
void addInstanceLifeCycleListener(Object listener)(Code)



addNamedQuery
QueryDefinition addNamedQuery(String name, QueryDefinition query)(Code)
Defines a named query
Parameters:
  name - is the name identifying the query
Parameters:
  query - is the definition of the query the old query definition corresponding to the name, if itexisted one.



allLoaded
boolean allLoaded()(Code)



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



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



getClassProperties
Properties getClassProperties()(Code)



getNamedQuery
QueryDefinition getNamedQuery(String name)(Code)
Retrieves a query defintion from its name. If the name is not known, the null value is returned.
Parameters:
  name - is the name the wanted query definition



getPOManagerFactory
POManagerFactoryItf getPOManagerFactory()(Code)
the PersistenceManagerFactory representing the data supportwhere the po is persistent.



getPath
String getPath()(Code)



getPrefetchOnExtent
boolean getPrefetchOnExtent()(Code)



getPrefetchOnGenClass
boolean getPrefetchOnGenClass()(Code)



getPrefetchOnQuery
boolean getPrefetchOnQuery()(Code)



getProjectName
String getProjectName()(Code)



getState
StateItf getState(PersistentObjectItf sp)(Code)



getTransactionalPersistenceManager
TransactionalPersistenceManager getTransactionalPersistenceManager()(Code)
the TransactionalPersistenceManager which manages theconcurrency, loading, caching ... of the proxies.



getVersioningStrategy
byte getVersioningStrategy()(Code)
The versioning strategy.
See Also:   org.objectweb.speedo.metadata.SpeeedoVersion.DATE_TIME
See Also:   
See Also:   org.objectweb.speedo.metadata.SpeeedoVersion.STATE_COMPARISON
See Also:   
See Also:   org.objectweb.speedo.metadata.SpeeedoVersion.VERSION_NUMBER
See Also:    NO_VERSION



hasInstanceLifeCycleListeners
boolean hasInstanceLifeCycleListeners()(Code)



hasToFix
boolean hasToFix()(Code)



initSH
void initSH()(Code)



isCacheable
boolean isCacheable()(Code)
Indicates if the state of persistent instance managed by this home, are kept between two transaction. true means the state is kept between transaction.



isDetachable
boolean isDetachable()(Code)
Indicates if the class has been marked as detacheable



isFieldLockingLevel
boolean isFieldLockingLevel()(Code)
Indicates if the locking level must be the field. A false value (default) means the locking level has to be done at instance level.



isShareable
boolean isShareable()(Code)



readIntention
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.



removeInstanceLifeCycleListener
void removeInstanceLifeCycleListener(Object listener)(Code)



removeNamedQuery
QueryDefinition removeNamedQuery(String name)(Code)
Remove a named query
Parameters:
  name - is the name of the query definition to remove the removed query definition (null if not found)



sendEvent
void sendEvent(int eventType, Object source, Object target)(Code)



setCachePolicy
void setCachePolicy(byte v)(Code)
Permit to Indicate if the state of persistent instance managed by this home, are kept between two transaction.



setFieldLockingLevel
void setFieldLockingLevel(boolean val)(Code)
Permits to Indicate if the locking level must be the field. A false value (default) means the locking level has to be done at instance level.



setPOManagerFactory
void setPOManagerFactory(POManagerFactoryItf _pmf)(Code)
It assignes a PersistenceManagerFactory
Parameters:
  _pmf - is the PersistenceManagerFactory representing the data support where the po is persistent.



setPrefetchOnExtent
void setPrefetchOnExtent(boolean prefetch)(Code)
Indicates if the prefetching must be activated on extents when they return instance corresponding to this home.



setPrefetchOnGenClass
void setPrefetchOnGenClass(boolean prefetch)(Code)
Indicates if the prefetching must be activated genclass loading. This method is only applicable for gen class home.



setPrefetchOnQuery
void setPrefetchOnQuery(boolean prefetch)(Code)
Indicates if the prefetching must be activated on queries when they return instance corresponding to this home.



setShareable
void setShareable(boolean v)(Code)



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



writeIntention
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.
Parameters:
  thinLock - permits to allocate a lock on only a part of the resource. The locking size is thinner than a lock on the persistent object entirely. This parameter can be typically used to lock at the field or the genclass element levels.



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



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