Modifier and Type | Class and Description |
---|---|
static class |
Nutrient.NutrientBuilder
Helper class to allow for fluent creation of Nutrient instances.
|
Modifier and Type | Field and Description |
---|---|
static NutrientSelectable |
ALL_FIELDS
Selector for all available fields of Nutrient.
|
static NutrientField<String> |
LISTED_SUBSTANCE
Use with available fluent helpers to apply the ListedSubstance field to query operations.
|
static NutrientField<String> |
NUTRIENT
Use with available fluent helpers to apply the Nutrient field to query operations.
|
static NutrientField<LocalDateTime> |
NUTRIENT_CHANGE_DATE
Use with available fluent helpers to apply the NutrientChangeDate field to query operations.
|
static NutrientField<String> |
NUTRIENT_CHANGED_BY_USER
Use with available fluent helpers to apply the NutrientChangedByUser field to query operations.
|
static NutrientField<String> |
NUTRIENT_CREATED_BY_USER
Use with available fluent helpers to apply the NutrientCreatedByUser field to query operations.
|
static NutrientField<LocalDateTime> |
NUTRIENT_CREATION_DATE
Use with available fluent helpers to apply the NutrientCreationDate field to query operations.
|
static NutrientField<String> |
NUTRIENT_INTERNAL_ID
Use with available fluent helpers to apply the NutrientInternalID field to query operations.
|
static NutrientField<LocalDateTime> |
NUTRIENT_VALIDITY_END_DATE
Use with available fluent helpers to apply the NutrientValidityEndDate field to query operations.
|
static NutrientField<LocalDateTime> |
NUTRIENT_VALIDITY_START_DATE
Use with available fluent helpers to apply the NutrientValidityStartDate field to query operations.
|
static NutrientOneToOneLink<NutrientBaseUnitOfMeasure> |
TO_NUTRIENT_BASE_UNIT_OF_MEASURE
Use with available fluent helpers to apply the to_NutrientBaseUnitOfMeasure navigation property to query
operations.
|
static NutrientOneToOneLink<NutrientDerivedNutrient> |
TO_NUTRIENT_DERIVED_NUTRIENT
Use with available fluent helpers to apply the to_NutrientDerivedNutrient navigation property to query
operations.
|
static NutrientLink<NutrientDescription> |
TO_NUTRIENT_DESCRIPTION
Use with available fluent helpers to apply the to_NutrientDescription navigation property to query
operations.
|
changedOriginalFields
Constructor and Description |
---|
Nutrient() |
Nutrient(String nutrientInternalID,
String nutrient,
LocalDateTime nutrientCreationDate,
String nutrientCreatedByUser,
LocalDateTime nutrientChangeDate,
String nutrientChangedByUser,
LocalDateTime nutrientValidityStartDate,
LocalDateTime nutrientValidityEndDate,
String listedSubstance,
NutrientBaseUnitOfMeasure toNutrientBaseUnitOfMeasure,
NutrientDerivedNutrient toNutrientDerivedNutrient,
List<NutrientDescription> toNutrientDescription) |
Modifier and Type | Method and Description |
---|---|
void |
addNutrientDescription(NutrientDescription... entity)
Adds elements to the list of associated NutrientDescription entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static Nutrient.NutrientBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
NutrientBaseUnitOfMeasure |
fetchNutrientBaseUnitOfMeasure()
Fetches the NutrientBaseUnitOfMeasure entity (one to one) associated with this entity.
|
NutrientDerivedNutrient |
fetchNutrientDerivedNutrient()
Fetches the NutrientDerivedNutrient entity (one to one) associated with this entity.
|
List<NutrientDescription> |
fetchNutrientDescription()
Fetches the NutrientDescription entities (one to many) associated with this entity.
|
static <T> NutrientField<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) |
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
protected Map<String,Object> |
getKey() |
String |
getListedSubstance()
Constraints: Not nullable, Maximum length: 12
|
String |
getNutrient()
Constraints: Not nullable, Maximum length: 12
|
io.vavr.control.Option<NutrientBaseUnitOfMeasure> |
getNutrientBaseUnitOfMeasureIfPresent()
Retrieval of associated NutrientBaseUnitOfMeasure entity (one to one).
|
NutrientBaseUnitOfMeasure |
getNutrientBaseUnitOfMeasureOrFetch()
Retrieval of associated NutrientBaseUnitOfMeasure entity (one to one).
|
LocalDateTime |
getNutrientChangeDate()
Constraints: Not nullable, Precision: 0
|
String |
getNutrientChangedByUser()
Constraints: Not nullable, Maximum length: 12
|
String |
getNutrientCreatedByUser()
Constraints: Not nullable, Maximum length: 12
|
LocalDateTime |
getNutrientCreationDate()
Constraints: Not nullable, Precision: 0
|
io.vavr.control.Option<NutrientDerivedNutrient> |
getNutrientDerivedNutrientIfPresent()
Retrieval of associated NutrientDerivedNutrient entity (one to one).
|
NutrientDerivedNutrient |
getNutrientDerivedNutrientOrFetch()
Retrieval of associated NutrientDerivedNutrient entity (one to one).
|
io.vavr.control.Option<List<NutrientDescription>> |
getNutrientDescriptionIfPresent()
Retrieval of associated NutrientDescription entities (one to many).
|
List<NutrientDescription> |
getNutrientDescriptionOrFetch()
Retrieval of associated NutrientDescription entities (one to many).
|
String |
getNutrientInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 20
|
LocalDateTime |
getNutrientValidityEndDate()
Constraints: Not nullable, Precision: 0
|
LocalDateTime |
getNutrientValidityStartDate()
Constraints: Not nullable, Precision: 0
|
Class<Nutrient> |
getType() |
int |
hashCode() |
void |
setListedSubstance(String listedSubstance)
Constraints: Not nullable, Maximum length: 12
|
void |
setNutrient(String nutrient)
Constraints: Not nullable, Maximum length: 12
|
void |
setNutrientBaseUnitOfMeasure(NutrientBaseUnitOfMeasure value)
Overwrites the associated NutrientBaseUnitOfMeasure entity for the loaded navigation property
to_NutrientBaseUnitOfMeasure.
|
void |
setNutrientChangeDate(LocalDateTime nutrientChangeDate)
Constraints: Not nullable, Precision: 0
|
void |
setNutrientChangedByUser(String nutrientChangedByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setNutrientCreatedByUser(String nutrientCreatedByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setNutrientCreationDate(LocalDateTime nutrientCreationDate)
Constraints: Not nullable, Precision: 0
|
void |
setNutrientDerivedNutrient(NutrientDerivedNutrient value)
Overwrites the associated NutrientDerivedNutrient entity for the loaded navigation property
to_NutrientDerivedNutrient.
|
void |
setNutrientDescription(List<NutrientDescription> value)
Overwrites the list of associated NutrientDescription entities for the loaded navigation property
to_NutrientDescription.
|
void |
setNutrientInternalID(String nutrientInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 20
|
void |
setNutrientValidityEndDate(LocalDateTime nutrientValidityEndDate)
Constraints: Not nullable, Precision: 0
|
void |
setNutrientValidityStartDate(LocalDateTime nutrientValidityStartDate)
Constraints: Not nullable, Precision: 0
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final NutrientSelectable ALL_FIELDS
public static final NutrientField<String> NUTRIENT_INTERNAL_ID
public static final NutrientField<String> NUTRIENT
public static final NutrientField<LocalDateTime> NUTRIENT_CREATION_DATE
public static final NutrientField<String> NUTRIENT_CREATED_BY_USER
public static final NutrientField<LocalDateTime> NUTRIENT_CHANGE_DATE
public static final NutrientField<String> NUTRIENT_CHANGED_BY_USER
public static final NutrientField<LocalDateTime> NUTRIENT_VALIDITY_START_DATE
public static final NutrientField<LocalDateTime> NUTRIENT_VALIDITY_END_DATE
public static final NutrientField<String> LISTED_SUBSTANCE
public static final NutrientOneToOneLink<NutrientBaseUnitOfMeasure> TO_NUTRIENT_BASE_UNIT_OF_MEASURE
public static final NutrientOneToOneLink<NutrientDerivedNutrient> TO_NUTRIENT_DERIVED_NUTRIENT
public static final NutrientLink<NutrientDescription> TO_NUTRIENT_DESCRIPTION
public Nutrient()
public Nutrient(@Nullable String nutrientInternalID, @Nullable String nutrient, @Nullable LocalDateTime nutrientCreationDate, @Nullable String nutrientCreatedByUser, @Nullable LocalDateTime nutrientChangeDate, @Nullable String nutrientChangedByUser, @Nullable LocalDateTime nutrientValidityStartDate, @Nullable LocalDateTime nutrientValidityEndDate, @Nullable String listedSubstance, @Nullable NutrientBaseUnitOfMeasure toNutrientBaseUnitOfMeasure, @Nullable NutrientDerivedNutrient toNutrientDerivedNutrient, List<NutrientDescription> toNutrientDescription)
public void setNutrientInternalID(@Nullable String nutrientInternalID)
Original property name from the Odata EDM: NutrientInternalID
nutrientInternalID
- Nutrient Internal IDpublic void setNutrient(@Nullable String nutrient)
Original property name from the Odata EDM: Nutrient
nutrient
- Nutrientpublic void setNutrientCreationDate(@Nullable LocalDateTime nutrientCreationDate)
Original property name from the Odata EDM: NutrientCreationDate
nutrientCreationDate
- Created Onpublic void setNutrientCreatedByUser(@Nullable String nutrientCreatedByUser)
Original property name from the Odata EDM: NutrientCreatedByUser
nutrientCreatedByUser
- Created Bypublic void setNutrientChangeDate(@Nullable LocalDateTime nutrientChangeDate)
Original property name from the Odata EDM: NutrientChangeDate
nutrientChangeDate
- Changed Onpublic void setNutrientChangedByUser(@Nullable String nutrientChangedByUser)
Original property name from the Odata EDM: NutrientChangedByUser
nutrientChangedByUser
- Last Changed Bypublic void setNutrientValidityStartDate(@Nullable LocalDateTime nutrientValidityStartDate)
Original property name from the Odata EDM: NutrientValidityStartDate
nutrientValidityStartDate
- Valid-From Datepublic void setNutrientValidityEndDate(@Nullable LocalDateTime nutrientValidityEndDate)
Original property name from the Odata EDM: NutrientValidityEndDate
nutrientValidityEndDate
- Valid-To Datepublic void setListedSubstance(@Nullable String listedSubstance)
Original property name from the Odata EDM: ListedSubstance
listedSubstance
- Listed Substanceprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<Nutrient>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<Nutrient>
@Nonnull public static <T> NutrientField<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> NutrientField<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<Nutrient>
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<Nutrient>
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<Nutrient>
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()
VdmEntity
getDefaultServicePath
in class VdmEntity<Nutrient>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<Nutrient>
@Nullable public NutrientBaseUnitOfMeasure fetchNutrientBaseUnitOfMeasure() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not
associated.com.sap.cloud.sdk.odatav2.connectivity.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.@Nullable public NutrientBaseUnitOfMeasure getNutrientBaseUnitOfMeasureOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_NutrientBaseUnitOfMeasure of a queried Nutrient 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<NutrientBaseUnitOfMeasure> getNutrientBaseUnitOfMeasureIfPresent()
If the navigation property for an entity Nutrient has not been resolved yet, this method will not
query further information. Instead its Option
result state will be empty
.
Option
with
result state empty
is returned.public void setNutrientBaseUnitOfMeasure(NutrientBaseUnitOfMeasure value)
value
- New NutrientBaseUnitOfMeasure entity.@Nullable public NutrientDerivedNutrient fetchNutrientDerivedNutrient() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not
associated.com.sap.cloud.sdk.odatav2.connectivity.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.@Nullable public NutrientDerivedNutrient getNutrientDerivedNutrientOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_NutrientDerivedNutrient of a queried Nutrient 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<NutrientDerivedNutrient> getNutrientDerivedNutrientIfPresent()
If the navigation property for an entity Nutrient has not been resolved yet, this method will not
query further information. Instead its Option
result state will be empty
.
Option
with result
state empty
is returned.public void setNutrientDerivedNutrient(NutrientDerivedNutrient value)
value
- New NutrientDerivedNutrient entity.@Nonnull public List<NutrientDescription> fetchNutrientDescription() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public List<NutrientDescription> getNutrientDescriptionOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_NutrientDescription of a queried Nutrient 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.
com.sap.cloud.sdk.odatav2.connectivity.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.@Nonnull public io.vavr.control.Option<List<NutrientDescription>> getNutrientDescriptionIfPresent()
If the navigation property for an entity Nutrient has not been resolved yet, this method will not
query further information. Instead its Option
result state will be empty
.
Option
with result state
empty
is returned.public void setNutrientDescription(@Nonnull List<NutrientDescription> value)
If the navigation property to_NutrientDescription of a queried Nutrient 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.
value
- List of NutrientDescription entities.public void addNutrientDescription(NutrientDescription... entity)
If the navigation property to_NutrientDescription of a queried Nutrient 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.
entity
- Array of NutrientDescription entities.@Nonnull public static Nutrient.NutrientBuilder builder()
@Nullable public String getNutrientInternalID()
Original property name from the Odata EDM: NutrientInternalID
@Nullable public String getNutrient()
Original property name from the Odata EDM: Nutrient
@Nullable public LocalDateTime getNutrientCreationDate()
Original property name from the Odata EDM: NutrientCreationDate
@Nullable public String getNutrientCreatedByUser()
Original property name from the Odata EDM: NutrientCreatedByUser
@Nullable public LocalDateTime getNutrientChangeDate()
Original property name from the Odata EDM: NutrientChangeDate
@Nullable public String getNutrientChangedByUser()
Original property name from the Odata EDM: NutrientChangedByUser
@Nullable public LocalDateTime getNutrientValidityStartDate()
Original property name from the Odata EDM: NutrientValidityStartDate
@Nullable public LocalDateTime getNutrientValidityEndDate()
Original property name from the Odata EDM: NutrientValidityEndDate
@Nullable public String getListedSubstance()
Original property name from the Odata EDM: ListedSubstance
Copyright © 2021 SAP SE. All rights reserved.