Class LabelTemplate
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: LabelTemplate_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of LabelTemplate instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<LabelTemplate,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<LabelTemplate>Selector for all available fields of LabelTemplate.static final SimpleProperty.String<LabelTemplate>static final SimpleProperty.DateTime<LabelTemplate>static final SimpleProperty.DateTime<LabelTemplate>static final SimpleProperty.String<LabelTemplate>static final SimpleProperty.String<LabelTemplate>static final SimpleProperty.String<LabelTemplate>static final NavigationProperty.Collection<LabelTemplate,LabelTemplateVersion> Use with available request builders to apply the _PCLblTemplateVersion navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionLabelTemplate(String pCLblTemplateID, String pCLblTemplateName, OffsetDateTime creationDateTime, String createdByUser, OffsetDateTime lastChangeDateTime, String lastChangedByUser, Collection<SAP__Message> _Messages, List<LabelTemplateVersion> to_PCLblTemplateVersion) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPCLblTemplateVersion(LabelTemplateVersion... entity) Adds elements to the list of associated LabelTemplateVersion entities.builder()protected booleanbooleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 12Constraints: Nullable, Precision: 7protected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Nullable, Precision: 7Constraints: Not nullable, Maximum length: 12(Key Field) Constraints: Not nullable, Maximum length: 21Constraints: Not nullable, Maximum length: 255io.vavr.control.Option<List<LabelTemplateVersion>>Retrieval of associated LabelTemplateVersion entities (one to many).getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDateTime(OffsetDateTime creationDateTime) Constraints: Nullable, Precision: 7voidsetLastChangeDateTime(OffsetDateTime lastChangeDateTime) Constraints: Nullable, Precision: 7voidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetPCLblTemplateID(String pCLblTemplateID) (Key Field) Constraints: Not nullable, Maximum length: 21voidsetPCLblTemplateName(String pCLblTemplateName) Constraints: Not nullable, Maximum length: 255voidOverwrites the list of associated LabelTemplateVersion entities for the loaded navigation property _PCLblTemplateVersion.toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of LabelTemplate. -
PC_LBL_TEMPLATE_ID
-
PC_LBL_TEMPLATE_NAME
-
CREATION_DATE_TIME
-
CREATED_BY_USER
-
LAST_CHANGE_DATE_TIME
-
LAST_CHANGED_BY_USER
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__P_C_LBL_TEMPLATE_VERSION
public static final NavigationProperty.Collection<LabelTemplate,LabelTemplateVersion> TO__P_C_LBL_TEMPLATE_VERSIONUse with available request builders to apply the _PCLblTemplateVersion navigation property to query operations.
-
-
Constructor Details
-
LabelTemplate
public LabelTemplate() -
LabelTemplate
public LabelTemplate(@Nullable String pCLblTemplateID, @Nullable String pCLblTemplateName, @Nullable OffsetDateTime creationDateTime, @Nullable String createdByUser, @Nullable OffsetDateTime lastChangeDateTime, @Nullable String lastChangedByUser, @Nullable Collection<SAP__Message> _Messages, List<LabelTemplateVersion> to_PCLblTemplateVersion)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<LabelTemplate>
-
setPCLblTemplateID
(Key Field) Constraints: Not nullable, Maximum length: 21Original property name from the Odata EDM: PCLblTemplateID
- Parameters:
pCLblTemplateID- Identifier
-
setPCLblTemplateName
Constraints: Not nullable, Maximum length: 255Original property name from the Odata EDM: PCLblTemplateName
- Parameters:
pCLblTemplateName- Label Template Name
-
setCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- Created On
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Created By
-
setLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Parameters:
lastChangeDateTime- Last Changed On
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Last Changed By
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<LabelTemplate>
-
getKey
- Overrides:
getKeyin classVdmObject<LabelTemplate>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<LabelTemplate>
-
fromMap
- Overrides:
fromMapin classVdmObject<LabelTemplate>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<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
Optionresult state will beempty.- Returns:
- If the information for navigation property _PCLblTemplateVersion is already loaded, the result
will contain the LabelTemplateVersion entities. If not, an
Optionwith result stateemptyis returned.
-
setPCLblTemplateVersion
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
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
-
getPCLblTemplateID
(Key Field) Constraints: Not nullable, Maximum length: 21Original property name from the Odata EDM: PCLblTemplateID
- Returns:
- Identifier
-
getPCLblTemplateName
Constraints: Not nullable, Maximum length: 255Original property name from the Odata EDM: PCLblTemplateName
- Returns:
- Label Template Name
-
getCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Returns:
- Created On
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Created By
-
getLastChangeDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: LastChangeDateTime
- Returns:
- Last Changed On
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Last Changed By
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<LabelTemplate>
-
equals
- Overrides:
equalsin classVdmEntity<LabelTemplate>
-
canEqual
- Overrides:
canEqualin classVdmEntity<LabelTemplate>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<LabelTemplate>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<LabelTemplate>
-