java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<Bank>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.bankv2.Bank
All Implemented Interfaces:
VdmEntitySet

public class Bank extends VdmEntity<Bank> implements VdmEntitySet
Bank

Original entity name from the Odata EDM: BankType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setBankCountry(@Nullable String bankCountry)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BankCountry

      Parameters:
      bankCountry - Country/Region Key of Bank
    • setBankInternalID

      public void setBankInternalID(@Nullable String bankInternalID)
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: BankInternalID

      Parameters:
      bankInternalID - Bank Keys
    • setBankName

      public void setBankName(@Nullable String bankName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: BankName

      Parameters:
      bankName - Name of Financial Institution
    • setRegion

      public void setRegion(@Nullable String region)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Region

      Parameters:
      region - Region (State, Province, County)
    • setShortStreetName

      public void setShortStreetName(@Nullable String shortStreetName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ShortStreetName

      Parameters:
      shortStreetName - Street and House Number
    • setShortCityName

      public void setShortCityName(@Nullable String shortCityName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ShortCityName

      Parameters:
      shortCityName - City
    • setSWIFTCode

      public void setSWIFTCode(@Nullable String sWIFTCode)
      Constraints: Not nullable, Maximum length: 11

      Original property name from the Odata EDM: SWIFTCode

      Parameters:
      sWIFTCode - SWIFT/BIC for International Payments
    • setBankNetworkGrouping

      public void setBankNetworkGrouping(@Nullable String bankNetworkGrouping)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: BankNetworkGrouping

      Parameters:
      bankNetworkGrouping - Bank group (bank network)
    • setIsMarkedForDeletion

      public void setIsMarkedForDeletion(@Nullable Boolean isMarkedForDeletion)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMarkedForDeletion

      Parameters:
      isMarkedForDeletion - Deletion Indicator
    • setBank

      public void setBank(@Nullable String bank)
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: Bank

      Parameters:
      bank - Bank Number
    • setBankBranch

      public void setBankBranch(@Nullable String bankBranch)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BankBranch

      Parameters:
      bankBranch - Bank Branch
    • setBankCategory

      public void setBankCategory(@Nullable String bankCategory)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: BankCategory

      Parameters:
      bankCategory - Internal bank category
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<Bank>
    • toMapOfFields

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

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

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

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

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

      If the navigation property for an entity Bank 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 _BankAddress is already loaded, the result will contain the BankAddress entities. If not, an Option with result state empty is returned.
    • setBankAddress

      public void setBankAddress(@Nonnull List<BankAddress> value)
      Overwrites the list of associated BankAddress entities for the loaded navigation property _BankAddress.

      If the navigation property _BankAddress of a queried Bank 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 BankAddress entities.
    • addBankAddress

      public void addBankAddress(BankAddress... entity)
      Adds elements to the list of associated BankAddress entities. This corresponds to the OData navigation property _BankAddress.

      If the navigation property _BankAddress of a queried Bank 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 BankAddress entities.
    • builder

      @Nonnull public static Bank.BankBuilder builder()
    • getBankCountry

      @Nullable public String getBankCountry()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BankCountry

      Returns:
      Country/Region Key of Bank
    • getBankInternalID

      @Nullable public String getBankInternalID()
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: BankInternalID

      Returns:
      Bank Keys
    • getBankName

      @Nullable public String getBankName()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: BankName

      Returns:
      Name of Financial Institution
    • getRegion

      @Nullable public String getRegion()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Region

      Returns:
      Region (State, Province, County)
    • getShortStreetName

      @Nullable public String getShortStreetName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ShortStreetName

      Returns:
      Street and House Number
    • getShortCityName

      @Nullable public String getShortCityName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ShortCityName

      Returns:
      City
    • getSWIFTCode

      @Nullable public String getSWIFTCode()
      Constraints: Not nullable, Maximum length: 11

      Original property name from the Odata EDM: SWIFTCode

      Returns:
      SWIFT/BIC for International Payments
    • getBankNetworkGrouping

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

      Original property name from the Odata EDM: BankNetworkGrouping

      Returns:
      Bank group (bank network)
    • getIsMarkedForDeletion

      @Nullable public Boolean getIsMarkedForDeletion()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMarkedForDeletion

      Returns:
      Deletion Indicator
    • getBank

      @Nullable public String getBank()
      Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: Bank

      Returns:
      Bank Number
    • getBankBranch

      @Nullable public String getBankBranch()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: BankBranch

      Returns:
      Bank Branch
    • getBankCategory

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

      Original property name from the Odata EDM: BankCategory

      Returns:
      Internal bank category
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<Bank>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<Bank>