java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<GLAccountInChartOfAccounts>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.generalledgeraccount.GLAccountInChartOfAccounts

public class GLAccountInChartOfAccounts extends VdmEntity<GLAccountInChartOfAccounts>
G/L Account in Chart of Accounts

Original entity name from the Odata EDM: A_GLAccountInChartOfAccountsType

  • Field Details

    • ALL_FIELDS

      public static final GLAccountInChartOfAccountsSelectable ALL_FIELDS
      Selector for all available fields of GLAccountInChartOfAccounts.
    • CHART_OF_ACCOUNTS

      public static final GLAccountInChartOfAccountsField<String> CHART_OF_ACCOUNTS
      Use with available fluent helpers to apply the ChartOfAccounts field to query operations.
    • GL_ACCOUNT

      public static final GLAccountInChartOfAccountsField<String> GL_ACCOUNT
      Use with available fluent helpers to apply the GLAccount field to query operations.
    • IS_BALANCE_SHEET_ACCOUNT

      public static final GLAccountInChartOfAccountsField<Boolean> IS_BALANCE_SHEET_ACCOUNT
      Use with available fluent helpers to apply the IsBalanceSheetAccount field to query operations.
    • GL_ACCOUNT_GROUP

      public static final GLAccountInChartOfAccountsField<String> GL_ACCOUNT_GROUP
      Use with available fluent helpers to apply the GLAccountGroup field to query operations.
    • CORPORATE_GROUP_ACCOUNT

      public static final GLAccountInChartOfAccountsField<String> CORPORATE_GROUP_ACCOUNT
      Use with available fluent helpers to apply the CorporateGroupAccount field to query operations.
    • PROFIT_LOSS_ACCOUNT_TYPE

      public static final GLAccountInChartOfAccountsField<String> PROFIT_LOSS_ACCOUNT_TYPE
      Use with available fluent helpers to apply the ProfitLossAccountType field to query operations.
    • SAMPLE_GL_ACCOUNT

      public static final GLAccountInChartOfAccountsField<String> SAMPLE_GL_ACCOUNT
      Use with available fluent helpers to apply the SampleGLAccount field to query operations.
    • ACCOUNT_IS_MARKED_FOR_DELETION

      public static final GLAccountInChartOfAccountsField<Boolean> ACCOUNT_IS_MARKED_FOR_DELETION
      Use with available fluent helpers to apply the AccountIsMarkedForDeletion field to query operations.
    • ACCOUNT_IS_BLOCKED_FOR_CREATION

      public static final GLAccountInChartOfAccountsField<Boolean> ACCOUNT_IS_BLOCKED_FOR_CREATION
      Use with available fluent helpers to apply the AccountIsBlockedForCreation field to query operations.
    • ACCOUNT_IS_BLOCKED_FOR_POSTING

      public static final GLAccountInChartOfAccountsField<Boolean> ACCOUNT_IS_BLOCKED_FOR_POSTING
      Use with available fluent helpers to apply the AccountIsBlockedForPosting field to query operations.
    • ACCOUNT_IS_BLOCKED_FOR_PLANNING

      public static final GLAccountInChartOfAccountsField<Boolean> ACCOUNT_IS_BLOCKED_FOR_PLANNING
      Use with available fluent helpers to apply the AccountIsBlockedForPlanning field to query operations.
    • PARTNER_COMPANY

      public static final GLAccountInChartOfAccountsField<String> PARTNER_COMPANY
      Use with available fluent helpers to apply the PartnerCompany field to query operations.
    • FUNCTIONAL_AREA

      public static final GLAccountInChartOfAccountsField<String> FUNCTIONAL_AREA
      Use with available fluent helpers to apply the FunctionalArea field to query operations.
    • CREATION_DATE

      public static final GLAccountInChartOfAccountsField<LocalDateTime> CREATION_DATE
      Use with available fluent helpers to apply the CreationDate field to query operations.
    • CREATED_BY_USER

      public static final GLAccountInChartOfAccountsField<String> CREATED_BY_USER
      Use with available fluent helpers to apply the CreatedByUser field to query operations.
    • LAST_CHANGE_DATE_TIME

      public static final GLAccountInChartOfAccountsField<ZonedDateTime> LAST_CHANGE_DATE_TIME
      Use with available fluent helpers to apply the LastChangeDateTime field to query operations.
    • GL_ACCOUNT_TYPE

      public static final GLAccountInChartOfAccountsField<String> GL_ACCOUNT_TYPE
      Use with available fluent helpers to apply the GLAccountType field to query operations.
    • GL_ACCOUNT_EXTERNAL

      public static final GLAccountInChartOfAccountsField<String> GL_ACCOUNT_EXTERNAL
      Use with available fluent helpers to apply the GLAccountExternal field to query operations.
    • IS_PROFIT_LOSS_ACCOUNT

      public static final GLAccountInChartOfAccountsField<Boolean> IS_PROFIT_LOSS_ACCOUNT
      Use with available fluent helpers to apply the IsProfitLossAccount field to query operations.
    • TO_TEXT

      public static final GLAccountInChartOfAccountsLink<GLAccountText> TO_TEXT
      Use with available fluent helpers to apply the to_Text navigation property to query operations.
  • Constructor Details

    • GLAccountInChartOfAccounts

      public GLAccountInChartOfAccounts()
    • GLAccountInChartOfAccounts

      public GLAccountInChartOfAccounts(@Nullable String chartOfAccounts, @Nullable String gLAccount, @Nullable Boolean isBalanceSheetAccount, @Nullable String gLAccountGroup, @Nullable String corporateGroupAccount, @Nullable String profitLossAccountType, @Nullable String sampleGLAccount, @Nullable Boolean accountIsMarkedForDeletion, @Nullable Boolean accountIsBlockedForCreation, @Nullable Boolean accountIsBlockedForPosting, @Nullable Boolean accountIsBlockedForPlanning, @Nullable String partnerCompany, @Nullable String functionalArea, @Nullable LocalDateTime creationDate, @Nullable String createdByUser, @Nullable ZonedDateTime lastChangeDateTime, @Nullable String gLAccountType, @Nullable String gLAccountExternal, @Nullable Boolean isProfitLossAccount, List<GLAccountText> toText)
  • Method Details

    • getType

      @Nonnull public Class<GLAccountInChartOfAccounts> getType()
      Specified by:
      getType in class VdmObject<GLAccountInChartOfAccounts>
    • setChartOfAccounts

      public void setChartOfAccounts(@Nullable String chartOfAccounts)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ChartOfAccounts

      Parameters:
      chartOfAccounts - Chart of Accounts
    • setGLAccount

      public void setGLAccount(@Nullable String gLAccount)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: GLAccount

      Parameters:
      gLAccount - G/L Account Number
    • setIsBalanceSheetAccount

      public void setIsBalanceSheetAccount(@Nullable Boolean isBalanceSheetAccount)
      Constraints: none

      Original property name from the Odata EDM: IsBalanceSheetAccount

      Parameters:
      isBalanceSheetAccount - Indicator: Account is a balance sheet account?
    • setGLAccountGroup

      public void setGLAccountGroup(@Nullable String gLAccountGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: GLAccountGroup

      Parameters:
      gLAccountGroup - G/L Account Group
    • setCorporateGroupAccount

      public void setCorporateGroupAccount(@Nullable String corporateGroupAccount)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CorporateGroupAccount

      Parameters:
      corporateGroupAccount - Group Account Number
    • setProfitLossAccountType

      public void setProfitLossAccountType(@Nullable String profitLossAccountType)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProfitLossAccountType

      Parameters:
      profitLossAccountType - P&L statement account type
    • setSampleGLAccount

      public void setSampleGLAccount(@Nullable String sampleGLAccount)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SampleGLAccount

      Parameters:
      sampleGLAccount - Number of the sample account
    • setAccountIsMarkedForDeletion

      public void setAccountIsMarkedForDeletion(@Nullable Boolean accountIsMarkedForDeletion)
      Constraints: none

      Original property name from the Odata EDM: AccountIsMarkedForDeletion

      Parameters:
      accountIsMarkedForDeletion - Indicator: Account Marked for Deletion?
    • setAccountIsBlockedForCreation

      public void setAccountIsBlockedForCreation(@Nullable Boolean accountIsBlockedForCreation)
      Constraints: none

      Original property name from the Odata EDM: AccountIsBlockedForCreation

      Parameters:
      accountIsBlockedForCreation - Indicator: account is blocked for creation ?
    • setAccountIsBlockedForPosting

      public void setAccountIsBlockedForPosting(@Nullable Boolean accountIsBlockedForPosting)
      Constraints: none

      Original property name from the Odata EDM: AccountIsBlockedForPosting

      Parameters:
      accountIsBlockedForPosting - Indicator: Is Account Blocked for Posting?
    • setAccountIsBlockedForPlanning

      public void setAccountIsBlockedForPlanning(@Nullable Boolean accountIsBlockedForPlanning)
      Constraints: none

      Original property name from the Odata EDM: AccountIsBlockedForPlanning

      Parameters:
      accountIsBlockedForPlanning - Indicator: account blocked for planning ?
    • setPartnerCompany

      public void setPartnerCompany(@Nullable String partnerCompany)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: PartnerCompany

      Parameters:
      partnerCompany - Company ID of Trading Partner
    • setFunctionalArea

      public void setFunctionalArea(@Nullable String functionalArea)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: FunctionalArea

      Parameters:
      functionalArea - Functional Area
    • setCreationDate

      public void setCreationDate(@Nullable LocalDateTime creationDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Record Created On
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Name of Person who Created the Object
    • setLastChangeDateTime

      public void setLastChangeDateTime(@Nullable ZonedDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDateTime

      Parameters:
      lastChangeDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • setGLAccountType

      public void setGLAccountType(@Nullable String gLAccountType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: GLAccountType

      Parameters:
      gLAccountType - Type of a General Ledger Account
    • setGLAccountExternal

      public void setGLAccountExternal(@Nullable String gLAccountExternal)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: GLAccountExternal

      Parameters:
      gLAccountExternal - G/L Account Number
    • setIsProfitLossAccount

      public void setIsProfitLossAccount(@Nullable Boolean isProfitLossAccount)
      Constraints: none

      Original property name from the Odata EDM: IsProfitLossAccount

      Parameters:
      isProfitLossAccount - Indicator: Account is a balance sheet account?
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<GLAccountInChartOfAccounts>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<GLAccountInChartOfAccounts>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<GLAccountInChartOfAccounts>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<GLAccountInChartOfAccounts>
    • field

      @Nonnull public static <T> GLAccountInChartOfAccountsField<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> GLAccountInChartOfAccountsField<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 field
      fieldName - 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

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<GLAccountInChartOfAccounts>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<GLAccountInChartOfAccounts>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<GLAccountInChartOfAccounts>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<GLAccountInChartOfAccounts>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<GLAccountInChartOfAccounts>
    • fetchText

      @Nonnull public List<GLAccountText> fetchText()
      Fetches the GLAccountText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_Text.

      Please note: This method will not cache or persist the query results.

      Returns:
      List containing one or more associated GLAccountText 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.
    • getTextOrFetch

      @Nonnull public List<GLAccountText> getTextOrFetch()
      Retrieval of associated GLAccountText entities (one to many). This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried GLAccountInChartOfAccounts 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 GLAccountText 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.
    • getTextIfPresent

      @Nonnull public io.vavr.control.Option<List<GLAccountText>> getTextIfPresent()
      Retrieval of associated GLAccountText entities (one to many). This corresponds to the OData navigation property to_Text.

      If the navigation property for an entity GLAccountInChartOfAccounts has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property to_Text is already loaded, the result will contain the GLAccountText entities. If not, an Option with result state empty is returned.
    • setText

      public void setText(@Nonnull List<GLAccountText> value)
      Overwrites the list of associated GLAccountText entities for the loaded navigation property to_Text.

      If the navigation property to_Text of a queried GLAccountInChartOfAccounts 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 GLAccountText entities.
    • addText

      public void addText(GLAccountText... entity)
      Adds elements to the list of associated GLAccountText entities. This corresponds to the OData navigation property to_Text.

      If the navigation property to_Text of a queried GLAccountInChartOfAccounts 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 GLAccountText entities.
    • builder

    • getChartOfAccounts

      @Nullable public String getChartOfAccounts()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ChartOfAccounts

      Returns:
      Chart of Accounts
    • getGLAccount

      @Nullable public String getGLAccount()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: GLAccount

      Returns:
      G/L Account Number
    • getIsBalanceSheetAccount

      @Nullable public Boolean getIsBalanceSheetAccount()
      Constraints: none

      Original property name from the Odata EDM: IsBalanceSheetAccount

      Returns:
      Indicator: Account is a balance sheet account?
    • getGLAccountGroup

      @Nullable public String getGLAccountGroup()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: GLAccountGroup

      Returns:
      G/L Account Group
    • getCorporateGroupAccount

      @Nullable public String getCorporateGroupAccount()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CorporateGroupAccount

      Returns:
      Group Account Number
    • getProfitLossAccountType

      @Nullable public String getProfitLossAccountType()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProfitLossAccountType

      Returns:
      P&L statement account type
    • getSampleGLAccount

      @Nullable public String getSampleGLAccount()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SampleGLAccount

      Returns:
      Number of the sample account
    • getAccountIsMarkedForDeletion

      @Nullable public Boolean getAccountIsMarkedForDeletion()
      Constraints: none

      Original property name from the Odata EDM: AccountIsMarkedForDeletion

      Returns:
      Indicator: Account Marked for Deletion?
    • getAccountIsBlockedForCreation

      @Nullable public Boolean getAccountIsBlockedForCreation()
      Constraints: none

      Original property name from the Odata EDM: AccountIsBlockedForCreation

      Returns:
      Indicator: account is blocked for creation ?
    • getAccountIsBlockedForPosting

      @Nullable public Boolean getAccountIsBlockedForPosting()
      Constraints: none

      Original property name from the Odata EDM: AccountIsBlockedForPosting

      Returns:
      Indicator: Is Account Blocked for Posting?
    • getAccountIsBlockedForPlanning

      @Nullable public Boolean getAccountIsBlockedForPlanning()
      Constraints: none

      Original property name from the Odata EDM: AccountIsBlockedForPlanning

      Returns:
      Indicator: account blocked for planning ?
    • getPartnerCompany

      @Nullable public String getPartnerCompany()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: PartnerCompany

      Returns:
      Company ID of Trading Partner
    • getFunctionalArea

      @Nullable public String getFunctionalArea()
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: FunctionalArea

      Returns:
      Functional Area
    • getCreationDate

      @Nullable public LocalDateTime getCreationDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: CreationDate

      Returns:
      Record Created On
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of Person who Created the Object
    • getLastChangeDateTime

      @Nullable public ZonedDateTime getLastChangeDateTime()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDateTime

      Returns:
      UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • getGLAccountType

      @Nullable public String getGLAccountType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: GLAccountType

      Returns:
      Type of a General Ledger Account
    • getGLAccountExternal

      @Nullable public String getGLAccountExternal()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: GLAccountExternal

      Returns:
      G/L Account Number
    • getIsProfitLossAccount

      @Nullable public Boolean getIsProfitLossAccount()
      Constraints: none

      Original property name from the Odata EDM: IsProfitLossAccount

      Returns:
      Indicator: Account is a balance sheet account?
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<GLAccountInChartOfAccounts>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<GLAccountInChartOfAccounts>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<GLAccountInChartOfAccounts>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<GLAccountInChartOfAccounts>