org.opentox.database
Class TaskTable
java.lang.Object
org.opentox.database.TaskTable
- All Implemented Interfaces:
- IDataBaseAccess, ITable
public final class TaskTable
- extends java.lang.Object
- implements IDataBaseAccess, ITable
- Author:
- Sopasakis Pantelis
Method Summary |
void |
create()
Creates the table. |
private static TaskTable |
getInstance()
|
void |
getRidOf()
Removes completely the table from the database. |
Jterator<java.lang.String> |
iterator(java.lang.String ColumnName)
Provides an iterator for all elements in a specified column of the database. |
Jterator<java.lang.String> |
search(java.lang.String IterableCoumn,
java.lang.String SearchColumn,
java.lang.String keyword)
Performs a search in the table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instanceOfThis
private static TaskTable instanceOfThis
INSTANCE
public static final TaskTable INSTANCE
TaskTable
public TaskTable()
getInstance
private static TaskTable getInstance()
getRidOf
public void getRidOf()
- Description copied from interface:
ITable
- Removes completely the table from the database. After this operation
all data stored in the table will get lost, so make sure that you either
really don't need these data or that you have kept backup of your database
which is in general highly recommended.
- Specified by:
getRidOf
in interface ITable
create
public void create()
- Description copied from interface:
ITable
- Creates the table.
- Specified by:
create
in interface ITable
iterator
public Jterator<java.lang.String> iterator(java.lang.String ColumnName)
- Description copied from interface:
ITable
- Provides an iterator for all elements in a specified column of the database.
- Specified by:
iterator
in interface ITable
- Parameters:
ColumnName
- The name of the column.
- Returns:
- An instance of Jterator<String>
search
public Jterator<java.lang.String> search(java.lang.String IterableCoumn,
java.lang.String SearchColumn,
java.lang.String keyword)
- Description copied from interface:
ITable
- Performs a search in the table. Searches the entries of the column defined
by SearchColumn to check if its entries resemble a given keyword and returns
an iterator over the corresponding entries of the column specified by the
argument IterableColumn. The search is performed by a database SQL-type
query containing 'LIKE %...%'.
- Specified by:
search
in interface ITable
- Parameters:
IterableCoumn
- The column of the table on whose entries the iterator
takes values.SearchColumn
- The column of the table which should be searched.keyword
- A keyword
- Returns:
- An instance of a Jterator (in fact this is an Iterator) which can
be used to iterate over the search results.