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


org.apache.derby.impl.store.raw.data.PageActions

All known Subclasses:   org.apache.derby.impl.store.raw.data.LoggableActions,  org.apache.derby.impl.store.raw.data.DirectActions,
PageActions
public interface PageActions (Code)




Method Summary
public  voidactionCopyRows(RawTransaction t, BasePage destPage, BasePage srcPage, int destSlot, int numRows, int srcSlot, int[] recordIds)
     Copy num_rows from srcPage into deestpage.
public  voidactionDelete(RawTransaction t, BasePage page, int slot, int recordId, boolean delete, LogicalUndo undo)
     Set the Delete status of the record at the given slot.
public  voidactionInitPage(RawTransaction t, BasePage page, int initFlag, int pageFormatId, long pageOffset)
     Initialize the page due to allocation.
public  intactionInsert(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, LogicalUndo undo, byte insertFlag, int startColumn, boolean isLongColumn, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, int overflowThreshold)
     Insert record at the given slot with this recordId.
public  voidactionInvalidatePage(RawTransaction t, BasePage page)
     Invalidate the page due to deallocation. Short one line description of routine.

Invalidate the page due to deallocation - this is the action on the page that is being deallocated as opposed to the action on the allocation page.


Parameters:
  t - The transaction
Parameters:
  page - that page to be invalidated
exception:
  StandardException - Standard Cloudscape policy.

public  voidactionPurge(RawTransaction t, BasePage page, int slot, int num_rows, int[] recordIds, boolean logData)
     Purge the record at the given slot.
public  voidactionShrinkReservedSpace(RawTransaction t, BasePage page, int slot, int recordId, int newValue, int oldValue)
     Shrink the reserved space to the new value.
public  intactionUpdate(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, RecordHandle headRowHandle)
     Update record at the given slot with this row.
public  voidactionUpdateField(RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object newValue, LogicalUndo undo)
     Update a field of the record at the given slot with this value.


MT - latched, page is latched when this methods is called.
Parameters:
  t - The transaction
Parameters:
  slot - the slot number of the record
Parameters:
  recordId - the recordID of the record
Parameters:
  fieldId - the fieldId of the value
Parameters:
  newValue - the new value for the field
Parameters:
  undo - if logical undo may be necessary, a function pointer to the access code where the logical undo logic resides.




Method Detail
actionCopyRows
public void actionCopyRows(RawTransaction t, BasePage destPage, BasePage srcPage, int destSlot, int numRows, int srcSlot, int[] recordIds) throws StandardException(Code)
Copy num_rows from srcPage into deestpage.

Longer descrption of routine.


Parameters:
  t - The transaction
Parameters:
  destPage - the destination page
Parameters:
  srcPage - the source page
Parameters:
  destSlot - starting slot # of destination page to copy to
Parameters:
  numRows - the number of rows to be copied
Parameters:
  srcSlot - starting slot number of source page to copy from
Parameters:
  recordIds - an array of record ids to use in the destination page
exception:
  StandardException - Standard Cloudscape policy.




actionDelete
public void actionDelete(RawTransaction t, BasePage page, int slot, int recordId, boolean delete, LogicalUndo undo) throws StandardException(Code)
Set the Delete status of the record at the given slot.

Subclass that implements this method has to call BasePage.setDeleteStatus to update the delete status on the in-memory slot table.


MT - latched, page is latched when this methods is called.
Parameters:
  t - The transaction
Parameters:
  page - the target page
Parameters:
  slot - the slot number of the record
Parameters:
  recordId - the recordID of the record
Parameters:
  delete - set the delete status to this value
Parameters:
  undo - logical undo logic if necessary
exception:
  StandardException - Standard Cloudscape error policy
See Also:   org.apache.derby.iapi.store.raw.Page.deleteAtSlot




actionInitPage
public void actionInitPage(RawTransaction t, BasePage page, int initFlag, int pageFormatId, long pageOffset) throws StandardException(Code)
Initialize the page due to allocation.

Initialize the page due to allocation - this page could be brand new or it could be being re-allocated.


Parameters:
  t - The transaction
Parameters:
  page - that page to be initialized
Parameters:
  initFlag - flags set to values in BasePage.INIT_PAGE_* which indicates how the new page is to beinitialized.
Parameters:
  pageFormatId - The format Id of the page being initialized.
exception:
  StandardException - Standard Cloudscape policy.




actionInsert
public int actionInsert(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, LogicalUndo undo, byte insertFlag, int startColumn, boolean isLongColumn, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, int overflowThreshold) throws StandardException(Code)
Insert record at the given slot with this recordId.


MT - latched, page is latched when this methods is called.
Parameters:
  t - The transaction
Parameters:
  slot - the slot number of the record
Parameters:
  recordId - the recordID of the record
Parameters:
  row - The storable row
Parameters:
  undo - if logical undo may be necessary, a function pointer to the access code where the logical undo logic resides. Null if logical undo is not necessary.
Parameters:
  insertFlag - see Page value for insertFlag
exception:
  StandardException - Standard Cloudscape error policy
See Also:   org.apache.derby.iapi.store.raw.Page.insertAtSlot




actionInvalidatePage
public void actionInvalidatePage(RawTransaction t, BasePage page) throws StandardException(Code)
Invalidate the page due to deallocation. Short one line description of routine.

Invalidate the page due to deallocation - this is the action on the page that is being deallocated as opposed to the action on the allocation page.


Parameters:
  t - The transaction
Parameters:
  page - that page to be invalidated
exception:
  StandardException - Standard Cloudscape policy.




actionPurge
public void actionPurge(RawTransaction t, BasePage page, int slot, int num_rows, int[] recordIds, boolean logData) throws StandardException(Code)
Purge the record at the given slot.

Subclass that implements this method has to remove the slot from the base page in-memory slot table (removeAndShiftDown).


MT - latched, page is latched when this methods is called.
Parameters:
  t - The transaction
Parameters:
  slot - the starting slot number of the record
Parameters:
  num_rows - how many rows to purge
Parameters:
  recordIds - the recordIDs of the record (an array of num_rows)
exception:
  StandardException - Standard Cloudscape error policy
See Also:   org.apache.derby.iapi.store.raw.Page.purgeAtSlot




actionShrinkReservedSpace
public void actionShrinkReservedSpace(RawTransaction t, BasePage page, int slot, int recordId, int newValue, int oldValue) throws StandardException(Code)
Shrink the reserved space to the new value.

Shrink the reserved space to the new value. This action is not undoable.


Parameters:
  t - The transaction
Parameters:
  page - that page to be initialized
Parameters:
  slot - the slot number of the record
Parameters:
  recordId - the recordID of the record
Parameters:
  newValue - the new reserved space value
exception:
  StandardException - Unexpected exception from the implementation




actionUpdate
public int actionUpdate(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, RecordHandle headRowHandle) throws StandardException(Code)
Update record at the given slot with this row.


MT - latched, page is latched when this methods is called.
Parameters:
  t - The transaction
Parameters:
  page - the updated page
Parameters:
  slot - the slot number of the record
Parameters:
  recordId - the recordID of the record
Parameters:
  row - The new storable row
Parameters:
  validColumns - the columns that needs to be updated
Parameters:
  realStartColumn - the first column that is updated
Parameters:
  logBuffer - where to prepare the log record
Parameters:
  realSpaceOnPage - ??
Parameters:
  headRowHandle - the record handle of the head row the next column to update in the row or,-1 if the update has been completed.
exception:
  StandardException - Standard Cloudscape error policy
See Also:   org.apache.derby.iapi.store.raw.Page.updateAtSlot




actionUpdateField
public void actionUpdateField(RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object newValue, LogicalUndo undo) throws StandardException(Code)
Update a field of the record at the given slot with this value.


MT - latched, page is latched when this methods is called.
Parameters:
  t - The transaction
Parameters:
  slot - the slot number of the record
Parameters:
  recordId - the recordID of the record
Parameters:
  fieldId - the fieldId of the value
Parameters:
  newValue - the new value for the field
Parameters:
  undo - if logical undo may be necessary, a function pointer to the access code where the logical undo logic resides. Null if logical undo is not necessary.
exception:
  StandardException - Standard Cloudscape error policy
See Also:   org.apache.derby.iapi.store.raw.Page.updateFieldAtSlot




w___w__w___._j_a__v___a__2_s___.__c__om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.