当前位置: 首页>>代码示例>>Java>>正文


Java DatabaseConfiguration类代码示例

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

}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:10,代码来源:DatabaseManagerImpl.java

示例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();
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:8,代码来源:DataManagementConfigurationPanel.java

示例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();
}
 
开发者ID:apache,项目名称:incubator-taverna-commandline,代码行数:7,代码来源:DatabaseConfigurationHandler.java

示例4: getDBConfig

import org.apache.taverna.configuration.database.DatabaseConfiguration; //导入依赖的package包/类
public DatabaseConfiguration getDBConfig() {
	return dbConfig;
}
 
开发者ID:apache,项目名称:incubator-taverna-commandline,代码行数:4,代码来源:DatabaseConfigurationHandler.java

示例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();
}
 
开发者ID:apache,项目名称:incubator-taverna-engine,代码行数:6,代码来源:DatabaseManagerImpl.java

示例6: setDatabaseConfiguration

import org.apache.taverna.configuration.database.DatabaseConfiguration; //导入依赖的package包/类
public void setDatabaseConfiguration(
		DatabaseConfiguration databaseConfiguration) {
	this.databaseConfiguration = databaseConfiguration;
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:5,代码来源:DataManagementConfigurationUIFactory.java

示例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);
}
 
开发者ID:apache,项目名称:incubator-taverna-workbench,代码行数:52,代码来源:WorkflowLaunchWindow.java

示例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;
}
 
开发者ID:apache,项目名称:incubator-taverna-commandline,代码行数:9,代码来源:CommandLineTool.java


注:本文中的org.apache.taverna.configuration.database.DatabaseConfiguration类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。