|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.erowid.sperowider.hsqldb.BasicTable
org.erowid.sperowider.hsqldb.MapTable
This class presents some Map-like functionality wrapped around an HSQLDB table.
| Field Summary |
| Fields inherited from class org.erowid.sperowider.hsqldb.BasicTable |
CACHED, MEMORY |
| Constructor Summary | |
MapTable(String name,
Connection connection,
int mode)
Constructor, gets everything ready for usage. |
|
| Method Summary | |
void |
add(String fromValue,
String toValue)
Adds a mapping from one value to another value to this map. |
boolean |
contains(String fromValue)
Returns true if the map contains this key. |
void |
create()
Creates a new table in the backing database corresponding to this object. |
String |
map(String fromValue)
Returns the value mapped to this key. |
void |
remove(String fromValue)
Removes the mapping corresponding to this key. |
| Methods inherited from class org.erowid.sperowider.hsqldb.BasicTable |
execSQL, getConnection, getMode, getName, getTableCreatePrefix, prepareStatement, tableExists |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MapTable(String name,
Connection connection,
int mode)
throws SQLException
| Method Detail |
public void create()
throws SQLException
SQLExceptionpublic boolean contains(String fromValue)
public void add(String fromValue,
String toValue)
public void remove(String fromValue)
public String map(String fromValue)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||