org.apache.derby.impl.store.raw.data
Class DirectAllocActions

java.lang.Object
  extended byorg.apache.derby.impl.store.raw.data.DirectAllocActions
All Implemented Interfaces:
AllocationActions

public class DirectAllocActions
extends java.lang.Object
implements AllocationActions


Constructor Summary
DirectAllocActions()
           
 
Method Summary
 void actionAllocatePage(RawTransaction t, BasePage allocPage, long pageNumber, int doStatus, int undoStatus)
          Set the allocation status of pageNumber to doStatus.
 void actionChainAllocPage(RawTransaction t, BasePage allocPage, long pageNumber, long pageOffset)
          Chain one allocation page to the next.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectAllocActions

public DirectAllocActions()
Method Detail

actionAllocatePage

public void actionAllocatePage(RawTransaction t,
                               BasePage allocPage,
                               long pageNumber,
                               int doStatus,
                               int undoStatus)
                        throws StandardException
Set the allocation status of pageNumber to doStatus. To undo this operation, set the allocation status of pageNumber to undoStatus

Specified by:
actionAllocatePage in interface AllocationActions
Parameters:
t - The transaction
pageNumber - the page to allocation or deallocation
doStatus - set the allocation status of the page this value
undoStatus - on undo, set the allocation status of the page this value
Throws:
StandardException - Standard Cloudscape error policy

actionChainAllocPage

public void actionChainAllocPage(RawTransaction t,
                                 BasePage allocPage,
                                 long pageNumber,
                                 long pageOffset)
                          throws StandardException
Chain one allocation page to the next.

Specified by:
actionChainAllocPage in interface AllocationActions
Parameters:
t - The transaction
pageNumber - the next allocation page's number
pageOffset - the next allocation page's page offset
Throws:
StandardException - Standard Cloudscape error policy


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.