Share via


HcmPositionWorkerAssignment::findByTimeState Method

Finds the specified record in the HcmPositionWorkerAssignment table.

Syntax

client server public static HcmPositionWorkerAssignment findByTimeState(
    HcmPositionWorkerAssignmentRecId _recId, 
   [utcdatetime _validFrom, 
    utcdatetime _validTo, 
    boolean _forUpdate, 
    ConcurrencyModel _concurrencyModel])

Run On

Called

Parameters

  • _validFrom
    Type: utcdatetime
    A value of the ValidFrom field.
  • _validTo
    Type: utcdatetime
    A value of the ValidTo field.
  • _forUpdate
    Type: boolean
    A Boolean value that indicates whether to read the record for update; optional.

Return Value

Type: HcmPositionWorkerAssignment Table
A record in the HcmPositionWorkerAssignment table, see remarks.

Remarks

The values for the _validFrom and _validTo parameters limit the table selection in the following way:

  1. If no values are specified for both the parameters they will use now. Therefore, the method searches for only active records and returns either an empty or a valid record.

  2. If only the first parameter value is supplied, the second parameter will use the value of the first parameter.

    The method searches for active records of the specified date and time and returns either an empty or a valid record.

  3. If both parameters are supplied with values, this method searches for records with validFrom and ValidTo values in that interval. It may return multiple records.

See Also

Reference

HcmPositionWorkerAssignment Table