Java Doc for MemoryInstanceManagerImpl.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.MemoryInstanceManagerImpl

MemoryInstanceManagerImpl
public class MemoryInstanceManagerImpl implements MemoryInstanceManager,MemoryInstanceManagerAttribute,StateManager,CacheEntryFactory,BindingController(Code)
This class is an implementation of the MemoryInstanceManager provided by the persistence framwork availlable in perseus. This implementation depends on the identifier used, and the way to instanciate user objects. This implementation supports only the jorm object identifier: PName. This implementation supports also the instanciation of the Jorm generic class. To do this it is needed to specify for each jorm generic class used the name of the class which must be instanciated. This configuration is done via the GenClassNames attribute. This implementation does not used a pool, then the instance are created at each newInstance call.
author:
   S.Chassande-Barrioz


Field Summary
final public static  StringJORM_FACTORY_BINDING
    
protected  JormFactoryjf
    
protected  Loggerlogger
    
protected  Personalitypersonality
    

Constructor Summary
public  MemoryInstanceManagerImpl()
    

Method Summary
public  voidbindFc(String s, Object o)
    
public  FixableCacheEntrycreate(Object id, Object obj)
     binds the PersistentObjectItf to its identifier (PName) if it does not have already one.
public  StatecreateState(CacheEntry ce)
    
public  StatecreateState(State s)
    
public  voiddestroyState(State state)
    
public  voidentryBound(CacheEvent event)
    
public  voidentryUnbound(CacheEvent event)
    
public  intgetCachingStrategy(Object o)
    
public  StringgetGenClassNames()
    
public  PersonalitygetPersonality()
    
public  StategetReferenceState(CacheEntry ce)
    
public  booleanisBound(CacheEntry ce)
    
public  booleanisDirty(State state)
    
public  booleanisExported(State state)
    
public  booleanisFlushed(State state)
    
public  booleanisObjectSharing(Object o)
    
public  booleanisToMerge(State state)
    
public  booleanisUnexported(State state)
    
public  String[]listFc()
    
public  ObjectlookupFc(String s)
    
public  voidmakeBound(CacheEntry ce, Object oid)
    
public  voidmakeClean(State state)
    
public  voidmakeDirty(State state)
    
public  voidmakeExported(State state)
    
public  voidmakeFlushed(State state)
    
public  voidmakeToMerge(State state, Object thinLock)
    
public  voidmakeUnbound(CacheEntry ce)
    
public  voidmakeUnexported(State state)
    
public  Statemerge(State oldState, State newState)
    
public  ObjectnewInstance(Object oid, ConnectionHolder context)
    
public  voidsetGenClassNames(String gcname)
     It assignes a description of the gen class names.
public  voidsetPersonality(Personality p)
    
public  voidsetReferenceState(CacheEntry ce, State state)
    
public  voidstateNoMoreUsed(State state)
    
public  voidunbindFc(String s)
    

Field Detail
JORM_FACTORY_BINDING
final public static String JORM_FACTORY_BINDING(Code)



jf
protected JormFactory jf(Code)



logger
protected Logger logger(Code)



personality
protected Personality personality(Code)




Constructor Detail
MemoryInstanceManagerImpl
public MemoryInstanceManagerImpl()(Code)




Method Detail
bindFc
public void bindFc(String s, Object o)(Code)



create
public FixableCacheEntry create(Object id, Object obj)(Code)
binds the PersistentObjectItf to its identifier (PName) if it does not have already one.
Parameters:
  id - is the PName of the PersistentObjectItf
Parameters:
  obj - is the PersistentObjectItf instance added into the cache the PersistentObjectItf instance



createState
public State createState(CacheEntry ce)(Code)



createState
public State createState(State s)(Code)



destroyState
public void destroyState(State state)(Code)



entryBound
public void entryBound(CacheEvent event)(Code)

Parameters:
  event -



entryUnbound
public void entryUnbound(CacheEvent event)(Code)

Parameters:
  event -



getCachingStrategy
public int getCachingStrategy(Object o)(Code)



getGenClassNames
public String getGenClassNames()(Code)
a String describing the genclass names with the following format:"(jorm_name,java_name),(jorm_name,java_name),(jorm_name,java_name)}"



getPersonality
public Personality getPersonality()(Code)



getReferenceState
public State getReferenceState(CacheEntry ce)(Code)



isBound
public boolean isBound(CacheEntry ce)(Code)



isDirty
public boolean isDirty(State state)(Code)



isExported
public boolean isExported(State state)(Code)



isFlushed
public boolean isFlushed(State state)(Code)



isObjectSharing
public boolean isObjectSharing(Object o)(Code)



isToMerge
public boolean isToMerge(State state)(Code)



isUnexported
public boolean isUnexported(State state)(Code)



listFc
public String[] listFc()(Code)



lookupFc
public Object lookupFc(String s)(Code)



makeBound
public void makeBound(CacheEntry ce, Object oid)(Code)



makeClean
public void makeClean(State state)(Code)



makeDirty
public void makeDirty(State state)(Code)



makeExported
public void makeExported(State state)(Code)



makeFlushed
public void makeFlushed(State state)(Code)



makeToMerge
public void makeToMerge(State state, Object thinLock)(Code)



makeUnbound
public void makeUnbound(CacheEntry ce)(Code)



makeUnexported
public void makeUnexported(State state)(Code)



merge
public State merge(State oldState, State newState)(Code)



newInstance
public Object newInstance(Object oid, ConnectionHolder context) throws PersistenceException(Code)
It creates an instance since an identifier
Parameters:
  oid - is the identifier of the futur object a memory instance



setGenClassNames
public void setGenClassNames(String gcname)(Code)
It assignes a description of the gen class names.
Parameters:
  gcname - is the desciption which must follow this format:"(jorm_name,java_name),(jorm_name,java_name),(jorm_name,java_name)}"



setPersonality
public void setPersonality(Personality p)(Code)



setReferenceState
public void setReferenceState(CacheEntry ce, State state)(Code)



stateNoMoreUsed
public void stateNoMoreUsed(State state)(Code)



unbindFc
public void unbindFc(String s)(Code)



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.