Class SituationTemplate
Original entity name from the Odata EDM: SituationTemplateType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SituationTemplate instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SituationTemplateSelectableSelector for all available fields of SituationTemplate.static final SituationTemplateField<Boolean>Use with available fluent helpers to apply the SitnDefDataContextIsEnabled field to query operations.static final SituationTemplateField<String>Use with available fluent helpers to apply the SitnDefTemplateID field to query operations.static final SituationTemplateLink<SituationAction>Use with available fluent helpers to apply the to_SituationAction navigation property to query operations.static final SituationTemplateLink<SituationTemplateText>Use with available fluent helpers to apply the to_SituationTemplateText navigation property to query operations.static final SituationTemplateLink<SituationType>Use with available fluent helpers to apply the to_SituationType navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionSituationTemplate(String sitnDefTemplateID, Boolean sitnDefDataContextIsEnabled, List<SituationAction> toSituationAction, List<SituationTemplateText> toSituationTemplateText, List<SituationType> toSituationType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSituationAction(SituationAction... entity) Adds elements to the list of associated SituationAction entities.voidaddSituationTemplateText(SituationTemplateText... entity) Adds elements to the list of associated SituationTemplateText entities.voidaddSituationType(SituationType... entity) Adds elements to the list of associated SituationType entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the SituationAction entities (one to many) associated with this entity.Fetches the SituationTemplateText entities (one to many) associated with this entity.Fetches the SituationType entities (one to many) associated with this entity.static <T,DomainT>
SituationTemplateField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> SituationTemplateField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidprotected Stringprotected StringgetKey()Constraints: none(Key Field) Constraints: Not nullable, Maximum length: 32io.vavr.control.Option<List<SituationAction>>Retrieval of associated SituationAction entities (one to many).Retrieval of associated SituationAction entities (one to many).io.vavr.control.Option<List<SituationTemplateText>>Retrieval of associated SituationTemplateText entities (one to many).Retrieval of associated SituationTemplateText entities (one to many).io.vavr.control.Option<List<SituationType>>Retrieval of associated SituationType entities (one to many).Retrieval of associated SituationType entities (one to many).getType()inthashCode()protected voidsetServicePathForFetch(String servicePathForFetch) voidsetSitnDefDataContextIsEnabled(Boolean sitnDefDataContextIsEnabled) Constraints: nonevoidsetSitnDefTemplateID(String sitnDefTemplateID) (Key Field) Constraints: Not nullable, Maximum length: 32voidsetSituationAction(List<SituationAction> value) Overwrites the list of associated SituationAction entities for the loaded navigation property to_SituationAction.voidOverwrites the list of associated SituationTemplateText entities for the loaded navigation property to_SituationTemplateText.voidsetSituationType(List<SituationType> value) Overwrites the list of associated SituationType entities for the loaded navigation property to_SituationType.toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
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 SituationTemplate. -
SITN_DEF_TEMPLATE_ID
Use with available fluent helpers to apply the SitnDefTemplateID field to query operations. -
SITN_DEF_DATA_CONTEXT_IS_ENABLED
Use with available fluent helpers to apply the SitnDefDataContextIsEnabled field to query operations. -
TO_SITUATION_ACTION
Use with available fluent helpers to apply the to_SituationAction navigation property to query operations. -
TO_SITUATION_TEMPLATE_TEXT
Use with available fluent helpers to apply the to_SituationTemplateText navigation property to query operations. -
TO_SITUATION_TYPE
Use with available fluent helpers to apply the to_SituationType navigation property to query operations.
-
-
Constructor Details
-
SituationTemplate
public SituationTemplate() -
SituationTemplate
public SituationTemplate(@Nullable String sitnDefTemplateID, @Nullable Boolean sitnDefDataContextIsEnabled, List<SituationAction> toSituationAction, List<SituationTemplateText> toSituationTemplateText, List<SituationType> toSituationType)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SituationTemplate>
-
setSitnDefTemplateID
(Key Field) Constraints: Not nullable, Maximum length: 32Original property name from the Odata EDM: SitnDefTemplateID
- Parameters:
sitnDefTemplateID- Situation Standard Template ID
-
setSitnDefDataContextIsEnabled
Constraints: noneOriginal property name from the Odata EDM: SitnDefDataContextIsEnabled
- Parameters:
sitnDefDataContextIsEnabled- Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SituationTemplate>
-
getKey
- Overrides:
getKeyin classVdmObject<SituationTemplate>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SituationTemplate>
-
fromMap
- Overrides:
fromMapin classVdmObject<SituationTemplate>
-
field
@Nonnull public static <T> SituationTemplateField<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> SituationTemplateField<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 fieldfieldName- 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
- Overrides:
getDestinationForFetchin classVdmEntity<SituationTemplate>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<SituationTemplate>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<SituationTemplate>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SituationTemplate>
-
fetchSituationAction
Fetches the SituationAction entities (one to many) associated with this entity. This corresponds to the OData navigation property to_SituationAction.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SituationAction entities. If no entities are associated then an empty list is returned.
- 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.
-
getSituationActionOrFetch
Retrieval of associated SituationAction entities (one to many). This corresponds to the OData navigation property to_SituationAction.If the navigation property to_SituationAction of a queried SituationTemplate 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 SituationAction entities.
- 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.
-
getSituationActionIfPresent
Retrieval of associated SituationAction entities (one to many). This corresponds to the OData navigation property to_SituationAction.If the navigation property for an entity SituationTemplate 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 to_SituationAction is already loaded, the result will
contain the SituationAction entities. If not, an
Optionwith result stateemptyis returned.
-
setSituationAction
Overwrites the list of associated SituationAction entities for the loaded navigation property to_SituationAction.If the navigation property to_SituationAction of a queried SituationTemplate 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 SituationAction entities.
-
addSituationAction
Adds elements to the list of associated SituationAction entities. This corresponds to the OData navigation property to_SituationAction.If the navigation property to_SituationAction of a queried SituationTemplate 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 SituationAction entities.
-
fetchSituationTemplateText
Fetches the SituationTemplateText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_SituationTemplateText.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SituationTemplateText entities. If no entities are associated then an empty list is returned.
- 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.
-
getSituationTemplateTextOrFetch
Retrieval of associated SituationTemplateText entities (one to many). This corresponds to the OData navigation property to_SituationTemplateText.If the navigation property to_SituationTemplateText of a queried SituationTemplate 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 SituationTemplateText entities.
- 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.
-
getSituationTemplateTextIfPresent
@Nonnull public io.vavr.control.Option<List<SituationTemplateText>> getSituationTemplateTextIfPresent()Retrieval of associated SituationTemplateText entities (one to many). This corresponds to the OData navigation property to_SituationTemplateText.If the navigation property for an entity SituationTemplate 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 to_SituationTemplateText is already loaded, the result
will contain the SituationTemplateText entities. If not, an
Optionwith result stateemptyis returned.
-
setSituationTemplateText
Overwrites the list of associated SituationTemplateText entities for the loaded navigation property to_SituationTemplateText.If the navigation property to_SituationTemplateText of a queried SituationTemplate 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 SituationTemplateText entities.
-
addSituationTemplateText
Adds elements to the list of associated SituationTemplateText entities. This corresponds to the OData navigation property to_SituationTemplateText.If the navigation property to_SituationTemplateText of a queried SituationTemplate 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 SituationTemplateText entities.
-
fetchSituationType
Fetches the SituationType entities (one to many) associated with this entity. This corresponds to the OData navigation property to_SituationType.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SituationType entities. If no entities are associated then an empty list is returned.
- 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.
-
getSituationTypeOrFetch
Retrieval of associated SituationType entities (one to many). This corresponds to the OData navigation property to_SituationType.If the navigation property to_SituationType of a queried SituationTemplate 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 SituationType entities.
- 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.
-
getSituationTypeIfPresent
Retrieval of associated SituationType entities (one to many). This corresponds to the OData navigation property to_SituationType.If the navigation property for an entity SituationTemplate 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 to_SituationType is already loaded, the result will
contain the SituationType entities. If not, an
Optionwith result stateemptyis returned.
-
setSituationType
Overwrites the list of associated SituationType entities for the loaded navigation property to_SituationType.If the navigation property to_SituationType of a queried SituationTemplate 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 SituationType entities.
-
addSituationType
Adds elements to the list of associated SituationType entities. This corresponds to the OData navigation property to_SituationType.If the navigation property to_SituationType of a queried SituationTemplate 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 SituationType entities.
-
builder
-
getSitnDefTemplateID
(Key Field) Constraints: Not nullable, Maximum length: 32Original property name from the Odata EDM: SitnDefTemplateID
- Returns:
- Situation Standard Template ID
-
getSitnDefDataContextIsEnabled
Constraints: noneOriginal property name from the Odata EDM: SitnDefDataContextIsEnabled
- Returns:
- Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
-
toString
- Overrides:
toStringin classVdmObject<SituationTemplate>
-
equals
- Overrides:
equalsin classVdmEntity<SituationTemplate>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SituationTemplate>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SituationTemplate>
-