Java Doc for LocalPMCache.java in  » Testing » PolePosition-0.20 » com » versant » core » jdo » 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 » Testing » PolePosition 0.20 » com.versant.core.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.jdo.LocalPMCache

LocalPMCache
final public class LocalPMCache (Code)
This is an implementation PM managed cache that uses a linked list to reference the colisions in the collection.


Field Summary
final static  intDEFAULT_INITIAL_CAPACITY
     The default initial capacity - MUST be a power of two.
final static  floatDEFAULT_LOAD_FACTOR
     The load factor used when none specified in constructor.
final static  intMAXIMUM_CAPACITY
     The maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments.
final  floatloadFactor
     The load factor for the hash table.
public  ReferenceQueuequeue
    
transient  intsize
     The number of key-value mappings contained in this identity hash map.
 intthreshold
     The next size value at which to resize (capacity * load factor).

Constructor Summary
public  LocalPMCache()
    
public  LocalPMCache(int initialCapacity)
    
public  LocalPMCache(int initialCapacity, float loadFactor)
    

Method Summary
public  PCStateManadd(PCStateMan sm)
     Add a newly created sm to the managed cache.
public  PCStateManadd(OID oid, State state, PCStateMan[] sms)
    
public  PCStateManaddForProcessing(PCStateMan sm)
     Add to the head of the processList.
public  voidaddRealOID(PCStateMan sm)
     This add the real oid of the NewOID to the mapping.
public  PCStateManaddSm(OID key, PCStateMan value)
     This method does not replace the PCStateMan if the OID is present.
protected  PCStateManaddState(OID key, State value, boolean manage, PCStateMan[] addSm)
     If the instance for this oid is already managed then it will be updated with the state information.
public  voidaddStateOnly(OID oid, State state)
     Provide the oid-state pair to local cache.
public  voidcheckModelConsistency()
    
public static  voidcheckRefType(int currentRefType)
    
public  voidclear()
    
public  booleancontains(OID oid)
     Do we have a State or PCStateMan for the oid? Note the data may be evicted at any time depending on the reference type.
public  PMCacheEntrycreateCacheKey(PCStateMan sm)
     This must create a CacheEntryBase for the sm.
public  PMCacheEntrycreateCacheKey(OID oid, State state)
     This must create a CacheEntryBase for the sm.
public  voiddoCommit(boolean retainValues)
    
public  voiddoRefresh(boolean strict)
    
public  voiddoRollback(boolean retainValues)
    
public  voiddump()
    
static  booleaneq(OID x, OID y)
     Check for equality of non-null reference x and possibly-null y.
public  voidevict()
    
public  PCStateMangetByNewObjectOID(NewObjectOID oid)
     If the sm is already managed then return it.
public  PCStateMangetByOID(OID oid, boolean manage)
     If the sm is already managed then return it.
public  intgetCurrentRefType()
    
public  StategetStateByOID(OID oid)
     Return the state if present.
public  booleaninProcessList(PCStateMan sm)
    
static  intindexFor(int h, int length)
     Returns index for hash code h.
public  booleanisOverWriteMode()
    
public  voidprocessReferenceQueue()
     Process the ReferenceQueue holding keys for GCed values.
public  voidremove(PCStateMan sm)
    
public  voidsetCurrentRefType(int currentRefType)
    
public  voidsetInterceptDfgFieldAccess(boolean on)
    
public  voidsetOverWriteMode(boolean overWriteMode)
    
public  voidsetPm(VersantPersistenceManagerImp pm)
    
public  intsize()
    
 PCStateManupdateSm(State value, PCStateMan sm, OID key)
    

Field Detail
DEFAULT_INITIAL_CAPACITY
final static int DEFAULT_INITIAL_CAPACITY(Code)
The default initial capacity - MUST be a power of two.



DEFAULT_LOAD_FACTOR
final static float DEFAULT_LOAD_FACTOR(Code)
The load factor used when none specified in constructor.



MAXIMUM_CAPACITY
final static int MAXIMUM_CAPACITY(Code)
The maximum capacity, used if a higher value is implicitly specified by either of the constructors with arguments. MUST be a power of two <= 1<<30.



loadFactor
final float loadFactor(Code)
The load factor for the hash table.



queue
public ReferenceQueue queue(Code)
Reference queue for cleared WeakKeys



size
transient int size(Code)
The number of key-value mappings contained in this identity hash map.



threshold
int threshold(Code)
The next size value at which to resize (capacity * load factor).




Constructor Detail
LocalPMCache
public LocalPMCache()(Code)



LocalPMCache
public LocalPMCache(int initialCapacity)(Code)



LocalPMCache
public LocalPMCache(int initialCapacity, float loadFactor)(Code)




Method Detail
add
public PCStateMan add(PCStateMan sm)(Code)
Add a newly created sm to the managed cache.



add
public PCStateMan add(OID oid, State state, PCStateMan[] sms)(Code)



addForProcessing
public PCStateMan addForProcessing(PCStateMan sm)(Code)
Add to the head of the processList.



addRealOID
public void addRealOID(PCStateMan sm)(Code)
This add the real oid of the NewOID to the mapping.



addSm
public PCStateMan addSm(OID key, PCStateMan value)(Code)
This method does not replace the PCStateMan if the OID is present. If the mapping exist it will be verified. If the mapping does not exist it will be created.



addState
protected PCStateMan addState(OID key, State value, boolean manage, PCStateMan[] addSm)(Code)
If the instance for this oid is already managed then it will be updated with the state information. Else the instance will be managed with this state.



addStateOnly
public void addStateOnly(OID oid, State state)(Code)
Provide the oid-state pair to local cache. This will not result in a PCStateman being created.



checkModelConsistency
public void checkModelConsistency()(Code)



checkRefType
public static void checkRefType(int currentRefType)(Code)



clear
public void clear()(Code)



contains
public boolean contains(OID oid)(Code)
Do we have a State or PCStateMan for the oid? Note the data may be evicted at any time depending on the reference type.



createCacheKey
public PMCacheEntry createCacheKey(PCStateMan sm)(Code)
This must create a CacheEntryBase for the sm.



createCacheKey
public PMCacheEntry createCacheKey(OID oid, State state)(Code)
This must create a CacheEntryBase for the sm.



doCommit
public void doCommit(boolean retainValues)(Code)



doRefresh
public void doRefresh(boolean strict)(Code)



doRollback
public void doRollback(boolean retainValues)(Code)



dump
public void dump()(Code)



eq
static boolean eq(OID x, OID y)(Code)
Check for equality of non-null reference x and possibly-null y.



evict
public void evict()(Code)



getByNewObjectOID
public PCStateMan getByNewObjectOID(NewObjectOID oid)(Code)
If the sm is already managed then return it. If the oid and state is present then manage it and return it. Else return null. This looks up using the oid as is and does not assume that realOID has been set.



getByOID
public PCStateMan getByOID(OID oid, boolean manage)(Code)
If the sm is already managed then return it. If the oid and state is present then manage it and return it. Else return null.



getCurrentRefType
public int getCurrentRefType()(Code)



getStateByOID
public State getStateByOID(OID oid)(Code)
Return the state if present. This will not result in the PCStateMan being created if not currently managed.



inProcessList
public boolean inProcessList(PCStateMan sm)(Code)



indexFor
static int indexFor(int h, int length)(Code)
Returns index for hash code h.



isOverWriteMode
public boolean isOverWriteMode()(Code)



processReferenceQueue
public void processReferenceQueue()(Code)
Process the ReferenceQueue holding keys for GCed values.



remove
public void remove(PCStateMan sm)(Code)



setCurrentRefType
public void setCurrentRefType(int currentRefType)(Code)



setInterceptDfgFieldAccess
public void setInterceptDfgFieldAccess(boolean on)(Code)



setOverWriteMode
public void setOverWriteMode(boolean overWriteMode)(Code)



setPm
public void setPm(VersantPersistenceManagerImp pm)(Code)



size
public int size()(Code)
How many keys are in the cache?



updateSm
PCStateMan updateSm(State value, PCStateMan sm, OID key)(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.