Java Doc for RecordHandle.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » store » raw » 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 DBMS » db derby 10.2 » org.apache.derby.iapi.store.raw 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.iapi.store.raw.RecordHandle

All known Subclasses:   org.apache.derby.impl.store.raw.data.RecordId,
RecordHandle
public interface RecordHandle extends Lockable(Code)
A handle to a record within a container. This interface does not provide an information about the data of the record, it is only used to perform updates, deletes and allow ordered record manipulation. MT - immutable
See Also:   Page


Field Summary
final public static  intDEALLOCATE_PROTECTION_HANDLE
     A lock with this recordHandle protects this deallocated page from being freed and reallocated.
final public static  intFIRST_RECORD_ID
     First recordId that is used to identify a record.
final public static  intINVALID_RECORD_HANDLE
    
final public static  intPREVIOUS_KEY_HANDLE
     A lock with this recordHandle is used to lock the range of keys between the first key in a btree and keys previous to it.
final public static  intRECORD_ID_PROTECTION_HANDLE
     A lock with this recordHandle protects all the recordIds in the page. No recordId can disappear while this lock is held.
final public static  intRESERVED4_RECORD_HANDLE
    
final public static  intRESERVED5_RECORD_HANDLE
    


Method Summary
public  ContainerKeygetContainerId()
     Return the identity of my container.
public  intgetId()
     Obtain the page-unique identifier for this record.
public  ObjectgetPageId()
     Return the identity of my Page.
public  longgetPageNumber()
     Obtain the page number this record lives on.
public  intgetSlotNumberHint()
     What slot number might the record be at?

The raw store guarantees that the record handle of a record will not change, but it's slot number may.


Field Detail
DEALLOCATE_PROTECTION_HANDLE
final public static int DEALLOCATE_PROTECTION_HANDLE(Code)
A lock with this recordHandle protects this deallocated page from being freed and reallocated. This lock is released when the transaction that deallocated the page terminates, at which point the page can be freed if the transaction committed.



FIRST_RECORD_ID
final public static int FIRST_RECORD_ID(Code)
First recordId that is used to identify a record.



INVALID_RECORD_HANDLE
final public static int INVALID_RECORD_HANDLE(Code)
An invalid record handle



PREVIOUS_KEY_HANDLE
final public static int PREVIOUS_KEY_HANDLE(Code)
A lock with this recordHandle is used to lock the range of keys between the first key in a btree and keys previous to it.



RECORD_ID_PROTECTION_HANDLE
final public static int RECORD_ID_PROTECTION_HANDLE(Code)
A lock with this recordHandle protects all the recordIds in the page. No recordId can disappear while this lock is held. New recordIds may appear while this lock is held.



RESERVED4_RECORD_HANDLE
final public static int RESERVED4_RECORD_HANDLE(Code)
Reserve for future use - name it and define it when you have a need to use one



RESERVED5_RECORD_HANDLE
final public static int RESERVED5_RECORD_HANDLE(Code)





Method Detail
getContainerId
public ContainerKey getContainerId()(Code)
Return the identity of my container.



getId
public int getId()(Code)
Obtain the page-unique identifier for this record. This id combined with a page number is guaranteed to be unique within a container.



getPageId
public Object getPageId()(Code)
Return the identity of my Page.



getPageNumber
public long getPageNumber()(Code)
Obtain the page number this record lives on.



getSlotNumberHint
public int getSlotNumberHint()(Code)
What slot number might the record be at?

The raw store guarantees that the record handle of a record will not change, but it's slot number may. An implementation of a record handle may provide a hint of the slot number, which may help routines like Page.getSlotNumber() perform better.

If an implementation does not track slot numbers at all the implementation should just always return Page.FIRST_SLOT_NUMBER. The slot number the record handle may be at.




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