public class SqlJetPage extends java.lang.Object implements ISqlJetPage
| Modifier and Type | Field and Description |
|---|---|
static SqlJetMemoryBufferType |
BUFFER_TYPE |
| Constructor and Description |
|---|
SqlJetPage() |
| Modifier and Type | Method and Description |
|---|---|
void |
dontRollback()
A call to this routine tells the pager that if a rollback occurs, it is
not necessary to restore the data on the given page.
|
void |
dontWrite()
A call to this routine tells the pager that it is not necessary to write
the information on page pPg back to the disk, even though that page might
be marked as dirty.
|
ISqlJetMemoryPointer |
getData()
Return a pointer to the data for the specified page.
|
ISqlJetPage |
getDirty() |
java.lang.Object |
getExtra() |
java.util.Set<SqlJetPageFlags> |
getFlags() |
long |
getHash()
Hash of page content
|
ISqlJetPage |
getNext() |
int |
getPageNumber() |
ISqlJetPager |
getPager() |
ISqlJetPage |
getPrev() |
int |
getRefCount() |
boolean |
isWriteable()
Return TRUE if the page given in the argument was previously passed
to sqlite3PagerWrite().
|
void |
move(int pageNumber,
boolean isCommit)
Move the page to location pageNumber in the file.
|
void |
ref()
Increment the reference count for a page.
|
void |
setExtra(java.lang.Object extra) |
void |
setFlags(java.util.Set<SqlJetPageFlags> flags) |
void |
setHash(long hash) |
void |
setPageNumber(int pageNumber) |
void |
setPager(ISqlJetPager pager) |
void |
unref()
Release a page.
|
void |
write()
This function is used to mark a data-page as writable.
|
public static final SqlJetMemoryBufferType BUFFER_TYPE
public void dontRollback()
ISqlJetPagedontRollback in interface ISqlJetPagepublic void dontWrite()
ISqlJetPagedontWrite in interface ISqlJetPagepublic ISqlJetMemoryPointer getData()
ISqlJetPagegetData in interface ISqlJetPagepublic java.lang.Object getExtra()
getExtra in interface ISqlJetPagepublic void setExtra(java.lang.Object extra)
setExtra in interface ISqlJetPagepublic void move(int pageNumber,
boolean isCommit)
throws SqlJetException
ISqlJetPagemove in interface ISqlJetPageSqlJetExceptionpublic void ref()
ISqlJetPageref in interface ISqlJetPagepublic void unref()
throws SqlJetException
ISqlJetPageunref in interface ISqlJetPageSqlJetExceptionpublic void write()
throws SqlJetException
ISqlJetPagewrite in interface ISqlJetPageSqlJetExceptionpublic java.util.Set<SqlJetPageFlags> getFlags()
getFlags in interface ISqlJetPagepublic long getHash()
ISqlJetPagegetHash in interface ISqlJetPagepublic ISqlJetPager getPager()
getPager in interface ISqlJetPagepublic void setFlags(java.util.Set<SqlJetPageFlags> flags)
setFlags in interface ISqlJetPagepublic void setHash(long hash)
setHash in interface ISqlJetPagepublic void setPager(ISqlJetPager pager)
setPager in interface ISqlJetPagepublic int getPageNumber()
getPageNumber in interface ISqlJetPagepublic void setPageNumber(int pageNumber)
setPageNumber in interface ISqlJetPagepublic ISqlJetPage getNext()
getNext in interface ISqlJetPagepublic ISqlJetPage getPrev()
getPrev in interface ISqlJetPagepublic int getRefCount()
getRefCount in interface ISqlJetPagepublic boolean isWriteable()
ISqlJetPageisWriteable in interface ISqlJetPagepublic ISqlJetPage getDirty()
getDirty in interface ISqlJetPageCopyright © 2009-2010 TMate Software Ltd. All Rights Reserved.