public class PerformedActivitySelector extends Object
Constructor and Description |
---|
PerformedActivitySelector(Actor actor)
Constructs a PerformedActivitySelector.
|
Modifier and Type | Method and Description |
---|---|
void |
addBindValue(AttributeValue bindValue)
Add a bind value.
|
void |
addFreeFormQualification(String qual)
Adds a free form search qualification.
|
void |
addFreeFormQualification(String qual,
AttributeValue[] bindValues)
Adds a free form search qualification.
|
void |
clearAllSearchQualifications()
Clears all search qualifications.
|
void |
clearSortQualification()
Clears the sort qualification, forcing it to assume the default value.
|
ActivityRecord |
getActivityRecord()
Gets the target ActivityRecord.
|
Actor |
getActor()
Gets the target Actor.
|
protected long |
getNextSequenceValue(IfsConnection conn,
String seqName)
Get the next value from a sequence.
|
String |
getSearchClause()
Gets the search clause.
|
LibrarySession |
getSession()
Returns the session being used by this Selector.
|
String |
getSortClause()
Gets the sort clause.
|
PerformedActivityRecord |
selectPerformedActivityRecord()
Returns the PerformedActivityRecord that matches the current
specifications in this instance.
|
PerformedActivityRecord |
selectPerformedActivityRecord(boolean lock)
Returns the PerformedActivityRecord that matches the current
specifications in this instance.
|
PerformedActivityRecord[] |
selectPerformedActivityRecords()
Returns the PerformedActivityRecords that match the current
specifications in this instance.
|
void |
setActivityRecord(ActivityRecord ar)
Sets the target ActivityRecord.
|
void |
setExcludeNullActivityRecords(boolean ind)
Sets indication as to whether to exclude records whose ActivityRecord
cannot be obtained, either because the ActivityRecord is freed
or because it cannot be discovered by the selecting session.
|
void |
setMaximumSelectCount(int maxCount)
Sets the maximum number of records that will be selected.
|
void |
setSortQualification(String sortQual)
Set the sort qualification.
|
public PerformedActivitySelector(Actor actor) throws IfsException
actor
- the Actor who has performed the activityIfsException
- if operation fails.public void setActivityRecord(ActivityRecord ar) throws IfsException
ar
- the ActivityRecord to use as the select targetIfsException
- if the operation failspublic void clearAllSearchQualifications() throws IfsException
IfsException
- if the operation fails.public void addFreeFormQualification(String qual) throws IfsException
The qualification must be valid for selection against a PAR table. Use this variant when there are no bind value references in the specified qualification.
qual
- the free form search qualificationIfsException
- if the operation fails.public void addFreeFormQualification(String qual, AttributeValue[] bindValues) throws IfsException
The qualification must be valid for selection against a PAR table. The number of bindValues specified must match the number of bind value references in the specified qualification.
qual
- the free form search qualificationbindValues
- the bind values associated with this qualificationIfsException
- if the operation fails.public void addBindValue(AttributeValue bindValue) throws IfsException
bindValue
- the bind value, expressed as an AttributeValueIfsException
- if the operation fails.public void setExcludeNullActivityRecords(boolean ind) throws IfsException
ind
- the indicationIfsException
- if the operation fails.public void clearSortQualification() throws IfsException
IfsException
- if the operation fails.public void setSortQualification(String sortQual) throws IfsException
sortQual
- the sort qualificationIfsException
- if the operation fails.public void setMaximumSelectCount(int maxCount)
A value of zero indicates that there is no limit on the desired number of items.
maxCount
- maximum number of records that will be selectedIfsException
- if the operation fails.public LibrarySession getSession()
public ActivityRecord getActivityRecord()
public Actor getActor()
public String getSearchClause()
public String getSortClause()
public PerformedActivityRecord[] selectPerformedActivityRecords() throws IfsException
IfsException
- if operation fails.public PerformedActivityRecord selectPerformedActivityRecord() throws IfsException
It is only valid to call this variant when the ActivityRecord has been specified. The row will be selected without locking.
IfsException
- if operation fails.public PerformedActivityRecord selectPerformedActivityRecord(boolean lock) throws IfsException
It is only valid to call this variant when the ActivityRecord has been specified.
lock
- whether or not to lock the selected rowIfsException
- if operation fails.protected long getNextSequenceValue(IfsConnection conn, String seqName) throws SQLException
conn
- the connection contextseqName
- the sequence nameSQLException
- if the operation failsCopyright © 2023. All rights reserved.