Class SpreadsheetSingleDataSource

java.lang.Object
bld.generator.report.query.impl.SpreadsheetBaseDataSource
bld.generator.report.query.impl.SpreadsheetSingleDataSource
All Implemented Interfaces:
SpreadsheetDataSource

@Component @ConditionalOnExpression("!${bld.commons.multiple.datasource:false} and !T(org.springframework.util.StringUtils).isEmpty(\'${spring.datasource.url:}\')") public class SpreadsheetSingleDataSource extends SpreadsheetBaseDataSource implements SpreadsheetDataSource
The Class ExcelSingleDataSource.
ExcelSingleDataSource works if the following properties match this conditions:
  • spring.datasource.url - it is defined
  • bld.commons.multiple.datasource - it is disabled or missing
  • Constructor Details

    • SpreadsheetSingleDataSource

      public SpreadsheetSingleDataSource()
  • Method Details

    • getEntityManager

      public jakarta.persistence.EntityManager getEntityManager(String unitName)
      Gets the entity manager.
      Specified by:
      getEntityManager in interface SpreadsheetDataSource
      Parameters:
      unitName - the unit name
      Returns:
      the entity manager