Java Doc for Level2Cache.java in  » Database-ORM » JPOX » org » jpox » cache » 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 » JPOX » org.jpox.cache 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jpox.cache.Level2Cache

All known Subclasses:   org.jpox.cache.NullLevel2Cache,  org.jpox.cache.DefaultLevel2Cache,
Level2Cache
public interface Level2Cache (Code)
Interface for any Level 2 Cache used by JPOX. Provides the typical controls required by JPOX itself and including the JDO2 DataStoreCache methods.
version:
   $Revision: 1.7 $

Inner Class :class PinnedClass



Method Summary
 voidclear()
     Method to clear the cache.
 booleancontainsOid(Object oid)
    
 voidevict(Object oid)
     Evict the parameter instance from the second-level cache.
 voidevictAll()
     Evict the parameter instances from the second-level cache.
 voidevictAll(Object[] oids)
     Evict the parameter instances from the second-level cache.
 voidevictAll(Collection oids)
     Evict the parameter instances from the second-level cache.
 voidevictAll(Class pcClass, boolean subclasses)
     Evict the parameter instances from the second-level cache.
 CachedPCget(Object oid)
     Accessor for an object from the cache.
 intgetNumberOfPinnedObjects()
     Accessor for the number of pinned objects in the cache.
 intgetNumberOfUnpinnedObjects()
     Accessor for the number of unpinned objects in the cache.
 intgetSize()
     Accessor for the total number of objects in the L2 cache.
 booleanisEmpty()
     Accessor for whether the cache is empty.
 voidpin(Object oid)
     Pin the parameter instance in the second-level cache.
 voidpinAll(Collection oids)
     Pin the parameter instances in the second-level cache.
 voidpinAll(Object[] oids)
     Pin the parameter instances in the second-level cache.
 voidpinAll(Class pcClass, boolean subclasses)
     Pin instances in the second-level cache.
 CachedPCput(Object oid, CachedPC pc)
     Method to put an object in the cache.
 voidunpin(Object oid)
     Unpin the parameter instance from the second-level cache.
 voidunpinAll(Collection oids)
     Unpin the parameter instances from the second-level cache.
 voidunpinAll(Object[] oids)
     Unpin the parameter instance from the second-level cache.
 voidunpinAll(Class pcClass, boolean subclasses)
     Unpin instances from the second-level cache.



Method Detail
clear
void clear()(Code)
Method to clear the cache.



containsOid
boolean containsOid(Object oid)(Code)
Accessor for whether an object with the specified id is in the cache
Parameters:
  oid - The object id Whether it is in the cache



evict
void evict(Object oid)(Code)
Evict the parameter instance from the second-level cache.
Parameters:
  oid - the object id of the instance to evict.



evictAll
void evictAll()(Code)
Evict the parameter instances from the second-level cache. All instances in the PersistenceManager's cache are evicted from the second-level cache.



evictAll
void evictAll(Object[] oids)(Code)
Evict the parameter instances from the second-level cache.
Parameters:
  oids - the object ids of the instance to evict.



evictAll
void evictAll(Collection oids)(Code)
Evict the parameter instances from the second-level cache.
Parameters:
  oids - the object ids of the instance to evict.



evictAll
void evictAll(Class pcClass, boolean subclasses)(Code)
Evict the parameter instances from the second-level cache.
Parameters:
  pcClass - the class of instances to evict
Parameters:
  subclasses - if true, evict instances of subclasses also



get
CachedPC get(Object oid)(Code)
Accessor for an object from the cache.
Parameters:
  oid - The Object ID The L2 cacheable object



getNumberOfPinnedObjects
int getNumberOfPinnedObjects()(Code)
Accessor for the number of pinned objects in the cache. Number of pinned objects



getNumberOfUnpinnedObjects
int getNumberOfUnpinnedObjects()(Code)
Accessor for the number of unpinned objects in the cache. Number of unpinned objects



getSize
int getSize()(Code)
Accessor for the total number of objects in the L2 cache. Number of objects



isEmpty
boolean isEmpty()(Code)
Accessor for whether the cache is empty. Whether it is empty.



pin
void pin(Object oid)(Code)
Pin the parameter instance in the second-level cache.
Parameters:
  oid - the object id of the instance to pin.



pinAll
void pinAll(Collection oids)(Code)
Pin the parameter instances in the second-level cache.
Parameters:
  oids - the object ids of the instances to pin.



pinAll
void pinAll(Object[] oids)(Code)
Pin the parameter instances in the second-level cache.
Parameters:
  oids - the object ids of the instances to pin.



pinAll
void pinAll(Class pcClass, boolean subclasses)(Code)
Pin instances in the second-level cache.
Parameters:
  pcClass - the class of instances to pin
Parameters:
  subclasses - if true, pin instances of subclasses also



put
CachedPC put(Object oid, CachedPC pc)(Code)
Method to put an object in the cache.
Parameters:
  oid - The Object id for this object
Parameters:
  pc - The L2 cacheable PersistenceCapable object The value previously associated with this oid



unpin
void unpin(Object oid)(Code)
Unpin the parameter instance from the second-level cache.
Parameters:
  oid - the object id of the instance to unpin.



unpinAll
void unpinAll(Collection oids)(Code)
Unpin the parameter instances from the second-level cache.
Parameters:
  oids - the object ids of the instance to evict.



unpinAll
void unpinAll(Object[] oids)(Code)
Unpin the parameter instance from the second-level cache.
Parameters:
  oids - the object id of the instance to evict.



unpinAll
void unpinAll(Class pcClass, boolean subclasses)(Code)
Unpin instances from the second-level cache.
Parameters:
  pcClass - the class of instances to unpin
Parameters:
  subclasses - if true, unpin instances of subclasses also



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