@Override public List<DeveloperDatabaseTableRecord> getDatabaseTableContent( DeveloperObjectFactory developerObjectFactory, DeveloperDatabase developerDatabase, DeveloperDatabaseTable developerDatabaseTable) { UnholdCashMoneyTransactionDeveloperDatabaseFactory factory = new UnholdCashMoneyTransactionDeveloperDatabaseFactory(pluginDatabaseSystem, pluginId); List<DeveloperDatabaseTableRecord> tableRecordList = null; try { factory.initializeDatabase(); tableRecordList = factory.getDatabaseTableContent(developerObjectFactory, developerDatabaseTable); } catch (CantInitializeUnholdCashMoneyTransactionDatabaseException cantInitializeException) { FermatException e = new CantInitializeUnholdCashMoneyTransactionDatabaseException( "Database cannot be initialized", cantInitializeException, "CashMoneyTransactionUnholdPluginRoot", ""); errorManager.reportUnexpectedPluginException( Plugins.BITDUBAI_CSH_MONEY_TRANSACTION_UNHOLD, UnexpectedPluginExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_PLUGIN, e); } return tableRecordList; }
@Override public List<DeveloperDatabaseTable> getDatabaseTableList( DeveloperObjectFactory developerObjectFactory, DeveloperDatabase developerDatabase) { UnholdCashMoneyTransactionDeveloperDatabaseFactory factory = new UnholdCashMoneyTransactionDeveloperDatabaseFactory(pluginDatabaseSystem, pluginId); return factory.getDatabaseTableList(developerObjectFactory); }