|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataBrowser
A data browser represents a record set containing data browser records, i.e.
instances of IDataBrowserRecord. The structure of each record
contained is determined by the IBrowserDefinition the data browser is
based on.
A data browser instance could be obtained by means of
IDataAccessor.getBrowser(IBrowserDefinition),
IDataAccessor.getBrowser(String),
IDataAccessor.createBrowser(IAdhocBrowserDefinition).
| Field Summary |
|---|
| Fields inherited from interface de.tif.jacob.core.data.IDataRecordSet |
|---|
UNLIMITED_RECORDS |
| Method Summary | |
|---|---|
void |
clearSelections()
Clears all record selections. |
Filldirection |
getFillDirection()
Returns the fill direction of the last search operation. |
java.lang.String |
getName()
Returns the name of this data browser, which equals to the name of the underlying IBrowserDefinition. |
IDataBrowserRecord |
getRecord(int index)
Returns the data browser record given by its index. |
IRelationSet |
getRelationSet()
Returns the relation set of the last search operation. |
int |
getSelectedRecordIndex()
Returns the index of the selected record |
void |
propagateSelections()
Propagates the selections for the browser specified. |
void |
search(IRelationSet relationSet)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing. |
void |
search(IRelationSet relationSet,
Filldirection filldirection)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing. |
void |
search(java.lang.String relationSetName)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing. |
void |
search(java.lang.String relationSetName,
Filldirection filldirection)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing. |
void |
searchWhere(IRelationSet relationSet,
Filldirection filldirection,
java.lang.String whereClause)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing and the given where clause. |
void |
searchWhere(IRelationSet relationSet,
java.lang.String whereClause)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing and the given where clause. |
void |
searchWhere(java.lang.String relationSetName,
Filldirection filldirection,
java.lang.String whereClause)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing and the given where clause. |
void |
searchWhere(java.lang.String relationSetName,
java.lang.String whereClause)
Populates the data browser by means of performing a search operation, which will be constrained by QBE constraints of related data tables determined by the given relation set and the conditions of the related table aliases, if existing and the given where clause. |
void |
setSelectedRecordIndex(int index)
Selects the record specified by the given record index. |
| Methods inherited from interface de.tif.jacob.core.data.IDataRecordSet |
|---|
clear, getAccessor, getMaxRecords, getTableAlias, hasMoreRecords, recordCount, setMaxRecords |
| Method Detail |
|---|
java.lang.String getName()
IBrowserDefinition.
getName in interface IDataRecordSetint getSelectedRecordIndex()
-1, if no
record is selected.
void setSelectedRecordIndex(int index)
throws java.lang.IndexOutOfBoundsException
After this method has been called, the given record index would be returned
by getSelectedRecordIndex().
index - the index of the record to select.
java.lang.IndexOutOfBoundsException - if 0 <= index < IDataRecordSet.recordCount()
is not fulfilledvoid clearSelections()
IDataBrowserRecord getRecord(int index) throws java.lang.IndexOutOfBoundsException
index - the index of the record to get.
java.lang.IndexOutOfBoundsException - if 0 <= index < IDataRecordSet.recordCount()
is not fulfilled
void propagateSelections()
throws RecordNotFoundException,
java.lang.RuntimeException
When a selection is propagated, then all data tables related to this data browser are filled. Related data tables are determined by the relation set and the fill direction used in the last search operation.
Note that propagation may be an expensive operation, i.e. causing many data source accesses.
RecordNotFoundException - if any data table record could not be retrieved from a data
source
java.lang.RuntimeException - if no selections to propagate exist or any further error occurs
during propagation
void search(java.lang.String relationSetName)
throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
This method is equivalent to search(IRelationSet, Filldirection)
except that the relation set is specified by name and
Filldirection.BACKWARD is used by default.
relationSetName - the name of the relation set
InvalidExpressionException - if any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)void search(IRelationSet relationSet) throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
This method is equivalent to search(IRelationSet, Filldirection)
except that Filldirection.BACKWARD is used by default.
relationSet - the relation set
InvalidExpressionException - if any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)
void search(java.lang.String relationSetName,
Filldirection filldirection)
throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
This method is equivalent to search(IRelationSet, Filldirection)
except that the relation set is specified by name.
relationSetName - the name of relation setfilldirection - the fill direction to use for subsequent calls of
propagateSelections().
InvalidExpressionException - if any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)void search(IRelationSet relationSet, Filldirection filldirection) throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
relationSet - the relation setfilldirection - the fill direction to use for subsequent calls of
propagateSelections().
InvalidExpressionException - if any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)
void searchWhere(java.lang.String relationSetName,
java.lang.String whereClause)
throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
This method is equivalent to searchWhere(IRelationSet, Filldirection, String)
except that the relation set is specified by name and
Filldirection.BACKWARD is used by default.
relationSetName - the name of the relation setwhereClause - the SQL-like where clause, e.g. "employee.avail = 1 OR employee.ownerrole = 1"
InvalidExpressionException - if the where clause or any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)void searchWhere(IRelationSet relationSet, Filldirection filldirection, java.lang.String whereClause) throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
relationSet - the name of the relation setfilldirection - the fill direction to use for subsequent calls of
propagateSelections().whereClause - the SQL-like where clause, e.g. "employee.avail = 1 OR employee.ownerrole = 1"
InvalidExpressionException - if the where clause or any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)void searchWhere(IRelationSet relationSet, java.lang.String whereClause) throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
This method is equivalent to searchWhere(IRelationSet, Filldirection, String)
except that Filldirection.BACKWARD is used by default.
relationSet - the relation setwhereClause - the SQL-like where clause, e.g. "employee.avail = 1 OR employee.ownerrole = 1"
InvalidExpressionException - if the where clause or any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)
void searchWhere(java.lang.String relationSetName,
Filldirection filldirection,
java.lang.String whereClause)
throws InvalidExpressionException
Note that the number of records retrieved from data source is limited to the current maximum record setting.
This method is equivalent to searchWhere(IRelationSet, Filldirection, String)
except that the relation set is specified by name.
relationSetName - the name of the relation setfilldirection - the fill direction to use for subsequent calls of
propagateSelections().whereClause - the SQL-like where clause, e.g. "employee.avail = 1 OR employee.ownerrole = 1"
InvalidExpressionException - if the where clause or any given QBE constraint contains an invalid expressionIDataRecordSet.getMaxRecords(),
IDataRecordSet.setMaxRecords(int)IRelationSet getRelationSet()
null if no search has been
performed after last clear action.Filldirection getFillDirection()
null if no search has been
performed after last clear action.
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||