| java.lang.Object net.sf.borg.model.db.file.mdb.SMDB
All known Subclasses: net.sf.borg.model.db.file.FileBeanDB,
SMDB | public class SMDB (Code) | | Class SMDB uses an MDB to provides a database with the concept of a schema.
SMDB uses MDB to manage a database of Row objects. Row objects are generic
data containers that can contain basic Java types.
|
Constructor Summary | |
public | SMDB(String file, int locktype, boolean shared) |
Method Summary | |
public void | addRow(int key, Row sr) | public void | addRow(int key, Row sr, boolean crypt) | public void | close() | public static void | create(String dbname, String filename, int blocksize, Schema schema) | public void | delete(int key) | public int | getFlags(int key) | public Collection | getKeys() | public boolean | getNormalize() | public String | getOption(String oname) | public Schema | getSchema() | public boolean | isMDBDirty() | public Row | newRow() | public int | nextkey() | String | optString() | public Collection | optionKeys() | public Row | readRow(int key) | public void | setNormalize(boolean b) | public void | setOption(String oname, String value) | public void | setSchema(Schema schema) | public void | syncMDB() | public void | updateRow(int key, Row sr) | public void | updateRow(int key, Row sr, boolean crypt) | public static void | update_schema(String filename, Schema schema, boolean shared) |
OPTIONS | final protected static int OPTIONS(Code) | | |
SCHEMA | final protected static int SCHEMA(Code) | | |
normalize_ | protected boolean normalize_(Code) | | |
close | public void close()(Code) | | |
getNormalize | public boolean getNormalize()(Code) | | |
newRow | public Row newRow()(Code) | | Factory method to allocate a new Row for later storage in the SMDB
|
nextkey | public int nextkey()(Code) | | |
syncMDB | public void syncMDB()(Code) | | |
|
|