org.apache.derby.impl.store.raw.data
Interface AllocationActions

All Known Implementing Classes:
DirectAllocActions, LoggableAllocActions

public interface AllocationActions

This interface describe the operations that has to do with page allocation/deallocation. This interface is used for a special allocation page that records the allocation information and dispense the allocation policy.


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.
 

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

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.

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.