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()
ISqlJetPage
dontRollback
in interface ISqlJetPage
public void dontWrite()
ISqlJetPage
dontWrite
in interface ISqlJetPage
public ISqlJetMemoryPointer getData()
ISqlJetPage
getData
in interface ISqlJetPage
public java.lang.Object getExtra()
getExtra
in interface ISqlJetPage
public void setExtra(java.lang.Object extra)
setExtra
in interface ISqlJetPage
public void move(int pageNumber, boolean isCommit) throws SqlJetException
ISqlJetPage
move
in interface ISqlJetPage
SqlJetException
public void ref()
ISqlJetPage
ref
in interface ISqlJetPage
public void unref() throws SqlJetException
ISqlJetPage
unref
in interface ISqlJetPage
SqlJetException
public void write() throws SqlJetException
ISqlJetPage
write
in interface ISqlJetPage
SqlJetException
public java.util.Set<SqlJetPageFlags> getFlags()
getFlags
in interface ISqlJetPage
public long getHash()
ISqlJetPage
getHash
in interface ISqlJetPage
public ISqlJetPager getPager()
getPager
in interface ISqlJetPage
public void setFlags(java.util.Set<SqlJetPageFlags> flags)
setFlags
in interface ISqlJetPage
public void setHash(long hash)
setHash
in interface ISqlJetPage
public void setPager(ISqlJetPager pager)
setPager
in interface ISqlJetPage
public int getPageNumber()
getPageNumber
in interface ISqlJetPage
public void setPageNumber(int pageNumber)
setPageNumber
in interface ISqlJetPage
public ISqlJetPage getNext()
getNext
in interface ISqlJetPage
public ISqlJetPage getPrev()
getPrev
in interface ISqlJetPage
public int getRefCount()
getRefCount
in interface ISqlJetPage
public boolean isWriteable()
ISqlJetPage
isWriteable
in interface ISqlJetPage
public ISqlJetPage getDirty()
getDirty
in interface ISqlJetPage
Copyright © 2009-2010 TMate Software Ltd. All Rights Reserved.