public class SpecificationPhrase extends VdmEntity<SpecificationPhrase>
Original entity name from the Odata EDM: SpecificationPhraseType
Modifier and Type | Class and Description |
---|---|
static class |
SpecificationPhrase.SpecificationPhraseBuilder
Helper class to allow for fluent creation of SpecificationPhrase instances.
|
Modifier and Type | Field and Description |
---|---|
static SpecificationPhraseSelectable |
ALL_FIELDS
Selector for all available fields of SpecificationPhrase.
|
static SpecificationPhraseField<String> |
SPEC_PHRASE
Use with available fluent helpers to apply the SpecPhrase field to query operations.
|
static SpecificationPhraseField<LocalDateTime> |
SPEC_PHRASE_CHANGE_DATE
Use with available fluent helpers to apply the SpecPhraseChangeDate field to query operations.
|
static SpecificationPhraseField<String> |
SPEC_PHRASE_CHG_INT_ID
Use with available fluent helpers to apply the SpecPhraseChgIntID field to query operations.
|
static SpecificationPhraseField<String> |
SPEC_PHRASE_GROUP
Use with available fluent helpers to apply the SpecPhraseGroup field to query operations.
|
static SpecificationPhraseField<String> |
SPEC_PHRASE_INTERNAL_ID
Use with available fluent helpers to apply the SpecPhraseInternalID field to query operations.
|
static SpecificationPhraseField<Boolean> |
SPEC_PHRASE_IS_DELETED
Use with available fluent helpers to apply the SpecPhraseIsDeleted field to query operations.
|
static SpecificationPhraseField<String> |
SPEC_PHRASE_LANGUAGE
Use with available fluent helpers to apply the SpecPhraseLanguage field to query operations.
|
static SpecificationPhraseField<String> |
SPEC_PHRASE_LIBRARY
Use with available fluent helpers to apply the SpecPhraseLibrary field to query operations.
|
static SpecificationPhraseField<String> |
SPEC_PHRASE_NOTE
Use with available fluent helpers to apply the SpecPhraseNote field to query operations.
|
static SpecificationPhraseLink<SpecPhraseSetPhraseAssgmt> |
TO_SPEC_PHRASE_SET_PHRASE_ASSGMT
Use with available fluent helpers to apply the to_SpecPhraseSetPhraseAssgmt navigation property to query
operations.
|
static SpecificationPhraseLink<SpecificationPhraseItem> |
TO_SPECIFICATION_PHRASE_ITEM
Use with available fluent helpers to apply the to_SpecificationPhraseItem navigation property to query
operations.
|
changedOriginalFields
Constructor and Description |
---|
SpecificationPhrase() |
SpecificationPhrase(String specPhraseInternalID,
String specPhraseChgIntID,
String specPhrase,
Boolean specPhraseIsDeleted,
LocalDateTime specPhraseChangeDate,
String specPhraseLibrary,
String specPhraseGroup,
String specPhraseLanguage,
String specPhraseNote,
List<SpecificationPhraseItem> toSpecificationPhraseItem,
List<SpecPhraseSetPhraseAssgmt> toSpecPhraseSetPhraseAssgmt) |
Modifier and Type | Method and Description |
---|---|
void |
addSpecificationPhraseItem(SpecificationPhraseItem... entity)
Adds elements to the list of associated SpecificationPhraseItem entities.
|
void |
addSpecPhraseSetPhraseAssgmt(SpecPhraseSetPhraseAssgmt... entity)
Adds elements to the list of associated SpecPhraseSetPhraseAssgmt entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static SpecificationPhrase.SpecificationPhraseBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<SpecificationPhraseItem> |
fetchSpecificationPhraseItem()
Fetches the SpecificationPhraseItem entities (one to many) associated with this entity.
|
List<SpecPhraseSetPhraseAssgmt> |
fetchSpecPhraseSetPhraseAssgmt()
Fetches the SpecPhraseSetPhraseAssgmt entities (one to many) associated with this entity.
|
static <T> SpecificationPhraseField<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() |
io.vavr.control.Option<List<SpecificationPhraseItem>> |
getSpecificationPhraseItemIfPresent()
Retrieval of associated SpecificationPhraseItem entities (one to many).
|
List<SpecificationPhraseItem> |
getSpecificationPhraseItemOrFetch()
Retrieval of associated SpecificationPhraseItem entities (one to many).
|
String |
getSpecPhrase()
Constraints: Not nullable, Maximum length: 15
|
LocalDateTime |
getSpecPhraseChangeDate()
Constraints: Not nullable, Precision: 0
|
String |
getSpecPhraseChgIntID()
(Key Field) Constraints: Not nullable, Maximum length: 20
|
String |
getSpecPhraseGroup()
Constraints: Not nullable, Maximum length: 10
|
String |
getSpecPhraseInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 20
|
Boolean |
getSpecPhraseIsDeleted()
Constraints: none
|
String |
getSpecPhraseLanguage()
Constraints: Not nullable, Maximum length: 2
|
String |
getSpecPhraseLibrary()
Constraints: Not nullable, Maximum length: 5
|
String |
getSpecPhraseNote()
Constraints: Not nullable, Maximum length: 60
|
io.vavr.control.Option<List<SpecPhraseSetPhraseAssgmt>> |
getSpecPhraseSetPhraseAssgmtIfPresent()
Retrieval of associated SpecPhraseSetPhraseAssgmt entities (one to many).
|
List<SpecPhraseSetPhraseAssgmt> |
getSpecPhraseSetPhraseAssgmtOrFetch()
Retrieval of associated SpecPhraseSetPhraseAssgmt entities (one to many).
|
Class<SpecificationPhrase> |
getType() |
int |
hashCode() |
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setSpecificationPhraseItem(List<SpecificationPhraseItem> value)
Overwrites the list of associated SpecificationPhraseItem entities for the loaded navigation property
to_SpecificationPhraseItem.
|
void |
setSpecPhrase(String specPhrase)
Constraints: Not nullable, Maximum length: 15
|
void |
setSpecPhraseChangeDate(LocalDateTime specPhraseChangeDate)
Constraints: Not nullable, Precision: 0
|
void |
setSpecPhraseChgIntID(String specPhraseChgIntID)
(Key Field) Constraints: Not nullable, Maximum length: 20
|
void |
setSpecPhraseGroup(String specPhraseGroup)
Constraints: Not nullable, Maximum length: 10
|
void |
setSpecPhraseInternalID(String specPhraseInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 20
|
void |
setSpecPhraseIsDeleted(Boolean specPhraseIsDeleted)
Constraints: none
|
void |
setSpecPhraseLanguage(String specPhraseLanguage)
Constraints: Not nullable, Maximum length: 2
|
void |
setSpecPhraseLibrary(String specPhraseLibrary)
Constraints: Not nullable, Maximum length: 5
|
void |
setSpecPhraseNote(String specPhraseNote)
Constraints: Not nullable, Maximum length: 60
|
void |
setSpecPhraseSetPhraseAssgmt(List<SpecPhraseSetPhraseAssgmt> value)
Overwrites the list of associated SpecPhraseSetPhraseAssgmt entities for the loaded navigation property
to_SpecPhraseSetPhraseAssgmt.
|
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 SpecificationPhraseSelectable ALL_FIELDS
public static final SpecificationPhraseField<String> SPEC_PHRASE_INTERNAL_ID
public static final SpecificationPhraseField<String> SPEC_PHRASE_CHG_INT_ID
public static final SpecificationPhraseField<String> SPEC_PHRASE
public static final SpecificationPhraseField<Boolean> SPEC_PHRASE_IS_DELETED
public static final SpecificationPhraseField<LocalDateTime> SPEC_PHRASE_CHANGE_DATE
public static final SpecificationPhraseField<String> SPEC_PHRASE_LIBRARY
public static final SpecificationPhraseField<String> SPEC_PHRASE_GROUP
public static final SpecificationPhraseField<String> SPEC_PHRASE_LANGUAGE
public static final SpecificationPhraseField<String> SPEC_PHRASE_NOTE
public static final SpecificationPhraseLink<SpecificationPhraseItem> TO_SPECIFICATION_PHRASE_ITEM
public static final SpecificationPhraseLink<SpecPhraseSetPhraseAssgmt> TO_SPEC_PHRASE_SET_PHRASE_ASSGMT
public SpecificationPhrase()
public SpecificationPhrase(@Nullable String specPhraseInternalID, @Nullable String specPhraseChgIntID, @Nullable String specPhrase, @Nullable Boolean specPhraseIsDeleted, @Nullable LocalDateTime specPhraseChangeDate, @Nullable String specPhraseLibrary, @Nullable String specPhraseGroup, @Nullable String specPhraseLanguage, @Nullable String specPhraseNote, List<SpecificationPhraseItem> toSpecificationPhraseItem, List<SpecPhraseSetPhraseAssgmt> toSpecPhraseSetPhraseAssgmt)
@Nonnull public Class<SpecificationPhrase> getType()
getType
in class VdmObject<SpecificationPhrase>
public void setSpecPhraseInternalID(@Nullable String specPhraseInternalID)
Original property name from the Odata EDM: SpecPhraseInternalID
specPhraseInternalID
- Phrase Internal IDpublic void setSpecPhraseChgIntID(@Nullable String specPhraseChgIntID)
Original property name from the Odata EDM: SpecPhraseChgIntID
specPhraseChgIntID
- Phrase Change Statepublic void setSpecPhrase(@Nullable String specPhrase)
Original property name from the Odata EDM: SpecPhrase
specPhrase
- Phrase ID (No conversion exit)public void setSpecPhraseIsDeleted(@Nullable Boolean specPhraseIsDeleted)
Original property name from the Odata EDM: SpecPhraseIsDeleted
specPhraseIsDeleted
- Deletion Indicatorpublic void setSpecPhraseChangeDate(@Nullable LocalDateTime specPhraseChangeDate)
Original property name from the Odata EDM: SpecPhraseChangeDate
specPhraseChangeDate
- Last Changed Onpublic void setSpecPhraseLibrary(@Nullable String specPhraseLibrary)
Original property name from the Odata EDM: SpecPhraseLibrary
specPhraseLibrary
- Unique phrase library identificationpublic void setSpecPhraseGroup(@Nullable String specPhraseGroup)
Original property name from the Odata EDM: SpecPhraseGroup
specPhraseGroup
- Phrase Grouppublic void setSpecPhraseLanguage(@Nullable String specPhraseLanguage)
Original property name from the Odata EDM: SpecPhraseLanguage
specPhraseLanguage
- Languagepublic void setSpecPhraseNote(@Nullable String specPhraseNote)
Original property name from the Odata EDM: SpecPhraseNote
specPhraseNote
- Noteprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<SpecificationPhrase>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<SpecificationPhrase>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<SpecificationPhrase>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<SpecificationPhrase>
@Nonnull public static <T> SpecificationPhraseField<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> SpecificationPhraseField<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<SpecificationPhrase>
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<SpecificationPhrase>
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<SpecificationPhrase>
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<SpecificationPhrase>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<SpecificationPhrase>
@Nonnull public List<SpecificationPhraseItem> fetchSpecificationPhraseItem() 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<SpecificationPhraseItem> getSpecificationPhraseItemOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_SpecificationPhraseItem of a queried SpecificationPhrase 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<SpecificationPhraseItem>> getSpecificationPhraseItemIfPresent()
If the navigation property for an entity SpecificationPhrase 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 setSpecificationPhraseItem(@Nonnull List<SpecificationPhraseItem> value)
If the navigation property to_SpecificationPhraseItem of a queried SpecificationPhrase 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 SpecificationPhraseItem entities.public void addSpecificationPhraseItem(SpecificationPhraseItem... entity)
If the navigation property to_SpecificationPhraseItem of a queried SpecificationPhrase 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 SpecificationPhraseItem entities.@Nonnull public List<SpecPhraseSetPhraseAssgmt> fetchSpecPhraseSetPhraseAssgmt() 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<SpecPhraseSetPhraseAssgmt> getSpecPhraseSetPhraseAssgmtOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_SpecPhraseSetPhraseAssgmt of a queried SpecificationPhrase 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<SpecPhraseSetPhraseAssgmt>> getSpecPhraseSetPhraseAssgmtIfPresent()
If the navigation property for an entity SpecificationPhrase 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 setSpecPhraseSetPhraseAssgmt(@Nonnull List<SpecPhraseSetPhraseAssgmt> value)
If the navigation property to_SpecPhraseSetPhraseAssgmt of a queried SpecificationPhrase 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 SpecPhraseSetPhraseAssgmt entities.public void addSpecPhraseSetPhraseAssgmt(SpecPhraseSetPhraseAssgmt... entity)
If the navigation property to_SpecPhraseSetPhraseAssgmt of a queried SpecificationPhrase 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 SpecPhraseSetPhraseAssgmt entities.@Nonnull public static SpecificationPhrase.SpecificationPhraseBuilder builder()
@Nullable public String getSpecPhraseInternalID()
Original property name from the Odata EDM: SpecPhraseInternalID
@Nullable public String getSpecPhraseChgIntID()
Original property name from the Odata EDM: SpecPhraseChgIntID
@Nullable public String getSpecPhrase()
Original property name from the Odata EDM: SpecPhrase
@Nullable public Boolean getSpecPhraseIsDeleted()
Original property name from the Odata EDM: SpecPhraseIsDeleted
@Nullable public LocalDateTime getSpecPhraseChangeDate()
Original property name from the Odata EDM: SpecPhraseChangeDate
@Nullable public String getSpecPhraseLibrary()
Original property name from the Odata EDM: SpecPhraseLibrary
@Nullable public String getSpecPhraseGroup()
Original property name from the Odata EDM: SpecPhraseGroup
@Nullable public String getSpecPhraseLanguage()
Original property name from the Odata EDM: SpecPhraseLanguage
@Nullable public String getSpecPhraseNote()
Original property name from the Odata EDM: SpecPhraseNote
@Nonnull public String toString()
toString
in class VdmObject<SpecificationPhrase>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<SpecificationPhrase>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<SpecificationPhrase>
public int hashCode()
hashCode
in class VdmObject<SpecificationPhrase>
Copyright © 2021 SAP SE. All rights reserved.