Share via


PayrollWorkerEnrolledBenefitDetail::findByWorkerEnrolledBenefitLegalEntity Method

Finds a record in the PayrollWorkerEnrolledBenefitDetail table, based on the supplied values of the WorkerEnrolledBenefit and LegalEntity fields.

Syntax

client server public static PayrollWorkerEnrolledBenefitDetail findByWorkerEnrolledBenefitLegalEntity(
    HcmWorkerEnrolledBenefitRecId _workerEnrolledBenefit, 
    CompanyInfoRecId _legalEntity, 
   [ValidFromDate _validFrom, 
    ValidToDate _validTo, 
    boolean _forUpdate, 
    ConcurrencyModel _concurrencyModel])

Run On

Called

Parameters

  • _forUpdate
    Type: boolean
    A Boolean value that specifies whether to read the record for update; optional.
  • _concurrencyModel
    Type: ConcurrencyModel Enumeration
    An enumeration value that indicates whether a concurrency setting should be used on the table; optional.

Return Value

Type: PayrollWorkerEnrolledBenefitDetail Table
An empty buffer, or one or more records from the PayrollWorkerEnrolledBenefitDetail table. See the remarks.

Remarks

Values for the _validFrom and _validTo parameters limit table selection in the following ways:

  1. If no value is supplied for either parameter, the current date/time is used for both by default. Therefore, the method searches for active records only, and returns either an empty record or a valid record.

  2. If a value is supplied for only the first parameter, the second parameter uses the same value by default. Therefore, the method searches for active records as of the supplied date/time value, and returns either an empty record or a valid record.

  3. If values are supplied for both parameters, the method searches for records for which the validFrom and ValidTo values fall in that interval. The method might return multiple records.

See Also

Reference

PayrollWorkerEnrolledBenefitDetail Table