Class DbProductDataProviderFactory

java.lang.Object
org.faktorips.runtime.productdata.jpa.provider.DbProductDataProviderFactory
All Implemented Interfaces:
org.faktorips.runtime.productdataprovider.IProductDataProviderFactory

public class DbProductDataProviderFactory extends Object implements org.faktorips.runtime.productdataprovider.IProductDataProviderFactory
Creates JpaProductDataProviders for tables of content identified by name and version, reading the DbTableOfContents from a ProductDatabaseBean.
  • Constructor Details

    • DbProductDataProviderFactory

      public DbProductDataProviderFactory(String name, String modelVersion, ProductDatabase productDatabase)
      Creates JpaProductDataProviders for tables of content identified by name and version using the EntityManager to read the DbTableOfContents from the database.
      Parameters:
      name - the name identifying a table of contents
      modelVersion - the version of the model matching the product data contained in the table of contents
      productDatabase - the ProductDatabaseBean used for up-to-date checks
    • DbProductDataProviderFactory

      public DbProductDataProviderFactory(String name, org.faktorips.runtime.internal.toc.AbstractReadonlyTableOfContents modelTableOfContents, ProductDatabase productDatabase)
  • Method Details

    • newInstance

      public DbProductDataProvider newInstance()
      Specified by:
      newInstance in interface org.faktorips.runtime.productdataprovider.IProductDataProviderFactory