|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITableSort
Provides access to members that return and modify information to sort a table.
The ITableSort interface is used to sort data from a table, cursor, or selection set, and returns the sorted rows as a cursor or an ID enumerator.
The Fields property is required. It is a comma-delimited list of the fields to be sorted. When the sort method is called, the first field is sorted, then the second field, and so on. The Table property specifies the table or object class on which the sort is to be performed. Alternatively, the Cursor property may be used to indicate the data to be sorted. If you use the Cursor property, you must also set the Table property to the table referenced by the cursor.
If the SelectionSet property is set, the Table property is set automatically, and the Cursor property remains optional.
The Ascending, CaseSensitive, Compare, QueryFilter, SelectionSet, and SortCharacters properties may also be used to further define how the data is to be sorted.
Once the desired sorting properties have been set, the sort method must be called to order the rows. Either the Rows property or the IDs property can then be used to access the data in sorted order.
A custom class that implements ITableSortCallBack can be used to apply a user defined sorting algorithm instead of the default. The Compare property gives the TableSort object access to an instance of a custom class.
IQueryFilter
Method Summary | |
---|---|
int |
getIDByIndex(int index)
A id by its index value. |
IEnumIDs |
getIDs()
List of sorted IDs. |
IQueryFilter |
getQueryFilter()
The query filter on table or selection set. |
ICursor |
getRows()
Cursor of sorted rows. |
ISelectionSet |
getSelectionSet()
The selection set as a source of the data to sort on. |
ITable |
getTable()
The table as a source of the data to sort on. |
void |
setAscending(String field,
boolean rhs2)
Field sort order. |
void |
setCaseSensitive(String field,
boolean rhs2)
Character fields case sensitive. |
void |
setCompareByRef(ITableSortCallBack rhs1)
Compare call back interface. |
void |
setCursorByRef(ICursor rhs1)
The cursor of the data to sort on. |
void |
setFields(String rhs1)
Comma list of field names to sort on. |
void |
setQueryFilterByRef(IQueryFilter queryFilter)
The query filter on table or selection set. |
void |
setSelectionSetByRef(ISelectionSet selectionSet)
The selection set as a source of the data to sort on. |
void |
setSortCharacters(String field,
int rhs2)
Number of characters to sort on, for string fields. |
void |
setTableByRef(ITable table)
The table as a source of the data to sort on. |
void |
sort(ITrackCancel trackCancel)
Sort rows. |
Method Detail |
---|
void setTableByRef(ITable table) throws IOException, AutomationException
table
- A reference to a com.esri.arcgis.geodatabase.ITable (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSelectionSetByRef(ISelectionSet selectionSet) throws IOException, AutomationException
selectionSet
- A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCursorByRef(ICursor rhs1) throws IOException, AutomationException
rhs1
- A reference to a com.esri.arcgis.geodatabase.ICursor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setQueryFilterByRef(IQueryFilter queryFilter) throws IOException, AutomationException
queryFilter
- A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IQueryFilter getQueryFilter() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setFields(String rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAscending(String field, boolean rhs2) throws IOException, AutomationException
field
- The field (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSortCharacters(String field, int rhs2) throws IOException, AutomationException
field
- The field (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCaseSensitive(String field, boolean rhs2) throws IOException, AutomationException
field
- The field (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCompareByRef(ITableSortCallBack rhs1) throws IOException, AutomationException
rhs1
- A reference to a com.esri.arcgis.geodatabase.ITableSortCallBack (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumIDs getIDs() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICursor getRows() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void sort(ITrackCancel trackCancel) throws IOException, AutomationException
trackCancel
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getIDByIndex(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITable getTable() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISelectionSet getSelectionSet() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |