public class TimeSheetEntry extends VdmEntity<TimeSheetEntry>
Original entity name from the Odata EDM: TimeSheetEntry
Modifier and Type | Class and Description |
---|---|
static class |
TimeSheetEntry.TimeSheetEntryBuilder |
Modifier and Type | Field and Description |
---|---|
static TimeSheetEntrySelectable |
ALL_FIELDS
Selector for all available fields of TimeSheetEntry.
|
static TimeSheetEntryField<String> |
COMPANY_CODE
Use with available fluent helpers to apply the CompanyCode field to query operations.
|
static TimeSheetEntryField<String> |
PERSON_WORK_AGREEMENT
Use with available fluent helpers to apply the PersonWorkAgreement field to query operations.
|
static TimeSheetEntryField<String> |
PERSON_WORK_AGREEMENT_EXTERNAL_ID
Use with available fluent helpers to apply the PersonWorkAgreementExternalID field to query operations.
|
static TimeSheetEntryField<LocalDateTime> |
TIME_SHEET_DATE
Use with available fluent helpers to apply the TimeSheetDate field to query operations.
|
static TimeSheetEntryField<Boolean> |
TIME_SHEET_IS_EXECUTED_IN_TEST_RUN
Use with available fluent helpers to apply the TimeSheetIsExecutedInTestRun field to query operations.
|
static TimeSheetEntryField<Boolean> |
TIME_SHEET_IS_RELEASED_ON_SAVE
Use with available fluent helpers to apply the TimeSheetIsReleasedOnSave field to query operations.
|
static TimeSheetEntryField<String> |
TIME_SHEET_OPERATION
Use with available fluent helpers to apply the TimeSheetOperation field to query operations.
|
static TimeSheetEntryField<String> |
TIME_SHEET_PREDECESSOR_RECORD
Use with available fluent helpers to apply the TimeSheetPredecessorRecord field to query operations.
|
static TimeSheetEntryField<String> |
TIME_SHEET_RECORD
Use with available fluent helpers to apply the TimeSheetRecord field to query operations.
|
static TimeSheetEntryField<String> |
TIME_SHEET_STATUS
Use with available fluent helpers to apply the TimeSheetStatus field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
TimeSheetEntry() |
TimeSheetEntry(TimeSheetDataFields timeSheetDataFields,
String personWorkAgreementExternalID,
String companyCode,
String timeSheetRecord,
String personWorkAgreement,
LocalDateTime timeSheetDate,
Boolean timeSheetIsReleasedOnSave,
String timeSheetPredecessorRecord,
String timeSheetStatus,
Boolean timeSheetIsExecutedInTestRun,
String timeSheetOperation) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static TimeSheetEntry.TimeSheetEntryBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> TimeSheetEntryField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
String |
getCompanyCode()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
String |
getPersonWorkAgreement()
Constraints: Not nullable, Maximum length: 8
|
String |
getPersonWorkAgreementExternalID()
(Key Field) Constraints: Not nullable, Maximum length: 20
|
TimeSheetDataFields |
getTimeSheetDataFields()
Constraints: Not nullable
|
LocalDateTime |
getTimeSheetDate()
Constraints: Not nullable, Precision: 0
|
Boolean |
getTimeSheetIsExecutedInTestRun()
Constraints: none
|
Boolean |
getTimeSheetIsReleasedOnSave()
Constraints: none
|
String |
getTimeSheetOperation()
Constraints: Not nullable, Maximum length: 1
|
String |
getTimeSheetPredecessorRecord()
Constraints: Not nullable, Maximum length: 12
|
String |
getTimeSheetRecord()
(Key Field) Constraints: Not nullable, Maximum length: 12
|
String |
getTimeSheetStatus()
Constraints: Not nullable, Maximum length: 2
|
Class<TimeSheetEntry> |
getType() |
int |
hashCode() |
void |
setCompanyCode(String companyCode)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setPersonWorkAgreement(String personWorkAgreement)
Constraints: Not nullable, Maximum length: 8
|
void |
setPersonWorkAgreementExternalID(String personWorkAgreementExternalID)
(Key Field) Constraints: Not nullable, Maximum length: 20
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setTimeSheetDataFields(TimeSheetDataFields timeSheetDataFields)
Constraints: Not nullable
|
void |
setTimeSheetDate(LocalDateTime timeSheetDate)
Constraints: Not nullable, Precision: 0
|
void |
setTimeSheetIsExecutedInTestRun(Boolean timeSheetIsExecutedInTestRun)
Constraints: none
|
void |
setTimeSheetIsReleasedOnSave(Boolean timeSheetIsReleasedOnSave)
Constraints: none
|
void |
setTimeSheetOperation(String timeSheetOperation)
Constraints: Not nullable, Maximum length: 1
|
void |
setTimeSheetPredecessorRecord(String timeSheetPredecessorRecord)
Constraints: Not nullable, Maximum length: 12
|
void |
setTimeSheetRecord(String timeSheetRecord)
(Key Field) Constraints: Not nullable, Maximum length: 12
|
void |
setTimeSheetStatus(String timeSheetStatus)
Constraints: Not nullable, Maximum length: 2
|
protected Map<String,Object> |
toMapOfFields() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final TimeSheetEntrySelectable ALL_FIELDS
public static final TimeSheetEntryField<String> PERSON_WORK_AGREEMENT_EXTERNAL_ID
public static final TimeSheetEntryField<String> COMPANY_CODE
public static final TimeSheetEntryField<String> TIME_SHEET_RECORD
public static final TimeSheetEntryField<String> PERSON_WORK_AGREEMENT
public static final TimeSheetEntryField<LocalDateTime> TIME_SHEET_DATE
public static final TimeSheetEntryField<Boolean> TIME_SHEET_IS_RELEASED_ON_SAVE
public static final TimeSheetEntryField<String> TIME_SHEET_PREDECESSOR_RECORD
public static final TimeSheetEntryField<String> TIME_SHEET_STATUS
public static final TimeSheetEntryField<Boolean> TIME_SHEET_IS_EXECUTED_IN_TEST_RUN
public static final TimeSheetEntryField<String> TIME_SHEET_OPERATION
public 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)
@Nonnull public Class<TimeSheetEntry> getType()
getType
in class VdmObject<TimeSheetEntry>
public void setTimeSheetDataFields(@Nullable TimeSheetDataFields timeSheetDataFields)
Original property name from the Odata EDM: TimeSheetDataFields
timeSheetDataFields
- The timeSheetDataFields to set.public void setPersonWorkAgreementExternalID(@Nullable String personWorkAgreementExternalID)
Original property name from the Odata EDM: PersonWorkAgreementExternalID
personWorkAgreementExternalID
- Work Agreement External IDpublic void setCompanyCode(@Nullable String companyCode)
Original property name from the Odata EDM: CompanyCode
companyCode
- The company code is an organizational unit within financial accounting.public void setTimeSheetRecord(@Nullable String timeSheetRecord)
Original property name from the Odata EDM: TimeSheetRecord
If you change a record that has already been approved, the original record retains this ID; the changed record is assigned another unique ID.
timeSheetRecord
- The system assigns time sheet records a counter. The counter represents a record's unique database ID.public void setPersonWorkAgreement(@Nullable String personWorkAgreement)
Original property name from the Odata EDM: PersonWorkAgreement
When you work with infotype records, this field allows you to use the Fast entry feature. Fast entry enables you to create numerous infotype records without having to exit and re-enter the infotype window.To select the object that the infotype record should belong to, either:Enter the object's eight-digit codeUse the matchcode feature to search for the object
personWorkAgreement
- Contains a unique eight-digit numerical code, that represents a specific object (for example, an
organizational unit, qualification or business event).public void setTimeSheetDate(@Nullable LocalDateTime timeSheetDate)
Original property name from the Odata EDM: TimeSheetDate
timeSheetDate
- Datepublic void setTimeSheetIsReleasedOnSave(@Nullable Boolean timeSheetIsReleasedOnSave)
Original property name from the Odata EDM: TimeSheetIsReleasedOnSave
timeSheetIsReleasedOnSave
- Determines that the system releases changed data records immediately when you save them. You do not
have to release them manually.public void setTimeSheetPredecessorRecord(@Nullable String timeSheetPredecessorRecord)
Original property name from the Odata EDM: TimeSheetPredecessorRecord
timeSheetPredecessorRecord
- The reference counter is assigned to a record that was created when an existing record was changed.
The new record is assigned a new counter and, as a reference counter, the ID of the original record.
The reference counter provides a link between the new and original record.public void setTimeSheetStatus(@Nullable String timeSheetStatus)
Original property name from the Odata EDM: TimeSheetStatus
Status IndicatorIn process 10Released for approval 20Approved 30Approval rejected 40Changed after approval 50Cancelled 60
timeSheetStatus
- Each time sheet record is assigned a status. This status indicates the processing status of the
selected record.public void setTimeSheetIsExecutedInTestRun(@Nullable Boolean timeSheetIsExecutedInTestRun)
Original property name from the Odata EDM: TimeSheetIsExecutedInTestRun
timeSheetIsExecutedInTestRun
- Yes/No Switch with Values 'SPACE' and 'X'public void setTimeSheetOperation(@Nullable String timeSheetOperation)
Original property name from the Odata EDM: TimeSheetOperation
timeSheetOperation
- CATS Operations : 'C' , 'U' , 'D'protected String getEntityCollection()
getEntityCollection
in class VdmEntity<TimeSheetEntry>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<TimeSheetEntry>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<TimeSheetEntry>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<TimeSheetEntry>
@Nonnull public static <T> TimeSheetEntryField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.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.@Nonnull public static <T,DomainT> TimeSheetEntryField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<TimeSheetEntry>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<TimeSheetEntry>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<TimeSheetEntry>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<TimeSheetEntry>
public static TimeSheetEntry.TimeSheetEntryBuilder builder()
@Nullable public TimeSheetDataFields getTimeSheetDataFields()
Original property name from the Odata EDM: TimeSheetDataFields
@Nullable public String getPersonWorkAgreementExternalID()
Original property name from the Odata EDM: PersonWorkAgreementExternalID
@Nullable public String getCompanyCode()
Original property name from the Odata EDM: CompanyCode
@Nullable public String getTimeSheetRecord()
Original property name from the Odata EDM: TimeSheetRecord
If you change a record that has already been approved, the original record retains this ID; the changed record is assigned another unique ID.
@Nullable public String getPersonWorkAgreement()
Original property name from the Odata EDM: PersonWorkAgreement
When you work with infotype records, this field allows you to use the Fast entry feature. Fast entry enables you to create numerous infotype records without having to exit and re-enter the infotype window.To select the object that the infotype record should belong to, either:Enter the object's eight-digit codeUse the matchcode feature to search for the object
@Nullable public LocalDateTime getTimeSheetDate()
Original property name from the Odata EDM: TimeSheetDate
@Nullable public Boolean getTimeSheetIsReleasedOnSave()
Original property name from the Odata EDM: TimeSheetIsReleasedOnSave
@Nullable public String getTimeSheetPredecessorRecord()
Original property name from the Odata EDM: TimeSheetPredecessorRecord
@Nullable public String getTimeSheetStatus()
Original property name from the Odata EDM: TimeSheetStatus
Status IndicatorIn process 10Released for approval 20Approved 30Approval rejected 40Changed after approval 50Cancelled 60
@Nullable public Boolean getTimeSheetIsExecutedInTestRun()
Original property name from the Odata EDM: TimeSheetIsExecutedInTestRun
@Nullable public String getTimeSheetOperation()
Original property name from the Odata EDM: TimeSheetOperation
public String toString()
toString
in class VdmObject<TimeSheetEntry>
public boolean equals(Object o)
equals
in class VdmObject<TimeSheetEntry>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<TimeSheetEntry>
public int hashCode()
hashCode
in class VdmObject<TimeSheetEntry>
Copyright © 2019 SAP SE. All rights reserved.