|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.sqljet.core.internal.pager.SqlJetPage
public class SqlJetPage
| Field Summary | |
|---|---|
static SqlJetMemoryBufferType |
BUFFER_TYPE
|
| Constructor Summary | |
|---|---|
SqlJetPage()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final SqlJetMemoryBufferType BUFFER_TYPE
| Constructor Detail |
|---|
public SqlJetPage()
| Method Detail |
|---|
public void dontRollback()
ISqlJetPage
dontRollback in interface ISqlJetPagepublic void dontWrite()
ISqlJetPage
dontWrite in interface ISqlJetPagepublic ISqlJetMemoryPointer getData()
ISqlJetPage
getData in interface ISqlJetPagepublic java.lang.Object getExtra()
getExtra in interface ISqlJetPagepublic void setExtra(java.lang.Object extra)
setExtra in interface ISqlJetPage
public void move(int pageNumber,
boolean isCommit)
throws SqlJetException
ISqlJetPage
move in interface ISqlJetPageSqlJetExceptionpublic void ref()
ISqlJetPage
ref in interface ISqlJetPage
public void unref()
throws SqlJetException
ISqlJetPage
unref in interface ISqlJetPageSqlJetException
public void write()
throws SqlJetException
ISqlJetPage
write in interface ISqlJetPageSqlJetExceptionpublic java.util.Set<SqlJetPageFlags> getFlags()
getFlags in interface ISqlJetPagepublic long getHash()
ISqlJetPage
getHash 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()
ISqlJetPage
isWriteable in interface ISqlJetPagepublic ISqlJetPage getDirty()
getDirty in interface ISqlJetPage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||