|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.db.Database
public final class Database
Database object collects tables and executes their initialisation, opening and closing.
import com.alarexgroup.m2mplf.db.Database;
|
| Constructor Summary | |
|---|---|
Database(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
closeDatabase()
Finishes work with database - closes tables. |
Table |
createTable(java.lang.String name,
byte[] struct,
byte[][] indexStruct)
Creates table in database |
long |
getSize()
Full FLASH memory - in bytes |
long |
getSizeAvailable()
Free FLASH memory - for database |
Table |
getTable(java.lang.String name)
Returns reference to table in database according to name |
void |
initTables()
Database initialisation - carries out structure initialisation in memory and FLASH memory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Database(java.lang.String name)
| Method Detail |
|---|
public long getSize()
public long getSizeAvailable()
public Table createTable(java.lang.String name,
byte[] struct,
byte[][] indexStruct)
name - jméno tabulkystruct - definice struktury tabulkyindexStruct - definice struktury indexu
public void initTables()
public Table getTable(java.lang.String name)
name - of table
public void closeDatabase()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||