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


org.apache.derby.impl.store.access.conglomerate.GenericConglomerateController
   org.apache.derby.impl.store.access.heap.HeapController

HeapController
public class HeapController extends GenericConglomerateController implements ConglomerateController(Code)




Method Summary
final protected  voidgetRowPositionFromRowLocation(RowLocation row_loc, RowPosition pos)
    
protected  PagegetUserPageNoWait(long pageno)
    
protected  PagegetUserPageWait(long pageno)
    
public  intinsert(DataValueDescriptor[] row)
    
public  voidinsertAndFetchLocation(DataValueDescriptor[] row, RowLocation templateRowLocation)
    
protected  longload(TransactionManager xact_manager, Heap heap, boolean createConglom, RowLocationRetRowSource rowSource)
    
protected  booleanlockRow(RecordHandle rh, int lock_oper, boolean wait, int lock_duration)
    
public  booleanlockRow(RowLocation loc, int lock_operation, boolean wait, int lock_duration)
     Lock the given row location.
public  booleanlockRow(long page_num, int record_id, int lock_operation, boolean wait, int lock_duration)
     Lock the given record id/page num pair.

Should only be called by access, to lock "special" locks formed from the Recordhandle.* reserved constants for page specific locks.

This call can be made on a ConglomerateController that was opened for locking only.

RESOLVE (mikem) - move this call to ConglomerateManager so it is obvious that non-access clients should not call this. true if lock was granted, only can be false if wait was false.
Parameters:
  page_num - Page number of row to lock.
Parameters:
  record_id - Record id of row on page_num to lock.
Parameters:
  lock_operation - Desc of what to lock for, ie.

protected  booleanlockRowAtSlotNoWaitExclusive(RecordHandle rh)
    
public  RowLocationnewRowLocationTemplate()
    
final protected  booleanpurgeCommittedDeletes(Page page)
     Check and purge committed deleted rows on a page.

true, if no purging has been done on page, and thus latchcan be released before end transaction.

protected  voidqueueDeletePostCommitWork(RowPosition pos)
    
protected  voidremovePage(Page page)
    
public  voidunlockRowAfterRead(RowLocation loc, boolean forUpdate, boolean row_qualified)
     UnLock the given row location.



Method Detail
getRowPositionFromRowLocation
final protected void getRowPositionFromRowLocation(RowLocation row_loc, RowPosition pos) throws StandardException(Code)
Protected concrete impl of abstract methods of GenericConglomerateController class:



getUserPageNoWait
protected Page getUserPageNoWait(long pageno) throws StandardException(Code)



getUserPageWait
protected Page getUserPageWait(long pageno) throws StandardException(Code)



insert
public int insert(DataValueDescriptor[] row) throws StandardException(Code)
Public Methods of This class:



insertAndFetchLocation
public void insertAndFetchLocation(DataValueDescriptor[] row, RowLocation templateRowLocation) throws StandardException(Code)



load
protected long load(TransactionManager xact_manager, Heap heap, boolean createConglom, RowLocationRetRowSource rowSource) throws StandardException(Code)



lockRow
protected boolean lockRow(RecordHandle rh, int lock_oper, boolean wait, int lock_duration) throws StandardException(Code)



lockRow
public boolean lockRow(RowLocation loc, int lock_operation, boolean wait, int lock_duration) throws StandardException(Code)
Lock the given row location.

Should only be called by access.

This call can be made on a ConglomerateController that was opened for locking only.

RESOLVE (mikem) - move this call to ConglomerateManager so it is obvious that non-access clients should not call this. true if lock was granted, only can be false if wait was false.
Parameters:
  loc - The "RowLocation" which describes the exact row to lock.
Parameters:
  wait - Should the lock call wait to be granted?
exception:
  StandardException - Standard exception policy.




lockRow
public boolean lockRow(long page_num, int record_id, int lock_operation, boolean wait, int lock_duration) throws StandardException(Code)
Lock the given record id/page num pair.

Should only be called by access, to lock "special" locks formed from the Recordhandle.* reserved constants for page specific locks.

This call can be made on a ConglomerateController that was opened for locking only.

RESOLVE (mikem) - move this call to ConglomerateManager so it is obvious that non-access clients should not call this. true if lock was granted, only can be false if wait was false.
Parameters:
  page_num - Page number of row to lock.
Parameters:
  record_id - Record id of row on page_num to lock.
Parameters:
  lock_operation - Desc of what to lock for, ie. update, insert ...
Parameters:
  wait - Should the lock call wait to be granted?
exception:
  StandardException - Standard exception policy.




lockRowAtSlotNoWaitExclusive
protected boolean lockRowAtSlotNoWaitExclusive(RecordHandle rh) throws StandardException(Code)



newRowLocationTemplate
public RowLocation newRowLocationTemplate() throws StandardException(Code)



purgeCommittedDeletes
final protected boolean purgeCommittedDeletes(Page page) throws StandardException(Code)
Check and purge committed deleted rows on a page.

true, if no purging has been done on page, and thus latchcan be released before end transaction. Otherwise the latchon the page can not be released before commit.
Parameters:
  page - A non-null, latched page must be passed in. If allrows on page are purged, then page will be removed andlatch released.
exception:
  StandardException - Standard exception policy.




queueDeletePostCommitWork
protected void queueDeletePostCommitWork(RowPosition pos) throws StandardException(Code)



removePage
protected void removePage(Page page) throws StandardException(Code)



unlockRowAfterRead
public void unlockRowAfterRead(RowLocation loc, boolean forUpdate, boolean row_qualified) throws StandardException(Code)
UnLock the given row location.

Should only be called by access.

This call can be made on a ConglomerateController that was opened for locking only.

RESOLVE (mikem) - move this call to ConglomerateManager so it is obvious that non-access clients should not call this.
Parameters:
  loc - The "RowLocation" which describes the row to unlock.
Parameters:
  forUpdate - Row was previously Locked the record for read or update.
exception:
  StandardException - Standard exception policy.




Methods inherited from org.apache.derby.impl.store.access.conglomerate.GenericConglomerateController
public void close() throws StandardException(Code)(Java Doc)
public boolean closeForEndTransaction(boolean closeHeldScan) throws StandardException(Code)(Java Doc)
public boolean delete(RowLocation loc) throws StandardException(Code)(Java Doc)
public boolean fetch(RowLocation loc, DataValueDescriptor[] row, FormatableBitSet validColumns) throws StandardException(Code)(Java Doc)
public boolean fetch(RowLocation loc, DataValueDescriptor[] row, FormatableBitSet validColumns, boolean waitForLock) throws StandardException(Code)(Java Doc)
public boolean replace(RowLocation loc, DataValueDescriptor[] row, FormatableBitSet validColumns) throws StandardException(Code)(Java Doc)

w__w__w._j_a__va__2__s___._c___o__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.