public class FunctionalLocationClass extends VdmEntity<FunctionalLocationClass>
Original entity name from the Odata EDM: FunctionalLocationClassType
Modifier and Type | Class and Description |
---|---|
static class |
FunctionalLocationClass.FunctionalLocationClassBuilder
Helper class to allow for fluent creation of FunctionalLocationClass instances.
|
Modifier and Type | Field and Description |
---|---|
static FunctionalLocationClassSelectable |
ALL_FIELDS
Selector for all available fields of FunctionalLocationClass.
|
static FunctionalLocationClassField<String> |
CLASS_INTERNAL_ID
Use with available fluent helpers to apply the ClassInternalID field to query operations.
|
static FunctionalLocationClassField<String> |
CLASS_IS_STANDARD_CLASS
Use with available fluent helpers to apply the ClassIsStandardClass field to query operations.
|
static FunctionalLocationClassField<Short> |
CLASS_POSITION_NUMBER
Use with available fluent helpers to apply the ClassPositionNumber field to query operations.
|
static FunctionalLocationClassField<String> |
CLASS_PROPERTY
Use with available fluent helpers to apply the Class field to query operations.
|
static FunctionalLocationClassField<String> |
CLASS_TYPE
Use with available fluent helpers to apply the ClassType field to query operations.
|
static FunctionalLocationClassField<String> |
CLFN_OBJECT_INTERNAL_ID
Use with available fluent helpers to apply the ClfnObjectInternalID field to query operations.
|
static FunctionalLocationClassField<String> |
CLFN_STATUS
Use with available fluent helpers to apply the ClfnStatus field to query operations.
|
static FunctionalLocationClassField<String> |
FUNCTIONAL_LOCATION
Use with available fluent helpers to apply the FunctionalLocation field to query operations.
|
static FunctionalLocationClassField<String> |
FUNCTIONAL_LOCATION_LABEL_NAME
Use with available fluent helpers to apply the FunctionalLocationLabelName field to query operations.
|
static FunctionalLocationClassField<LocalDateTime> |
KEY_DATE
Use with available fluent helpers to apply the KeyDate field to query operations.
|
static FunctionalLocationClassLink<Characteristic> |
TO_CHARACTERISTIC
Use with available fluent helpers to apply the to_Characteristic navigation property to query operations.
|
static FunctionalLocationClassOneToOneLink<FunctionalLocation> |
TO_FUNCTIONAL_LOCATION
Use with available fluent helpers to apply the to_FunctionalLocation navigation property to query
operations.
|
static FunctionalLocationClassField<LocalDateTime> |
VALIDITY_END_DATE
Use with available fluent helpers to apply the ValidityEndDate field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
FunctionalLocationClass() |
FunctionalLocationClass(String functionalLocation,
String classInternalID,
String classType,
String functionalLocationLabelName,
LocalDateTime keyDate,
String classProperty,
String clfnStatus,
Short classPositionNumber,
String classIsStandardClass,
String clfnObjectInternalID,
LocalDateTime validityEndDate,
List<Characteristic> toCharacteristic,
FunctionalLocation toFunctionalLocation) |
Modifier and Type | Method and Description |
---|---|
void |
addCharacteristic(Characteristic... entity)
Adds elements to the list of associated Characteristic entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination) |
static FunctionalLocationClass.FunctionalLocationClassBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<Characteristic> |
fetchCharacteristic()
Fetches the Characteristic entities (one to many) associated with this entity.
|
FunctionalLocation |
fetchFunctionalLocation()
Fetches the FunctionalLocation entity (one to one) associated with this entity.
|
static <T> FunctionalLocationClassField<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) |
io.vavr.control.Option<List<Characteristic>> |
getCharacteristicIfPresent()
Retrieval of associated Characteristic entities (one to many).
|
List<Characteristic> |
getCharacteristicOrFetch()
Retrieval of associated Characteristic entities (one to many).
|
String |
getClassInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getClassIsStandardClass()
Constraints: Not nullable, Maximum length: 1
|
Short |
getClassPositionNumber()
Constraints: none
|
String |
getClassProperty()
Constraints: Not nullable, Maximum length: 18
|
String |
getClassType()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
String |
getClfnObjectInternalID()
Constraints: Not nullable, Maximum length: 18
|
String |
getClfnStatus()
Constraints: Not nullable, Maximum length: 1
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch() |
protected String |
getEntityCollection() |
String |
getFunctionalLocation()
(Key Field) Constraints: Not nullable, Maximum length: 90
|
io.vavr.control.Option<FunctionalLocation> |
getFunctionalLocationIfPresent()
Retrieval of associated FunctionalLocation entity (one to one).
|
String |
getFunctionalLocationLabelName()
Constraints: Not nullable, Maximum length: 40
|
FunctionalLocation |
getFunctionalLocationOrFetch()
Retrieval of associated FunctionalLocation entity (one to one).
|
protected Map<String,Object> |
getKey() |
LocalDateTime |
getKeyDate()
Constraints: Not nullable, Precision: 0
|
Class<FunctionalLocationClass> |
getType() |
LocalDateTime |
getValidityEndDate()
Constraints: Not nullable, Precision: 0
|
int |
hashCode() |
void |
setCharacteristic(List<Characteristic> value)
Overwrites the list of associated Characteristic entities for the loaded navigation property
to_Characteristic.
|
void |
setClassInternalID(String classInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setClassIsStandardClass(String classIsStandardClass)
Constraints: Not nullable, Maximum length: 1
|
void |
setClassPositionNumber(Short classPositionNumber)
Constraints: none
|
void |
setClassProperty(String classProperty)
Constraints: Not nullable, Maximum length: 18
|
void |
setClassType(String classType)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setClfnObjectInternalID(String clfnObjectInternalID)
Constraints: Not nullable, Maximum length: 18
|
void |
setClfnStatus(String clfnStatus)
Constraints: Not nullable, Maximum length: 1
|
void |
setFunctionalLocation(FunctionalLocation value)
Overwrites the associated FunctionalLocation entity for the loaded navigation property
to_FunctionalLocation.
|
void |
setFunctionalLocation(String functionalLocation)
(Key Field) Constraints: Not nullable, Maximum length: 90
|
void |
setFunctionalLocationLabelName(String functionalLocationLabelName)
Constraints: Not nullable, Maximum length: 40
|
void |
setKeyDate(LocalDateTime keyDate)
Constraints: Not nullable, Precision: 0
|
protected void |
setServicePathForFetch(String servicePathForFetch) |
void |
setValidityEndDate(LocalDateTime validityEndDate)
Constraints: Not nullable, Precision: 0
|
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 FunctionalLocationClassSelectable ALL_FIELDS
public static final FunctionalLocationClassField<String> FUNCTIONAL_LOCATION
public static final FunctionalLocationClassField<String> CLASS_INTERNAL_ID
public static final FunctionalLocationClassField<String> CLASS_TYPE
public static final FunctionalLocationClassField<String> FUNCTIONAL_LOCATION_LABEL_NAME
public static final FunctionalLocationClassField<LocalDateTime> KEY_DATE
public static final FunctionalLocationClassField<String> CLASS_PROPERTY
public static final FunctionalLocationClassField<String> CLFN_STATUS
public static final FunctionalLocationClassField<Short> CLASS_POSITION_NUMBER
public static final FunctionalLocationClassField<String> CLASS_IS_STANDARD_CLASS
public static final FunctionalLocationClassField<String> CLFN_OBJECT_INTERNAL_ID
public static final FunctionalLocationClassField<LocalDateTime> VALIDITY_END_DATE
public static final FunctionalLocationClassLink<Characteristic> TO_CHARACTERISTIC
public static final FunctionalLocationClassOneToOneLink<FunctionalLocation> TO_FUNCTIONAL_LOCATION
public FunctionalLocationClass()
public FunctionalLocationClass(@Nullable String functionalLocation, @Nullable String classInternalID, @Nullable String classType, @Nullable String functionalLocationLabelName, @Nullable LocalDateTime keyDate, @Nullable String classProperty, @Nullable String clfnStatus, @Nullable Short classPositionNumber, @Nullable String classIsStandardClass, @Nullable String clfnObjectInternalID, @Nullable LocalDateTime validityEndDate, List<Characteristic> toCharacteristic, @Nullable FunctionalLocation toFunctionalLocation)
@Nonnull public Class<FunctionalLocationClass> getType()
getType
in class VdmObject<FunctionalLocationClass>
public void setFunctionalLocation(@Nullable String functionalLocation)
Original property name from the Odata EDM: FunctionalLocation
functionalLocation
- Key of Object to be Classifiedpublic void setClassInternalID(@Nullable String classInternalID)
Original property name from the Odata EDM: ClassInternalID
classInternalID
- Internal Class Numberpublic void setClassType(@Nullable String classType)
Original property name from the Odata EDM: ClassType
classType
- Uniquely identifies the class typepublic void setFunctionalLocationLabelName(@Nullable String functionalLocationLabelName)
Original property name from the Odata EDM: FunctionalLocationLabelName
The functional location label can be changed where necessary. The system then automatically creates a labeling history and prevents historical labels from being reused without this first being checked. The labeling history also enables the interpretation of historical location labels in non-changeable documents outside the SAP System.You can assign one primary and several alternative labels to a functional location.
functionalLocationLabelName
- The label is used to identify a functional location from a user's point of view.public void setKeyDate(@Nullable LocalDateTime keyDate)
Original property name from the Odata EDM: KeyDate
keyDate
- The keyDate to set.public void setClassProperty(@Nullable String classProperty)
Original property name from the Odata EDM: Class
classProperty
- Name used to uniquely identify a class within a class type.public void setClfnStatus(@Nullable String clfnStatus)
Original property name from the Odata EDM: ClfnStatus
If the allocation is locked, the object is not shown in the search result, or is shown with a special indicator.
clfnStatus
- Defines whether the allocation is released for class search or locked.public void setClassPositionNumber(@Nullable Short classPositionNumber)
Original property name from the Odata EDM: ClassPositionNumber
classPositionNumber
- Sort Itempublic void setClassIsStandardClass(@Nullable String classIsStandardClass)
Original property name from the Odata EDM: ClassIsStandardClass
A standard class allows you to access all the information on classification and characteristics for an object when you use the object, without having to select one of the classes it is assigned to.
classIsStandardClass
- Indicator identifying a class as a standard class.public void setClfnObjectInternalID(@Nullable String clfnObjectInternalID)
Original property name from the Odata EDM: ClfnObjectInternalID
Here, the object number refers to the assignment of a variant to a plant-specific configurable material via the values assigned.The value assignment is as follows:General configurable material Racing bicycleVariant Blue racing bicycleCharacteristic value BlueThe system stores, for example, the number 20 internally. Behind this number lies the characteristic value "blue" for the variant "blue racing bicycle".
clfnObjectInternalID
- Consecutive number used to assign objects within a class type.public void setValidityEndDate(@Nullable LocalDateTime validityEndDate)
Original property name from the Odata EDM: ValidityEndDate
validityEndDate
- End of validity period of an object (such as material, BOM, or routing) in the SAP System.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<FunctionalLocationClass>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<FunctionalLocationClass>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<FunctionalLocationClass>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<FunctionalLocationClass>
@Nonnull public static <T> FunctionalLocationClassField<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> FunctionalLocationClassField<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()
getDestinationForFetch
in class VdmEntity<FunctionalLocationClass>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
setServicePathForFetch
in class VdmEntity<FunctionalLocationClass>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
attachToService
in class VdmEntity<FunctionalLocationClass>
protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<FunctionalLocationClass>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<FunctionalLocationClass>
@Nonnull public List<Characteristic> fetchCharacteristic() 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<Characteristic> getCharacteristicOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_Characteristic of a queried FunctionalLocationClass 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<Characteristic>> getCharacteristicIfPresent()
If the navigation property for an entity FunctionalLocationClass 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 setCharacteristic(@Nonnull List<Characteristic> value)
If the navigation property to_Characteristic of a queried FunctionalLocationClass 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 Characteristic entities.public void addCharacteristic(Characteristic... entity)
If the navigation property to_Characteristic of a queried FunctionalLocationClass 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 Characteristic entities.@Nullable public FunctionalLocation fetchFunctionalLocation() 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 FunctionalLocation getFunctionalLocationOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_FunctionalLocation of a queried FunctionalLocationClass 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<FunctionalLocation> getFunctionalLocationIfPresent()
If the navigation property for an entity FunctionalLocationClass 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 setFunctionalLocation(FunctionalLocation value)
value
- New FunctionalLocation entity.@Nonnull public static FunctionalLocationClass.FunctionalLocationClassBuilder builder()
@Nullable public String getFunctionalLocation()
Original property name from the Odata EDM: FunctionalLocation
@Nullable public String getClassInternalID()
Original property name from the Odata EDM: ClassInternalID
@Nullable public String getClassType()
Original property name from the Odata EDM: ClassType
@Nullable public String getFunctionalLocationLabelName()
Original property name from the Odata EDM: FunctionalLocationLabelName
The functional location label can be changed where necessary. The system then automatically creates a labeling history and prevents historical labels from being reused without this first being checked. The labeling history also enables the interpretation of historical location labels in non-changeable documents outside the SAP System.You can assign one primary and several alternative labels to a functional location.
@Nullable public LocalDateTime getKeyDate()
Original property name from the Odata EDM: KeyDate
@Nullable public String getClassProperty()
Original property name from the Odata EDM: Class
@Nullable public String getClfnStatus()
Original property name from the Odata EDM: ClfnStatus
If the allocation is locked, the object is not shown in the search result, or is shown with a special indicator.
@Nullable public Short getClassPositionNumber()
Original property name from the Odata EDM: ClassPositionNumber
@Nullable public String getClassIsStandardClass()
Original property name from the Odata EDM: ClassIsStandardClass
A standard class allows you to access all the information on classification and characteristics for an object when you use the object, without having to select one of the classes it is assigned to.
@Nullable public String getClfnObjectInternalID()
Original property name from the Odata EDM: ClfnObjectInternalID
Here, the object number refers to the assignment of a variant to a plant-specific configurable material via the values assigned.The value assignment is as follows:General configurable material Racing bicycleVariant Blue racing bicycleCharacteristic value BlueThe system stores, for example, the number 20 internally. Behind this number lies the characteristic value "blue" for the variant "blue racing bicycle".
@Nullable public LocalDateTime getValidityEndDate()
Original property name from the Odata EDM: ValidityEndDate
@Nonnull public String toString()
toString
in class VdmObject<FunctionalLocationClass>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<FunctionalLocationClass>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<FunctionalLocationClass>
public int hashCode()
hashCode
in class VdmObject<FunctionalLocationClass>
Copyright © 2021 SAP SE. All rights reserved.