| java.lang.Object com.healthmarketscience.jackcess.TempPageHolder
TempPageHolder | final public class TempPageHolder (Code) | | Manages a reference to a page buffer.
author: James Ahlborn |
Method Summary | |
public void | clear() Forces any current page data to be disregarded (any
getPage /setPage call must reload page data) and
releases any referenced memory. | public ByteBuffer | getPage(PageChannel pageChannel) | public int | getPageNumber() | public void | invalidate() Forces any current page data to be disregarded (any
getPage /setPage call must reload page data). | public static TempPageHolder | newHolder(TempBufferHolder.Type type) Creates a new TempPageHolder. | public void | possiblyInvalidate(int modifiedPageNumber, ByteBuffer modifiedBuffer) Forces any current page data to be disregarded if it matches the given
page number (any getPage /setPage call must
reload page data) and is not the given buffer. | public ByteBuffer | setNewPage(PageChannel pageChannel) Allocates a new buffer in the database (with undefined data) and returns
a new empty buffer. | public ByteBuffer | setPage(PageChannel pageChannel, int pageNumber) |
clear | public void clear()(Code) | | Forces any current page data to be disregarded (any
getPage /setPage call must reload page data) and
releases any referenced memory.
|
getPage | public ByteBuffer getPage(PageChannel pageChannel) throws IOException(Code) | | the page for the current page number, reading as necessary,position and limit are unchanged |
getPageNumber | public int getPageNumber()(Code) | | the currently set page number |
invalidate | public void invalidate()(Code) | | Forces any current page data to be disregarded (any
getPage /setPage call must reload page data).
Does not necessarily release any memory.
|
possiblyInvalidate | public void possiblyInvalidate(int modifiedPageNumber, ByteBuffer modifiedBuffer)(Code) | | Forces any current page data to be disregarded if it matches the given
page number (any getPage /setPage call must
reload page data) and is not the given buffer. Does not necessarily
release any memory.
|
setNewPage | public ByteBuffer setNewPage(PageChannel pageChannel) throws IOException(Code) | | Allocates a new buffer in the database (with undefined data) and returns
a new empty buffer.
|
setPage | public ByteBuffer setPage(PageChannel pageChannel, int pageNumber) throws IOException(Code) | | Sets the current page number and returns that page
the page for the new page number, reading as necessary, resetsposition |
|
|