Class DbProductDataProvider

java.lang.Object
org.faktorips.runtime.productdataprovider.AbstractProductDataProvider
org.faktorips.runtime.productdata.jpa.provider.DbProductDataProvider
All Implemented Interfaces:
org.faktorips.runtime.productdataprovider.IProductDataProvider

public class DbProductDataProvider extends org.faktorips.runtime.productdataprovider.AbstractProductDataProvider
IProductDataProvider using JPA to read product data from a database.
  • Constructor Details

  • Method Details

    • getEnumContentAsStream

      public InputStream getEnumContentAsStream(org.faktorips.runtime.internal.toc.EnumContentTocEntry enumContentTocEntry) throws org.faktorips.runtime.productdataprovider.DataModifiedException
      Throws:
      org.faktorips.runtime.productdataprovider.DataModifiedException
    • getProductCmptData

      public Element getProductCmptData(org.faktorips.runtime.internal.toc.ProductCmptTocEntry tocEntry) throws org.faktorips.runtime.productdataprovider.DataModifiedException
      Throws:
      org.faktorips.runtime.productdataprovider.DataModifiedException
    • getProductCmptGenerationData

      public Element getProductCmptGenerationData(org.faktorips.runtime.internal.toc.GenerationTocEntry tocEntry) throws org.faktorips.runtime.productdataprovider.DataModifiedException
      Throws:
      org.faktorips.runtime.productdataprovider.DataModifiedException
    • getTableContentAsStream

      public InputStream getTableContentAsStream(org.faktorips.runtime.internal.toc.TableContentTocEntry tocEntry) throws org.faktorips.runtime.productdataprovider.DataModifiedException
      Throws:
      org.faktorips.runtime.productdataprovider.DataModifiedException
    • getTestcaseElement

      public Element getTestcaseElement(org.faktorips.runtime.internal.toc.TestCaseTocEntry arg0) throws org.faktorips.runtime.productdataprovider.DataModifiedException
      Throws:
      org.faktorips.runtime.productdataprovider.DataModifiedException
    • getToc

      public org.faktorips.runtime.internal.toc.IReadonlyTableOfContents getToc()
    • getTocEntryData

      public <T> Element getTocEntryData(org.faktorips.runtime.internal.toc.CustomTocEntryObject<T> arg0) throws org.faktorips.runtime.productdataprovider.DataModifiedException
      Throws:
      org.faktorips.runtime.productdataprovider.DataModifiedException
    • getVersion

      public String getVersion()

      The initial TocVersion's Version.

    • getBaseVersion

      public String getBaseVersion()

      The version of the TocVersionEntity for the same name and modelVersion as the initial TocVersionEntity, currently marked as TocVersionEntity.Status.ACTIVE.

      Specified by:
      getBaseVersion in class org.faktorips.runtime.productdataprovider.AbstractProductDataProvider