|
Servoy 5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IFoundSet
The public foundset interface
| Field Summary | |
|---|---|
static int |
AGGREGATEVARIABLES
|
static int |
COLUMNS
|
static int |
SCRIPTCALCULATIONS
|
| Method Summary | |
|---|---|
void |
addFoundSetEventListener(IFoundSetEventListener l)
Add a foundset listener |
void |
clear()
Remove the records from memory |
IFoundSet |
copy(boolean unrelate)
Makes a copy/clone of the foundset |
void |
deleteAllRecords()
Delete all records from foundset and datasource |
void |
deleteRecord(int row)
Delete a record from foundset and datasource |
int |
duplicateRecord(int recordIndex,
int indexToAdd)
Duplicate a record |
String[] |
getDataProviderNames(int type)
The dataprovider names |
String |
getDataSource()
The datasource this foundset is build on |
IRecord |
getRecord(int row)
Get a record object, getting the last of current size might trigger a load of more records if more present |
int |
getRecordIndex(IRecord record)
Get the index of a record object inside a foundset |
IRecord[] |
getRecords(int startrow,
int count)
Get multiple record Objects at once |
String |
getRelationName()
The relation name if this foundset is a related foundset |
int |
getSelectedIndex()
Get the selected index |
int |
getSize()
Get the size of present cached row identifiers (primary keys) |
String |
getSort()
Returns the current sort string of this Foundset like "column1 asc, column2 desc" |
boolean |
isInFindMode()
Returns true if this foundset is in find mode and false otherwise. |
boolean |
isRecordEditable(int row)
Check if a records is editable |
void |
loadAllRecords()
Load the initial records inside (back into) this foundset from datasource |
int |
newRecord(int indexToAdd,
boolean changeSelection)
Create a new Record |
void |
removeFoundSetEventListener(IFoundSetEventListener l)
remove a foundset listener |
void |
setSelectedIndex(int selectedRow)
Set the selected index |
void |
setSort(String sortString)
Sets the sort string of the Foundset can be something like "column 1 asc, column2 desc" Will sort the Foundset immediately when the Foundset is not in find mode. |
| Methods inherited from interface com.servoy.j2db.dataprocessing.IFoundSetDeprecated |
|---|
browseAll, deleteAll, duplicateRecord, getRecordToStringDataProviderID, makeEmpty, newRecord, newRecord, newRecord, setRecordToStringDataProviderID, sort |
| Methods inherited from interface com.servoy.j2db.dataprocessing.IGlobalValueEntry |
|---|
containsDataProvider, getDataProviderValue, setDataProviderValue |
| Field Detail |
|---|
static final int AGGREGATEVARIABLES
static final int COLUMNS
static final int SCRIPTCALCULATIONS
| Method Detail |
|---|
void addFoundSetEventListener(IFoundSetEventListener l)
l - the listenervoid clear()
IFoundSet copy(boolean unrelate)
throws ServoyException
unrelate - If true then it wil unrelated this foundset, detach it from its relation
ServoyException
void deleteAllRecords()
throws ServoyException
ServoyException
void deleteRecord(int row)
throws ServoyException
row -
ServoyException
int duplicateRecord(int recordIndex,
int indexToAdd)
throws ServoyException
recordIndex - to duplicateindexToAdd - the index to place the record, Integer.MAX_VALUE means bottom
ServoyExceptionString[] getDataProviderNames(int type)
type - of dataprovider, see constants in this interface
String getDataSource()
IRecord getRecord(int row)
row - the index to retrieve
int getRecordIndex(IRecord record)
record - the records object
IRecord[] getRecords(int startrow,
int count)
startrow - the index to start fromcount - the number of records object to get
String getRelationName()
int getSelectedIndex()
int getSize()
String getSort()
boolean isInFindMode()
boolean isRecordEditable(int row)
row - the index
void loadAllRecords()
throws ServoyException
ServoyException
int newRecord(int indexToAdd,
boolean changeSelection)
throws ServoyException
indexToAdd - the index to place the record, Integer.MAX_VALUE means bottomchangeSelection - change the selection to this new record
ServoyExceptionvoid removeFoundSetEventListener(IFoundSetEventListener l)
l - the listenervoid setSelectedIndex(int selectedRow)
selectedRow - the index
void setSort(String sortString)
throws ServoyException
sortString -
ServoyException
|
Copyright © 2010 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||