當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。