本文整理匯總了Java中org.apache.taverna.configuration.database.DatabaseConfiguration類的典型用法代碼示例。如果您正苦於以下問題:Java DatabaseConfiguration類的具體用法?Java DatabaseConfiguration怎麽用?Java DatabaseConfiguration使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DatabaseConfiguration類屬於org.apache.taverna.configuration.database包,在下文中一共展示了DatabaseConfiguration類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setDerbyPaths
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
private void setDerbyPaths() {
if (databaseConfiguration.getConnectorType() == DatabaseConfiguration.CONNECTOR_DERBY) {
String homeDir = applicationConfiguration.getApplicationHomeDir().toAbsolutePath().toString();
System.setProperty("derby.system.home",homeDir);
Path logFile = applicationConfiguration.getLogDir().resolve("derby.log");
System.setProperty("derby.stream.error.file", logFile.toAbsolutePath().toString());
}
}
示例2: DataManagementConfigurationPanel
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
public DataManagementConfigurationPanel(DatabaseConfiguration configuration, DatabaseManager databaseManager) {
this.configuration = configuration;
this.databaseManager = databaseManager;
setLayout(generateLayout());
resetFields();
}
示例3: DatabaseConfigurationHandler
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
public DatabaseConfigurationHandler(CommandLineOptions options, DatabaseConfiguration databaseConfiguration, DatabaseManager databaseManager) {
this.options = options;
this.dbConfig = databaseConfiguration;
this.databaseManager = databaseManager;
databaseConfiguration.disableAutoSave();
}
示例4: getDBConfig
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
public DatabaseConfiguration getDBConfig() {
return dbConfig;
}
示例5: DatabaseManagerImpl
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
public DatabaseManagerImpl(ApplicationConfiguration applicationConfiguration, DatabaseConfiguration databaseConfiguration) throws SQLException {
this.applicationConfiguration = applicationConfiguration;
this.databaseConfiguration = databaseConfiguration;
getConnection();
}
示例6: setDatabaseConfiguration
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
public void setDatabaseConfiguration(
DatabaseConfiguration databaseConfiguration) {
this.databaseConfiguration = databaseConfiguration;
}
示例7: WorkflowLaunchWindow
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
public WorkflowLaunchWindow(Workflow workflow, EditManager editManager,
FileManager fileManager, ReportManager reportManager,
Workbench workbench, List<ReferenceActionSPI> referenceActionSPIs,
DatabaseConfiguration databaseConfiguration) {
super();
// Initialize RIOT reader
RIOT.register();
this.workflow = workflow;
this.editManager = editManager;
this.fileManager = fileManager;
this.reportManager = reportManager;
this.workbench = workbench;
this.referenceActionSPIs = referenceActionSPIs;
this.databaseConfiguration = databaseConfiguration;
initComponents();
// Handle refreshing the frame when it receives focus
addWindowFocusListener(new WindowAdapter() {
@Override
public void windowGainedFocus(WindowEvent e) {
if (workflowModified) {
// Clear all previous components
getContentPane().removeAll();
// Redraw the window
initComponents();
overallPanel.revalidate();
overallPanel.repaint();
workflowModified = false;
}
}
});
// Handle window closing
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent winEvt) {
handleCancel(); // do not dispose the window, just hide it
}
});
// Start observing workflow closing events on File Manager
fileManager.addObserver(fileManagerObserver);
// Start observing edit workflow events on Edit Manager
editManager.addObserver(editManagerObserver);
}
示例8: setDatabaseConfiguration
import org.apache.taverna.configuration.database.DatabaseConfiguration; //導入依賴的package包/類
/**
* Sets the databaseConfiguration.
*
* @param databaseConfiguration the new value of databaseConfiguration
*/
public void setDatabaseConfiguration(DatabaseConfiguration databaseConfiguration) {
this.databaseConfiguration = databaseConfiguration;
}