Package FairCom.CtreeDb
Class CTResultSet
Deals with the "result set" concept.
One CTResultSet belongs to one CTTable, but can be activated to several
CTRecord objects from the same CTTable. It contains one or more criteria
to be used for filtering the records.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCTResultSet
(CTTable Handle) Constructor for CTResultSet class based on aCTTable
object.CTResultSet
(CTTable Handle, String Name) Constructor for CTResultSet class based on aCTTable
object and a given Result Set name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
AddCriteria
(CTResultSetCriteria Handle) Adds a criteria for the current result set objectvoid
finalize()
Frees CTResultSet objectvoid
RemoveCriteria
(CTResultSetCriteria Handle) Removes a criteria from the current result set objectvoid
Turns ON or OFF a result set criteria to a givenCTRecord
Methods inherited from class CTBase
Abort, Begin, ClearSavePoint, Commit, GetAutoCommit, GetHandle, GetKeepLock, GetLockMode, GetOperation, GetTransactionMode, IsLockActive, IsTransActive, IsUnicodeLib, Lock, PrepareCommit, RestoreSavePoint, SetAutoCommit, SetHandle, SetKeepLock, SetOperation, SetSavePoint, SetTransactionMode, Unlock
-
Constructor Details
-
CTResultSet
Constructor for CTResultSet class based on aCTTable
object and a given Result Set name.- Parameters:
Handle
- ExistingCTTable
handleName
- New Result Set name- Throws:
CTException
- in case of error- See Also:
-
CTResultSet
Constructor for CTResultSet class based on aCTTable
object.- Parameters:
Handle
- ExistingCTTable
handle- Throws:
CTException
- in case of error- See Also:
-
-
Method Details
-
finalize
public void finalize()Frees CTResultSet object -
SetOnOff
public void SetOnOff(CTRecord Handle, boolean OnOffFlag, boolean AutoSortFlag, int FindMode) throws CTException Turns ON or OFF a result set criteria to a givenCTRecord
- Parameters:
Handle
- ExistingCTRecord
handleOnOffFlag
- true for turning it ON or false for turning it OFFAutoSortFlag
- Flag indicating if it is allowed to change the current sortFindMode
-LOCATE_MODE
to be used in the result set- Throws:
CTException
- in case of error- See Also:
-
AddCriteria
Adds a criteria for the current result set object- Parameters:
Handle
- ExistingCTResultSetCriteria
handle- Throws:
CTException
- in case of error- See Also:
-
RemoveCriteria
Removes a criteria from the current result set object- Parameters:
Handle
- ExistingCTResultSetCriteria
handle- Throws:
CTException
- in case of error- See Also:
-