本文整理汇总了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;
}