| drjava.smyle.Table
Table | public interface Table extends java.util.List<T>(Code) | | A data table in a Smyle store.
Table is an extension of the java.util.List interface, so you can use a table just like you
use a standard Java Vector. Additionally, table defines methods to perform convenient
and efficient queries.
Every row in the table is of type "T", where T must be a class generated from an IDL
file by the CodeGenerator.
|
add | public boolean add(T t)(Code) | | |
clear | public void clear()(Code) | | |
get | public T get(Filter<T> filter)(Code) | | if there are any records that satisfy the filter, get returns one of
them; otherwise it returns null
|
getOrCreate | public T getOrCreate(Filter<T> filter)(Code) | | if there is a record that satisfies the filter, returns it;
otherwise creates an instance of T that matches the filter and
has default values in all fields not tested by the filter
|
getSchema | public TypeDef getSchema()(Code) | | |
indexOf | public int indexOf(T t)(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
put | public void put(Filter<T> filter, T t)(Code) | | if there is a record that satisfies the filter, replace it with t;
otherwise add t to the table
|
remove | public boolean remove(T t)(Code) | | |
remove | public T remove(int index)(Code) | | |
set | public T set(int index, T t)(Code) | | |
|
|