Module
com.kesoftware.imu.Module
com.kesoftware.imu.Module
Since: 1.0
Description
Provides access to an EMu module.
Constructors
| Constructor | Details | ||||
|---|---|---|---|---|---|
| 
 | Module(String table, Session session) Creates an object which can be used to access the EMu module specified by
 Parameters: 
 | ||||
| 
 | Module(String table) Creates an object which can be used to access the EMu module specified by
 Parameters: 
 | 
Methods
| Method | Details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| int addFetchSet(String name, String columns) Associates a set of columns with a logical name on the server. The name
can be used instead of a column list when retrieving data using   Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| 
 | int addFetchSet(String name, String[] columns) Associates a set of columns with a logical name on the server. The name
can be used instead of a column list when retrieving data using   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | int addFetchSet(String name, ArrayList<String> columns) Associates a set of columns with a logical name on the server. The name
can be used instead of a column list when retrieving data using   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | 
 Associates several sets of columns with logical names on the server. This
is the equivalent of calling   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| int addSearchAlias(String name, String columns) Associates a set of columns with a logical name on the server. The name
can be used when specifying search terms to be passed to   Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| 
 | int addSearchAlias(String name, String[] columns) Associates a set of columns with a logical name on the server. The name
can be used when specifying search terms to be passed to   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | int addSearchAlias(String name, ArrayList<String> columns) Associates a set of columns with a logical name on the server. The name can be used when specifying search terms to be passed to
  Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | int addSearchAliases(Map aliases) Associates several sets of columns with logical names on the server. This is the equivalent of calling   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| int addSortSet(String name, String keys) Associates a set of sort keys with a logical name on the server. The name can be used instead of a sort key list when sorting the current
result set using   Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| 
 | int addSortSet(String name, String[] keys) Associates a set of sort keys with a logical name on the server.  Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | int addSortSet(String name, ArrayList<String> keys) Associates a set of sort keys with a logical name on the server.  Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | Object addSortSets(Map sets) Associates several sets of sort keys with logical names on the server. This is the equivalent of calling   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| ModuleFetchResult fetch(String flag, long offset, int count, String columns) Fetches   Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| 
 | ModuleFetchResult fetch(String flag, int offset, int count, String[] columns) Fetches   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleFetchResult fetch(String flag, int offset, int count, ArrayList<String> columns) Fetches   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleFetchResult fetch(String flag, long offset, int count) Fetches   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | long findKey(long key) Searches for a record with the key value   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | long findKeys(long[] keys) Searches for records with key values in the array   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | long findKeys(ArrayList<Long> keys) Searches for records with key values in the array   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| long findTerms(Terms terms) Searches for records which match the search terms specified in   Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| long findWhere(String where) Searches for records which match the TexQL   Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| long restoreFromFile(String file) Restores a set of records from a file on the server machine which contains a list of keys, one per line.  Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| 
 | long restoreFromTemp(String file) Restores a set of records from a temporary file on the server machine which contains a list of keys, one per line. Operates the same way as   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| ModuleSortResult sort(String keys, String flags) Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | |||||||||||||
| 
 | ModuleSortResult sort(String keys, String[] flags) Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleSortResult sort(String keys, ArrayList<String> flags) Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | 
 Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleSortResult sort(String[] keys, String[] flags) Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleSortResult sort(String[] keys, ArrayList<String> flags) Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleSortResult sort(ArrayList<String> keys, String flags) Sorts the current result set by the sort keys in  Each sort key in a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleSortResult sort(ArrayList<String> keys, String[] flags) Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | ||||||||||||
| 
 | ModuleSortResult sort(ArrayList<String> keys, ArrayList<String> flags) Sorts the current result set by the sort keys in  Each sort key is a column name optionally preceded by a   Parameters Parameters: 
 Returns: 
 Throws: 
 | 

