Package bld.generator.report.query.impl
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:
ExcelSingleDataSource works if the following properties match this conditions:
- spring.datasource.url - it is defined
- bld.commons.multiple.datasource - it is disabled or missing
-
Field Summary
Fields inherited from class bld.generator.report.query.impl.SpreadsheetBaseDataSource
applicationContextFields inherited from interface bld.generator.report.query.SpreadsheetDataSource
MULTIPLE_DATASOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.EntityManagergetEntityManager(String unitName) Gets the entity manager.Methods inherited from class bld.generator.report.query.impl.SpreadsheetBaseDataSource
getNamedParameterJdbcTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface bld.generator.report.query.SpreadsheetDataSource
getNamedParameterJdbcTemplate
-
Constructor Details
-
SpreadsheetSingleDataSource
public SpreadsheetSingleDataSource()
-
-
Method Details
-
getEntityManager
Gets the entity manager.- Specified by:
getEntityManagerin interfaceSpreadsheetDataSource- Parameters:
unitName- the unit name- Returns:
- the entity manager
-