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

public class MaintnanceOrderPhaseControl extends VdmEntity<MaintnanceOrderPhaseControl>
Maintenance Order Phase Control

Original entity name from the Odata EDM: MaintnanceOrderPhaseControl_Type

  • Field Details

    • ALL_FIELDS

      public static final MaintnanceOrderPhaseControlSelectable ALL_FIELDS
      Selector for all available fields of MaintnanceOrderPhaseControl.
    • MAINTENANCE_ORDER

      public static final MaintnanceOrderPhaseControlField<String> MAINTENANCE_ORDER
      Use with available fluent helpers to apply the MaintenanceOrder field to query operations.
    • MAINTENANCE_PHASE_CONTROL

      public static final MaintnanceOrderPhaseControlField<String> MAINTENANCE_PHASE_CONTROL
      Use with available fluent helpers to apply the MaintenancePhaseControl field to query operations.
    • MAINTENANCE_PHASE_CONTROL_NAME

      public static final MaintnanceOrderPhaseControlField<String> MAINTENANCE_PHASE_CONTROL_NAME
      Use with available fluent helpers to apply the MaintenancePhaseControlName field to query operations.
    • MAINTENANCE_PHASE_CONTROL_TEXT

      public static final MaintnanceOrderPhaseControlField<String> MAINTENANCE_PHASE_CONTROL_TEXT
      Use with available fluent helpers to apply the MaintenancePhaseControlText field to query operations.
    • MAINT_PHSE_CTRL_IS_SET_AUTOMLY

      public static final MaintnanceOrderPhaseControlField<Boolean> MAINT_PHSE_CTRL_IS_SET_AUTOMLY
      Use with available fluent helpers to apply the MaintPhseCtrlIsSetAutomly field to query operations.
    • MAINT_PHASE_CONTROL_AUTHORITY_CODE

      public static final MaintnanceOrderPhaseControlField<String> MAINT_PHASE_CONTROL_AUTHORITY_CODE
      Use with available fluent helpers to apply the MaintPhaseControlAuthorityCode field to query operations.
    • MAINT_PROCG_PHSE_CTRL_ACTVTN_CODE

      public static final MaintnanceOrderPhaseControlField<String> MAINT_PROCG_PHSE_CTRL_ACTVTN_CODE
      Use with available fluent helpers to apply the MaintProcgPhseCtrlActvtnCode field to query operations.
    • MAINT_PROCG_PHSE_CTRL_ACTVTN_DESC

      public static final MaintnanceOrderPhaseControlField<String> MAINT_PROCG_PHSE_CTRL_ACTVTN_DESC
      Use with available fluent helpers to apply the MaintProcgPhseCtrlActvtnDesc field to query operations.
    • EAM_PROCESS_PHASE_CODE

      public static final MaintnanceOrderPhaseControlField<String> EAM_PROCESS_PHASE_CODE
      Use with available fluent helpers to apply the EAMProcessPhaseCode field to query operations.
    • EAM_PROCESS_SUB_PHASE_CODE

      public static final MaintnanceOrderPhaseControlField<String> EAM_PROCESS_SUB_PHASE_CODE
      Use with available fluent helpers to apply the EAMProcessSubPhaseCode field to query operations.
    • MAINT_OBJ_PHSE_CTRL_STATUS_IS_ACTIVE

      public static final MaintnanceOrderPhaseControlField<Boolean> MAINT_OBJ_PHSE_CTRL_STATUS_IS_ACTIVE
      Use with available fluent helpers to apply the MaintObjPhseCtrlStatusIsActive field to query operations.
    • MAINT_OBJ_PHASE_CTRL_CODE_SET_BY

      public static final MaintnanceOrderPhaseControlField<String> MAINT_OBJ_PHASE_CTRL_CODE_SET_BY
      Use with available fluent helpers to apply the MaintObjPhaseCtrlCodeSetBy field to query operations.
    • MAINT_OBJ_PHSE_CTRL_CODE_SET_DTE_TIME

      public static final MaintnanceOrderPhaseControlField<ZonedDateTime> MAINT_OBJ_PHSE_CTRL_CODE_SET_DTE_TIME
      Use with available fluent helpers to apply the MaintObjPhseCtrlCodeSetDteTime field to query operations.
    • MAINT_OBJ_PHASE_CTRL_CODE_RESET_BY

      public static final MaintnanceOrderPhaseControlField<String> MAINT_OBJ_PHASE_CTRL_CODE_RESET_BY
      Use with available fluent helpers to apply the MaintObjPhaseCtrlCodeResetBy field to query operations.
    • MAINT_OBJ_PHSE_CTRL_CODE_RSET_DTE_TME

      public static final MaintnanceOrderPhaseControlField<ZonedDateTime> MAINT_OBJ_PHSE_CTRL_CODE_RSET_DTE_TME
      Use with available fluent helpers to apply the MaintObjPhseCtrlCodeRsetDteTme field to query operations.
    • TO_MAINTENANCE_ORDER

      public static final MaintnanceOrderPhaseControlOneToOneLink<MaintenanceOrder> TO_MAINTENANCE_ORDER
      Use with available fluent helpers to apply the to_MaintenanceOrder navigation property to query operations.
  • Constructor Details

    • MaintnanceOrderPhaseControl

      public MaintnanceOrderPhaseControl()
    • MaintnanceOrderPhaseControl

      public MaintnanceOrderPhaseControl(@Nullable String maintenanceOrder, @Nullable String maintenancePhaseControl, @Nullable String maintenancePhaseControlName, @Nullable String maintenancePhaseControlText, @Nullable Boolean maintPhseCtrlIsSetAutomly, @Nullable String maintPhaseControlAuthorityCode, @Nullable String maintProcgPhseCtrlActvtnCode, @Nullable String maintProcgPhseCtrlActvtnDesc, @Nullable String eAMProcessPhaseCode, @Nullable String eAMProcessSubPhaseCode, @Nullable Boolean maintObjPhseCtrlStatusIsActive, @Nullable String maintObjPhaseCtrlCodeSetBy, @Nullable ZonedDateTime maintObjPhseCtrlCodeSetDteTime, @Nullable String maintObjPhaseCtrlCodeResetBy, @Nullable ZonedDateTime maintObjPhseCtrlCodeRsetDteTme, @Nullable MaintenanceOrder toMaintenanceOrder)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: MaintenanceOrder

      Parameters:
      maintenanceOrder - Order Number
    • setMaintenancePhaseControl

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

      Original property name from the Odata EDM: MaintenancePhaseControl

      Parameters:
      maintenancePhaseControl - Phase Control Code
    • setMaintenancePhaseControlName

      public void setMaintenancePhaseControlName(@Nullable String maintenancePhaseControlName)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaintenancePhaseControlName

      Parameters:
      maintenancePhaseControlName - Phase Control Code
    • setMaintenancePhaseControlText

      public void setMaintenancePhaseControlText(@Nullable String maintenancePhaseControlText)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MaintenancePhaseControlText

      Parameters:
      maintenancePhaseControlText - Description of the Phase Control Code
    • setMaintPhseCtrlIsSetAutomly

      public void setMaintPhseCtrlIsSetAutomly(@Nullable Boolean maintPhseCtrlIsSetAutomly)
      Constraints: none

      Original property name from the Odata EDM: MaintPhseCtrlIsSetAutomly

      Parameters:
      maintPhseCtrlIsSetAutomly - Phase Control Code: Set Automatically
    • setMaintPhaseControlAuthorityCode

      public void setMaintPhaseControlAuthorityCode(@Nullable String maintPhaseControlAuthorityCode)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: MaintPhaseControlAuthorityCode

      Parameters:
      maintPhaseControlAuthorityCode - Authorization Key for Phase Control Code
    • setMaintProcgPhseCtrlActvtnCode

      public void setMaintProcgPhseCtrlActvtnCode(@Nullable String maintProcgPhseCtrlActvtnCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: MaintProcgPhseCtrlActvtnCode

      Parameters:
      maintProcgPhseCtrlActvtnCode - Phase Control Key
    • setMaintProcgPhseCtrlActvtnDesc

      public void setMaintProcgPhseCtrlActvtnDesc(@Nullable String maintProcgPhseCtrlActvtnDesc)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: MaintProcgPhseCtrlActvtnDesc

      Parameters:
      maintProcgPhseCtrlActvtnDesc - Short Text for Fixed Values
    • setEAMProcessPhaseCode

      public void setEAMProcessPhaseCode(@Nullable String eAMProcessPhaseCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: EAMProcessPhaseCode

      Parameters:
      eAMProcessPhaseCode - Process Phase
    • setEAMProcessSubPhaseCode

      public void setEAMProcessSubPhaseCode(@Nullable String eAMProcessSubPhaseCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: EAMProcessSubPhaseCode

      Parameters:
      eAMProcessSubPhaseCode - Process Subphase
    • setMaintObjPhseCtrlStatusIsActive

      public void setMaintObjPhseCtrlStatusIsActive(@Nullable Boolean maintObjPhseCtrlStatusIsActive)
      Constraints: none

      Original property name from the Odata EDM: MaintObjPhseCtrlStatusIsActive

      Parameters:
      maintObjPhseCtrlStatusIsActive - The maintObjPhseCtrlStatusIsActive to set.
    • setMaintObjPhaseCtrlCodeSetBy

      public void setMaintObjPhaseCtrlCodeSetBy(@Nullable String maintObjPhaseCtrlCodeSetBy)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: MaintObjPhaseCtrlCodeSetBy

      Parameters:
      maintObjPhaseCtrlCodeSetBy - Business Object Blocker Code Set By User ID
    • setMaintObjPhseCtrlCodeSetDteTime

      public void setMaintObjPhseCtrlCodeSetDteTime(@Nullable ZonedDateTime maintObjPhseCtrlCodeSetDteTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintObjPhseCtrlCodeSetDteTime

      Parameters:
      maintObjPhseCtrlCodeSetDteTime - Business Object Phase Control Code Activated On
    • setMaintObjPhaseCtrlCodeResetBy

      public void setMaintObjPhaseCtrlCodeResetBy(@Nullable String maintObjPhaseCtrlCodeResetBy)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: MaintObjPhaseCtrlCodeResetBy

      Parameters:
      maintObjPhaseCtrlCodeResetBy - Business Object Blocker Code Resolved By User ID
    • setMaintObjPhseCtrlCodeRsetDteTme

      public void setMaintObjPhseCtrlCodeRsetDteTme(@Nullable ZonedDateTime maintObjPhseCtrlCodeRsetDteTme)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintObjPhseCtrlCodeRsetDteTme

      Parameters:
      maintObjPhseCtrlCodeRsetDteTme - Business Object Phase Control Code Deactivated On
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> MaintnanceOrderPhaseControlField<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> MaintnanceOrderPhaseControlField<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<MaintnanceOrderPhaseControl>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<MaintnanceOrderPhaseControl>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<MaintnanceOrderPhaseControl>
    • fetchMaintenanceOrder

      @Nullable public MaintenanceOrder fetchMaintenanceOrder()
      Fetches the MaintenanceOrder entity (one to one) associated with this entity. This corresponds to the OData navigation property to_MaintenanceOrder.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated MaintenanceOrder entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getMaintenanceOrderOrFetch

      @Nullable public MaintenanceOrder getMaintenanceOrderOrFetch()
      Retrieval of associated MaintenanceOrder entity (one to one). This corresponds to the OData navigation property to_MaintenanceOrder.

      If the navigation property to_MaintenanceOrder of a queried MaintnanceOrderPhaseControl is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated MaintenanceOrder entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getMaintenanceOrderIfPresent

      @Nonnull public io.vavr.control.Option<MaintenanceOrder> getMaintenanceOrderIfPresent()
      Retrieval of associated MaintenanceOrder entity (one to one). This corresponds to the OData navigation property to_MaintenanceOrder.

      If the navigation property for an entity MaintnanceOrderPhaseControl has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_MaintenanceOrder is already loaded, the result will contain the MaintenanceOrder entity. If not, an Option with result state empty is returned.
    • setMaintenanceOrder

      public void setMaintenanceOrder(MaintenanceOrder value)
      Overwrites the associated MaintenanceOrder entity for the loaded navigation property to_MaintenanceOrder.
      Parameters:
      value - New MaintenanceOrder entity.
    • builder

    • getMaintenanceOrder

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

      Original property name from the Odata EDM: MaintenanceOrder

      Returns:
      Order Number
    • getMaintenancePhaseControl

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

      Original property name from the Odata EDM: MaintenancePhaseControl

      Returns:
      Phase Control Code
    • getMaintenancePhaseControlName

      @Nullable public String getMaintenancePhaseControlName()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MaintenancePhaseControlName

      Returns:
      Phase Control Code
    • getMaintenancePhaseControlText

      @Nullable public String getMaintenancePhaseControlText()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: MaintenancePhaseControlText

      Returns:
      Description of the Phase Control Code
    • getMaintPhseCtrlIsSetAutomly

      @Nullable public Boolean getMaintPhseCtrlIsSetAutomly()
      Constraints: none

      Original property name from the Odata EDM: MaintPhseCtrlIsSetAutomly

      Returns:
      Phase Control Code: Set Automatically
    • getMaintPhaseControlAuthorityCode

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

      Original property name from the Odata EDM: MaintPhaseControlAuthorityCode

      Returns:
      Authorization Key for Phase Control Code
    • getMaintProcgPhseCtrlActvtnCode

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

      Original property name from the Odata EDM: MaintProcgPhseCtrlActvtnCode

      Returns:
      Phase Control Key
    • getMaintProcgPhseCtrlActvtnDesc

      @Nullable public String getMaintProcgPhseCtrlActvtnDesc()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: MaintProcgPhseCtrlActvtnDesc

      Returns:
      Short Text for Fixed Values
    • getEAMProcessPhaseCode

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

      Original property name from the Odata EDM: EAMProcessPhaseCode

      Returns:
      Process Phase
    • getEAMProcessSubPhaseCode

      @Nullable public String getEAMProcessSubPhaseCode()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: EAMProcessSubPhaseCode

      Returns:
      Process Subphase
    • getMaintObjPhseCtrlStatusIsActive

      @Nullable public Boolean getMaintObjPhseCtrlStatusIsActive()
      Constraints: none

      Original property name from the Odata EDM: MaintObjPhseCtrlStatusIsActive

      Returns:
      The maintObjPhseCtrlStatusIsActive contained in this entity.
    • getMaintObjPhaseCtrlCodeSetBy

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

      Original property name from the Odata EDM: MaintObjPhaseCtrlCodeSetBy

      Returns:
      Business Object Blocker Code Set By User ID
    • getMaintObjPhseCtrlCodeSetDteTime

      @Nullable public ZonedDateTime getMaintObjPhseCtrlCodeSetDteTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintObjPhseCtrlCodeSetDteTime

      Returns:
      Business Object Phase Control Code Activated On
    • getMaintObjPhaseCtrlCodeResetBy

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

      Original property name from the Odata EDM: MaintObjPhaseCtrlCodeResetBy

      Returns:
      Business Object Blocker Code Resolved By User ID
    • getMaintObjPhseCtrlCodeRsetDteTme

      @Nullable public ZonedDateTime getMaintObjPhseCtrlCodeRsetDteTme()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: MaintObjPhseCtrlCodeRsetDteTme

      Returns:
      Business Object Phase Control Code Deactivated On
    • toString

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

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

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

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