|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.erowid.sperowider.hsqldb.BasicTable org.erowid.sperowider.hsqldb.SetTable
This class presents some Set-like functionality wrapped around an HSQLDB table.
Field Summary |
Fields inherited from class org.erowid.sperowider.hsqldb.BasicTable |
CACHED, MEMORY |
Constructor Summary | |
SetTable(String name,
Connection connection,
int mode)
Constructor, gets everything ready for usage. |
Method Summary | |
void |
add(String value)
Adds a value to this set. |
boolean |
contains(String value)
Returns true if the set contains this key. |
void |
create()
Creates a new table in the backing database corresponding to this object. |
Collection |
getData()
Returns a copy of the data in this table, as a List of String. |
int |
getRowCount()
Returns the number of rows in this table, or -1 if the table has not been created. |
String |
remove()
Chooses an arbitrary value in this list, removes it from the list, and returns it. |
void |
remove(String value)
Removes a value from this set. |
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 SetTable(String name, Connection connection, int mode) throws SQLException
Method Detail |
public int getRowCount()
public void create() throws SQLException
SQLException
public boolean contains(String value)
public void add(String value)
public void remove(String value)
public Collection getData()
public String remove()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |