Java Doc for AbstractResultCacheEntry.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » controller » cache » result » entries » 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 JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.controller.cache.result.entries 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.continuent.sequoia.controller.cache.result.entries.AbstractResultCacheEntry

All known Subclasses:   org.continuent.sequoia.controller.cache.result.entries.ResultCacheEntryNoCache,  org.continuent.sequoia.controller.cache.result.entries.ResultCacheEntryRelaxed,  org.continuent.sequoia.controller.cache.result.entries.ResultCacheEntryEager,
AbstractResultCacheEntry
abstract public class AbstractResultCacheEntry (Code)
A CacheEntry represents a SQL select request with its reponse. The cache entry can have 3 states:

  • CACHE_VALID when it is valid
  • CACHE_DIRTY when the result has been marked dirty (may be invalid)
  • CACHE_INVALID when there is no result (request has to be re-issued to the database)

author:
   Emmanuel Cecchet
version:
   1.0


Field Summary
final public static  intCACHE_DIRTY
    
final public static  intCACHE_INVALID
     This entry is no more valid and is not consistent with real data.
final public static  intCACHE_VALID
    
final public static  intNO_DEADLINE
    
protected  SelectRequestrequest
    
protected  ControllerResultSetresult
    
protected  intstate
    

Constructor Summary
public  AbstractResultCacheEntry(SelectRequest request, ControllerResultSet result)
     Creates a new CacheEntry instance.

Method Summary
public  AbstractResultCacheEntrygetNext()
     Gets the value of next AbstractResultCacheEntry in LRU.
public  AbstractResultCacheEntrygetPrev()
     Gets the value of previous AbstractResultCacheEntry in LRU.
public  SelectRequestgetRequest()
     Returns the SELECT request of this cache entry.
public  ControllerResultSetgetResult()
    
public  intgetSizeOfResult()
    
public  StringgetState()
    
abstract public  StringgetType()
    
abstract public  voidinvalidate()
     Invalidates this cache entry (removes the ResultSet and turn state to AbstractResultCacheEntry.CACHE_INVALID ).
public  booleanisDirty()
     Returns true if cache entry state is marked dirty (state is AbstractResultCacheEntry.CACHE_DIRTY ).
public  booleanisValid()
     Return true if cache entry state is valid (state is AbstractResultCacheEntry.CACHE_VALID ).
public  voidmarkDirty()
     Marks this entry dirty (state becomes AbstractResultCacheEntry.CACHE_DIRTY ).
public  voidsetNext(AbstractResultCacheEntry next)
     Sets the value of next AbstractResultCacheEntry in LRU.
public  voidsetPrev(AbstractResultCacheEntry prev)
     Sets the value of previous AbstractResultCacheEntry in LRU.
public  voidsetResult(ControllerResultSet result)
     Set a new ControllerResultSet of the cached select request (cache update).
public  voidsetValid()
     Marks this entry valid (state becomes AbstractResultCacheEntry.CACHE_VALID ).
abstract public  String[]toStringTable()
    

Field Detail
CACHE_DIRTY
final public static int CACHE_DIRTY(Code)
This entry is dirty



CACHE_INVALID
final public static int CACHE_INVALID(Code)
This entry is no more valid and is not consistent with real data.



CACHE_VALID
final public static int CACHE_VALID(Code)
State this entry is valid



NO_DEADLINE
final public static int NO_DEADLINE(Code)
This entry has no deadline



request
protected SelectRequest request(Code)



result
protected ControllerResultSet result(Code)



state
protected int state(Code)




Constructor Detail
AbstractResultCacheEntry
public AbstractResultCacheEntry(SelectRequest request, ControllerResultSet result)(Code)
Creates a new CacheEntry instance.
Parameters:
  request - a SelectRequest value
Parameters:
  result - a ControllerResultSet value




Method Detail
getNext
public AbstractResultCacheEntry getNext()(Code)
Gets the value of next AbstractResultCacheEntry in LRU. value of next.



getPrev
public AbstractResultCacheEntry getPrev()(Code)
Gets the value of previous AbstractResultCacheEntry in LRU. value of previous.



getRequest
public SelectRequest getRequest()(Code)
Returns the SELECT request of this cache entry. a SelectRequest value



getResult
public ControllerResultSet getResult()(Code)
Returns the ControllerResultSet of the cached select request a ControllerResultSet value



getSizeOfResult
public int getSizeOfResult()(Code)
Size of the result in bytes an integer



getState
public String getState()(Code)
Get the state of this entry as a string Valid or Dirty or Invalid



getType
abstract public String getType()(Code)
Get the type of this entry as a string NoCache or Eager or Relaxed



invalidate
abstract public void invalidate()(Code)
Invalidates this cache entry (removes the ResultSet and turn state to AbstractResultCacheEntry.CACHE_INVALID ).



isDirty
public boolean isDirty()(Code)
Returns true if cache entry state is marked dirty (state is AbstractResultCacheEntry.CACHE_DIRTY ). a boolean value



isValid
public boolean isValid()(Code)
Return true if cache entry state is valid (state is AbstractResultCacheEntry.CACHE_VALID ). a boolean value



markDirty
public void markDirty()(Code)
Marks this entry dirty (state becomes AbstractResultCacheEntry.CACHE_DIRTY ).

The ResultSet if not affected by this method.




setNext
public void setNext(AbstractResultCacheEntry next)(Code)
Sets the value of next AbstractResultCacheEntry in LRU.
Parameters:
  next - value to assign to next.



setPrev
public void setPrev(AbstractResultCacheEntry prev)(Code)
Sets the value of previous AbstractResultCacheEntry in LRU.
Parameters:
  prev - value to assign to prev.



setResult
public void setResult(ControllerResultSet result)(Code)
Set a new ControllerResultSet of the cached select request (cache update).

The cache state is automatically set to valid ( AbstractResultCacheEntry.CACHE_VALID ).
Parameters:
  result - a ControllerResultSet value




setValid
public void setValid()(Code)
Marks this entry valid (state becomes AbstractResultCacheEntry.CACHE_VALID ).



toStringTable
abstract public String[] toStringTable()(Code)
Get data about this entry an array [request,type,status(valid,notvalid,dirty),deadLine]



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)

w___w_w_.ja__v__a___2__s_.___co__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.