public class EnterpriseProjectRole extends VdmEntity<EnterpriseProjectRole>
Original entity name from the Odata EDM: A_EnterpriseProjectRoleType
Modifier and Type | Class and Description |
---|---|
static class |
EnterpriseProjectRole.EnterpriseProjectRoleBuilder
Helper class to allow for fluent creation of EnterpriseProjectRole instances.
|
Modifier and Type | Field and Description |
---|---|
static EnterpriseProjectRoleSelectable |
ALL_FIELDS
Selector for all available fields of EnterpriseProjectRole.
|
static EnterpriseProjectRoleField<String> |
CREATED_BY_USER
Use with available fluent helpers to apply the CreatedByUser field to query operations.
|
static EnterpriseProjectRoleField<ZonedDateTime> |
CREATION_DATE_TIME
Use with available fluent helpers to apply the CreationDateTime field to query operations.
|
static EnterpriseProjectRoleField<ZonedDateTime> |
LAST_CHANGE_DATE_TIME
Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
|
static EnterpriseProjectRoleField<String> |
LAST_CHANGED_BY_USER
Use with available fluent helpers to apply the LastChangedByUser field to query operations.
|
static EnterpriseProjectRoleField<String> |
PROJECT_ROLE_CATEGORY
Use with available fluent helpers to apply the ProjectRoleCategory field to query operations.
|
static EnterpriseProjectRoleField<String> |
PROJECT_ROLE_NAME
Use with available fluent helpers to apply the ProjectRoleName field to query operations.
|
static EnterpriseProjectRoleField<String> |
PROJECT_ROLE_TYPE
Use with available fluent helpers to apply the ProjectRoleType field to query operations.
|
static EnterpriseProjectRoleField<UUID> |
PROJECT_ROLE_UUID
Use with available fluent helpers to apply the ProjectRoleUUID field to query operations.
|
static EnterpriseProjectRoleField<UUID> |
PROJECT_UUID
Use with available fluent helpers to apply the ProjectUUID field to query operations.
|
static EnterpriseProjectRoleOneToOneLink<EnterpriseProject> |
TO_ENTERPRISE_PROJECT
Use with available fluent helpers to apply the to_EnterpriseProject navigation property to query
operations.
|
changedOriginalFields
Constructor and Description |
---|
EnterpriseProjectRole() |
EnterpriseProjectRole(UUID projectRoleUUID,
UUID projectUUID,
String projectRoleType,
String projectRoleCategory,
String projectRoleName,
String createdByUser,
ZonedDateTime creationDateTime,
String lastChangedByUser,
ZonedDateTime lastChangeDateTime,
EnterpriseProject toEnterpriseProject) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination) |
static EnterpriseProjectRole.EnterpriseProjectRoleBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
EnterpriseProject |
fetchEnterpriseProject()
Fetches the EnterpriseProject entity (one to one) associated with this entity.
|
static <T> EnterpriseProjectRoleField<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) |
String |
getCreatedByUser()
Constraints: Not nullable, Maximum length: 12
|
ZonedDateTime |
getCreationDateTime()
Constraints: Not nullable, Precision: 0
|
protected String |
getDefaultServicePath() |
HttpDestinationProperties |
getDestinationForFetch() |
io.vavr.control.Option<EnterpriseProject> |
getEnterpriseProjectIfPresent()
Retrieval of associated EnterpriseProject entity (one to one).
|
EnterpriseProject |
getEnterpriseProjectOrFetch()
Retrieval of associated EnterpriseProject entity (one to one).
|
protected String |
getEntityCollection() |
protected Map<String,Object> |
getKey() |
ZonedDateTime |
getLastChangeDateTime()
Constraints: Not nullable, Precision: 0
|
String |
getLastChangedByUser()
Constraints: Not nullable, Maximum length: 12
|
String |
getProjectRoleCategory()
Constraints: Not nullable, Maximum length: 3
|
String |
getProjectRoleName()
Constraints: Not nullable, Maximum length: 40
|
String |
getProjectRoleType()
Constraints: Not nullable, Maximum length: 15
|
UUID |
getProjectRoleUUID()
(Key Field) Constraints: Not nullable
|
UUID |
getProjectUUID()
Constraints: none
|
Class<EnterpriseProjectRole> |
getType() |
int |
hashCode() |
void |
setCreatedByUser(String createdByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setCreationDateTime(ZonedDateTime creationDateTime)
Constraints: Not nullable, Precision: 0
|
void |
setEnterpriseProject(EnterpriseProject value)
Overwrites the associated EnterpriseProject entity for the loaded navigation property
to_EnterpriseProject.
|
void |
setLastChangeDateTime(ZonedDateTime lastChangeDateTime)
Constraints: Not nullable, Precision: 0
|
void |
setLastChangedByUser(String lastChangedByUser)
Constraints: Not nullable, Maximum length: 12
|
void |
setProjectRoleCategory(String projectRoleCategory)
Constraints: Not nullable, Maximum length: 3
|
void |
setProjectRoleName(String projectRoleName)
Constraints: Not nullable, Maximum length: 40
|
void |
setProjectRoleType(String projectRoleType)
Constraints: Not nullable, Maximum length: 15
|
void |
setProjectRoleUUID(UUID projectRoleUUID)
(Key Field) Constraints: Not nullable
|
void |
setProjectUUID(UUID projectUUID)
Constraints: none
|
protected void |
setServicePathForFetch(String servicePathForFetch) |
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final EnterpriseProjectRoleSelectable ALL_FIELDS
public static final EnterpriseProjectRoleField<UUID> PROJECT_ROLE_UUID
public static final EnterpriseProjectRoleField<UUID> PROJECT_UUID
public static final EnterpriseProjectRoleField<String> PROJECT_ROLE_TYPE
public static final EnterpriseProjectRoleField<String> PROJECT_ROLE_CATEGORY
public static final EnterpriseProjectRoleField<String> PROJECT_ROLE_NAME
public static final EnterpriseProjectRoleField<String> CREATED_BY_USER
public static final EnterpriseProjectRoleField<ZonedDateTime> CREATION_DATE_TIME
public static final EnterpriseProjectRoleField<String> LAST_CHANGED_BY_USER
public static final EnterpriseProjectRoleField<ZonedDateTime> LAST_CHANGE_DATE_TIME
public static final EnterpriseProjectRoleOneToOneLink<EnterpriseProject> TO_ENTERPRISE_PROJECT
public EnterpriseProjectRole()
public EnterpriseProjectRole(@Nullable UUID projectRoleUUID, @Nullable UUID projectUUID, @Nullable String projectRoleType, @Nullable String projectRoleCategory, @Nullable String projectRoleName, @Nullable String createdByUser, @Nullable ZonedDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable ZonedDateTime lastChangeDateTime, @Nullable EnterpriseProject toEnterpriseProject)
@Nonnull public Class<EnterpriseProjectRole> getType()
getType
in class VdmObject<EnterpriseProjectRole>
public void setProjectRoleUUID(@Nullable UUID projectRoleUUID)
Original property name from the Odata EDM: ProjectRoleUUID
projectRoleUUID
- Role GUIDpublic void setProjectUUID(@Nullable UUID projectUUID)
Original property name from the Odata EDM: ProjectUUID
projectUUID
- Project GUIDpublic void setProjectRoleType(@Nullable String projectRoleType)
Original property name from the Odata EDM: ProjectRoleType
projectRoleType
- Role Typepublic void setProjectRoleCategory(@Nullable String projectRoleCategory)
Original property name from the Odata EDM: ProjectRoleCategory
projectRoleCategory
- Role Categorypublic void setProjectRoleName(@Nullable String projectRoleName)
Original property name from the Odata EDM: ProjectRoleName
projectRoleName
- Role Namepublic void setCreatedByUser(@Nullable String createdByUser)
Original property name from the Odata EDM: CreatedByUser
createdByUser
- Name of Person Who Created Objectpublic void setCreationDateTime(@Nullable ZonedDateTime creationDateTime)
Original property name from the Odata EDM: CreationDateTime
creationDateTime
- Timestamp of Object Creationpublic void setLastChangedByUser(@Nullable String lastChangedByUser)
Original property name from the Odata EDM: LastChangedByUser
lastChangedByUser
- Name of Person Who Changed Objectpublic void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
Original property name from the Odata EDM: LastChangeDateTime
lastChangeDateTime
- Timestamp of Last Object Changeprotected String getEntityCollection()
getEntityCollection
in class VdmEntity<EnterpriseProjectRole>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<EnterpriseProjectRole>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<EnterpriseProjectRole>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<EnterpriseProjectRole>
@Nonnull public static <T> EnterpriseProjectRoleField<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> EnterpriseProjectRoleField<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<EnterpriseProjectRole>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
setServicePathForFetch
in class VdmEntity<EnterpriseProjectRole>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
attachToService
in class VdmEntity<EnterpriseProjectRole>
protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<EnterpriseProjectRole>
@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<EnterpriseProjectRole>
@Nullable public EnterpriseProject fetchEnterpriseProject()
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.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.@Nullable public EnterpriseProject getEnterpriseProjectOrFetch()
If the navigation property to_EnterpriseProject of a queried EnterpriseProjectRole 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.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.@Nonnull public io.vavr.control.Option<EnterpriseProject> getEnterpriseProjectIfPresent()
If the navigation property for an entity EnterpriseProjectRole 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 setEnterpriseProject(EnterpriseProject value)
value
- New EnterpriseProject entity.@Nonnull public static EnterpriseProjectRole.EnterpriseProjectRoleBuilder builder()
@Nullable public UUID getProjectRoleUUID()
Original property name from the Odata EDM: ProjectRoleUUID
@Nullable public UUID getProjectUUID()
Original property name from the Odata EDM: ProjectUUID
@Nullable public String getProjectRoleType()
Original property name from the Odata EDM: ProjectRoleType
@Nullable public String getProjectRoleCategory()
Original property name from the Odata EDM: ProjectRoleCategory
@Nullable public String getProjectRoleName()
Original property name from the Odata EDM: ProjectRoleName
@Nullable public String getCreatedByUser()
Original property name from the Odata EDM: CreatedByUser
@Nullable public ZonedDateTime getCreationDateTime()
Original property name from the Odata EDM: CreationDateTime
@Nullable public String getLastChangedByUser()
Original property name from the Odata EDM: LastChangedByUser
@Nullable public ZonedDateTime getLastChangeDateTime()
Original property name from the Odata EDM: LastChangeDateTime
@Nonnull public String toString()
toString
in class VdmObject<EnterpriseProjectRole>
public boolean equals(@Nullable Object o)
equals
in class VdmEntity<EnterpriseProjectRole>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmEntity<EnterpriseProjectRole>
public int hashCode()
hashCode
in class VdmEntity<EnterpriseProjectRole>
Copyright © 2022 SAP SE. All rights reserved.