java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<LabelTemplate>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.labeltemplatemetadata.LabelTemplate
All Implemented Interfaces:
VdmEntitySet

public class LabelTemplate extends VdmEntity<LabelTemplate> implements VdmEntitySet
Label Template Metadata

Original entity name from the Odata EDM: LabelTemplate_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setPCLblTemplateID(@Nullable String pCLblTemplateID)
      (Key Field) Constraints: Not nullable, Maximum length: 21

      Original property name from the Odata EDM: PCLblTemplateID

      Parameters:
      pCLblTemplateID - Identifier
    • setPCLblTemplateName

      public void setPCLblTemplateName(@Nullable String pCLblTemplateName)
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: PCLblTemplateName

      Parameters:
      pCLblTemplateName - Label Template Name
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Created On
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable OffsetDateTime lastChangeDateTime)
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - Last Changed On
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Last Changed By
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<LabelTemplate>
    • toMapOfFields

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

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

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

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

      @Nonnull public io.vavr.control.Option<List<LabelTemplateVersion>> getPCLblTemplateVersionIfPresent()
      Retrieval of associated LabelTemplateVersion entities (one to many). This corresponds to the OData navigation property _PCLblTemplateVersion.

      If the navigation property for an entity LabelTemplate 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 _PCLblTemplateVersion is already loaded, the result will contain the LabelTemplateVersion entities. If not, an Option with result state empty is returned.
    • setPCLblTemplateVersion

      public void setPCLblTemplateVersion(@Nonnull List<LabelTemplateVersion> value)
      Overwrites the list of associated LabelTemplateVersion entities for the loaded navigation property _PCLblTemplateVersion.

      If the navigation property _PCLblTemplateVersion of a queried LabelTemplate 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.

      Parameters:
      value - List of LabelTemplateVersion entities.
    • addPCLblTemplateVersion

      public void addPCLblTemplateVersion(LabelTemplateVersion... entity)
      Adds elements to the list of associated LabelTemplateVersion entities. This corresponds to the OData navigation property _PCLblTemplateVersion.

      If the navigation property _PCLblTemplateVersion of a queried LabelTemplate 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.

      Parameters:
      entity - Array of LabelTemplateVersion entities.
    • builder

      @Nonnull public static LabelTemplate.LabelTemplateBuilder builder()
    • getPCLblTemplateID

      @Nullable public String getPCLblTemplateID()
      (Key Field) Constraints: Not nullable, Maximum length: 21

      Original property name from the Odata EDM: PCLblTemplateID

      Returns:
      Identifier
    • getPCLblTemplateName

      @Nullable public String getPCLblTemplateName()
      Constraints: Not nullable, Maximum length: 255

      Original property name from the Odata EDM: PCLblTemplateName

      Returns:
      Label Template Name
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Created On
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By
    • getLastChangeDateTime

      @Nullable public OffsetDateTime getLastChangeDateTime()
      Constraints: Nullable, Precision: 7

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      Last Changed On
    • getLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Last Changed By
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<LabelTemplate>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<LabelTemplate>