public class BMDatabase
extends java.lang.Object
Constructor and Description |
---|
BMDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
Close()
close database
|
boolean |
OpenOrCreate(java.lang.String db_path)
open exist database file or create it if not exist.
|
void |
RecClose(int rec)
Close a RecordSet handle
|
int |
RecGetCount(int rec)
Get items count of RecordSet.
|
java.lang.String |
RecItemGetName(int rec,
int index)
Get item name by index.
|
int |
RecItemGetPage(int rec,
int index)
Get page no by index.
|
boolean |
RecItemInsert(int rec,
java.lang.String name,
int pageno)
insert item.
|
boolean |
RecItemRemove(int rec,
int index)
remove item by index.
|
int |
RecOpen(java.lang.String look_path)
Get a RecordSet handle, by input PDF file path
|
public boolean OpenOrCreate(java.lang.String db_path)
db_path
- public void Close()
public int RecOpen(java.lang.String look_path)
look_path
- PDF path to lookup.public void RecClose(int rec)
rec
- handle value of RecordSet. obtained by RecOpenpublic int RecGetCount(int rec)
rec
- RecordSet Handle, obtained by RecOpenpublic java.lang.String RecItemGetName(int rec, int index)
rec
- RecordSet Handle that returned by RecOpenindex
- 0 based index value, range:[0, RecGetCount()-1]public int RecItemGetPage(int rec, int index)
rec
- RecordSet Handle that returned by RecOpenindex
- 0 based index value, range:[0, RecGetCount()-1]public boolean RecItemRemove(int rec, int index)
rec
- RecordSet Handle that returned by RecOpenindex
- 0 based index value, range:[0, RecGetCount()-1]public boolean RecItemInsert(int rec, java.lang.String name, int pageno)
rec
- RecordSet Handle that returned by RecOpenname
- label of BookMark.pageno
- 0 based page no recorded.