java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<TimeSheetEntry>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.workforcetimesheet.TimeSheetEntry

public class TimeSheetEntry extends VdmEntity<TimeSheetEntry>
Workforce Timesheet

Original entity name from the Odata EDM: TimeSheetEntry

  • Field Details

    • ALL_FIELDS

      public static final TimeSheetEntrySelectable ALL_FIELDS
      Selector for all available fields of TimeSheetEntry.
    • PERSON_WORK_AGREEMENT_EXTERNAL_ID

      public static final TimeSheetEntryField<String> PERSON_WORK_AGREEMENT_EXTERNAL_ID
      Use with available fluent helpers to apply the PersonWorkAgreementExternalID field to query operations.
    • COMPANY_CODE

      public static final TimeSheetEntryField<String> COMPANY_CODE
      Use with available fluent helpers to apply the CompanyCode field to query operations.
    • TIME_SHEET_RECORD

      public static final TimeSheetEntryField<String> TIME_SHEET_RECORD
      Use with available fluent helpers to apply the TimeSheetRecord field to query operations.
    • PERSON_WORK_AGREEMENT

      public static final TimeSheetEntryField<String> PERSON_WORK_AGREEMENT
      Use with available fluent helpers to apply the PersonWorkAgreement field to query operations.
    • TIME_SHEET_DATE

      public static final TimeSheetEntryField<LocalDateTime> TIME_SHEET_DATE
      Use with available fluent helpers to apply the TimeSheetDate field to query operations.
    • TIME_SHEET_IS_RELEASED_ON_SAVE

      public static final TimeSheetEntryField<Boolean> TIME_SHEET_IS_RELEASED_ON_SAVE
      Use with available fluent helpers to apply the TimeSheetIsReleasedOnSave field to query operations.
    • TIME_SHEET_PREDECESSOR_RECORD

      public static final TimeSheetEntryField<String> TIME_SHEET_PREDECESSOR_RECORD
      Use with available fluent helpers to apply the TimeSheetPredecessorRecord field to query operations.
    • TIME_SHEET_STATUS

      public static final TimeSheetEntryField<String> TIME_SHEET_STATUS
      Use with available fluent helpers to apply the TimeSheetStatus field to query operations.
    • TIME_SHEET_IS_EXECUTED_IN_TEST_RUN

      public static final TimeSheetEntryField<Boolean> TIME_SHEET_IS_EXECUTED_IN_TEST_RUN
      Use with available fluent helpers to apply the TimeSheetIsExecutedInTestRun field to query operations.
    • TIME_SHEET_OPERATION

      public static final TimeSheetEntryField<String> TIME_SHEET_OPERATION
      Use with available fluent helpers to apply the TimeSheetOperation field to query operations.
  • Constructor Details

    • TimeSheetEntry

      public TimeSheetEntry()
    • TimeSheetEntry

      public TimeSheetEntry(@Nullable TimeSheetDataFields timeSheetDataFields, @Nullable String personWorkAgreementExternalID, @Nullable String companyCode, @Nullable String timeSheetRecord, @Nullable String personWorkAgreement, @Nullable LocalDateTime timeSheetDate, @Nullable Boolean timeSheetIsReleasedOnSave, @Nullable String timeSheetPredecessorRecord, @Nullable String timeSheetStatus, @Nullable Boolean timeSheetIsExecutedInTestRun, @Nullable String timeSheetOperation)
  • Method Details

    • getType

      @Nonnull public Class<TimeSheetEntry> getType()
      Specified by:
      getType in class VdmObject<TimeSheetEntry>
    • setTimeSheetDataFields

      public void setTimeSheetDataFields(@Nullable TimeSheetDataFields timeSheetDataFields)
      Constraints: Not nullable

      Original property name from the Odata EDM: TimeSheetDataFields

      Parameters:
      timeSheetDataFields - The timeSheetDataFields to set.
    • setPersonWorkAgreementExternalID

      public void setPersonWorkAgreementExternalID(@Nullable String personWorkAgreementExternalID)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: PersonWorkAgreementExternalID

      Parameters:
      personWorkAgreementExternalID - Person Work Agreement External ID
    • setCompanyCode

      public void setCompanyCode(@Nullable String companyCode)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setTimeSheetRecord

      public void setTimeSheetRecord(@Nullable String timeSheetRecord)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: TimeSheetRecord

      Parameters:
      timeSheetRecord - Time Sheet Record
    • setPersonWorkAgreement

      public void setPersonWorkAgreement(@Nullable String personWorkAgreement)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: PersonWorkAgreement

      Parameters:
      personWorkAgreement - Person Work Agreement
    • setTimeSheetDate

      public void setTimeSheetDate(@Nullable LocalDateTime timeSheetDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: TimeSheetDate

      Parameters:
      timeSheetDate - Time Sheet Date
    • setTimeSheetIsReleasedOnSave

      public void setTimeSheetIsReleasedOnSave(@Nullable Boolean timeSheetIsReleasedOnSave)
      Constraints: none

      Original property name from the Odata EDM: TimeSheetIsReleasedOnSave

      Parameters:
      timeSheetIsReleasedOnSave - Time sheet Is Released On Save
    • setTimeSheetPredecessorRecord

      public void setTimeSheetPredecessorRecord(@Nullable String timeSheetPredecessorRecord)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: TimeSheetPredecessorRecord

      Parameters:
      timeSheetPredecessorRecord - Time Sheet Predecessor Record
    • setTimeSheetStatus

      public void setTimeSheetStatus(@Nullable String timeSheetStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TimeSheetStatus

      Parameters:
      timeSheetStatus - Time Sheet Status
    • setTimeSheetIsExecutedInTestRun

      public void setTimeSheetIsExecutedInTestRun(@Nullable Boolean timeSheetIsExecutedInTestRun)
      Constraints: none

      Original property name from the Odata EDM: TimeSheetIsExecutedInTestRun

      Parameters:
      timeSheetIsExecutedInTestRun - Times Sheet Is Executed In Test Run
    • setTimeSheetOperation

      public void setTimeSheetOperation(@Nullable String timeSheetOperation)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TimeSheetOperation

      Parameters:
      timeSheetOperation - Time Sheet Operation
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<TimeSheetEntry>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<TimeSheetEntry>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<TimeSheetEntry>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<TimeSheetEntry>
    • field

      @Nonnull public static <T> TimeSheetEntryField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> TimeSheetEntryField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<TimeSheetEntry>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<TimeSheetEntry>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<TimeSheetEntry>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<TimeSheetEntry>
    • builder

      @Nonnull public static TimeSheetEntry.TimeSheetEntryBuilder builder()
    • getTimeSheetDataFields

      @Nullable public TimeSheetDataFields getTimeSheetDataFields()
      Constraints: Not nullable

      Original property name from the Odata EDM: TimeSheetDataFields

      Returns:
      The timeSheetDataFields contained in this entity.
    • getPersonWorkAgreementExternalID

      @Nullable public String getPersonWorkAgreementExternalID()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: PersonWorkAgreementExternalID

      Returns:
      Person Work Agreement External ID
    • getCompanyCode

      @Nullable public String getCompanyCode()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getTimeSheetRecord

      @Nullable public String getTimeSheetRecord()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: TimeSheetRecord

      Returns:
      Time Sheet Record
    • getPersonWorkAgreement

      @Nullable public String getPersonWorkAgreement()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: PersonWorkAgreement

      Returns:
      Person Work Agreement
    • getTimeSheetDate

      @Nullable public LocalDateTime getTimeSheetDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: TimeSheetDate

      Returns:
      Time Sheet Date
    • getTimeSheetIsReleasedOnSave

      @Nullable public Boolean getTimeSheetIsReleasedOnSave()
      Constraints: none

      Original property name from the Odata EDM: TimeSheetIsReleasedOnSave

      Returns:
      Time sheet Is Released On Save
    • getTimeSheetPredecessorRecord

      @Nullable public String getTimeSheetPredecessorRecord()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: TimeSheetPredecessorRecord

      Returns:
      Time Sheet Predecessor Record
    • getTimeSheetStatus

      @Nullable public String getTimeSheetStatus()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TimeSheetStatus

      Returns:
      Time Sheet Status
    • getTimeSheetIsExecutedInTestRun

      @Nullable public Boolean getTimeSheetIsExecutedInTestRun()
      Constraints: none

      Original property name from the Odata EDM: TimeSheetIsExecutedInTestRun

      Returns:
      Times Sheet Is Executed In Test Run
    • getTimeSheetOperation

      @Nullable public String getTimeSheetOperation()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TimeSheetOperation

      Returns:
      Time Sheet Operation
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<TimeSheetEntry>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<TimeSheetEntry>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<TimeSheetEntry>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<TimeSheetEntry>