• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DatabaseManagerSwing类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.hsqldb.util.DatabaseManagerSwing的典型用法代码示例。如果您正苦于以下问题:Java DatabaseManagerSwing类的具体用法?Java DatabaseManagerSwing怎么用?Java DatabaseManagerSwing使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DatabaseManagerSwing类属于org.hsqldb.util包,在下文中一共展示了DatabaseManagerSwing类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: quickDownload

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
/**
 * Quick download.
 *
 * @param arg
 *            the arg
 * @param toDate
 *            the to date
 * @param fromDate
 *            the from date
 * @param host
 *            the host
 * @throws UNISoNException
 *             the UNI so n exception
 */
private void quickDownload(final String arg, final Date toDate, final Date fromDate,
        final String host) throws UNISoNException {
	final UNISoNController instance = UNISoNController.getInstance();
	final Set<NewsGroup> listNewsgroups = instance.listNewsgroups(arg, host,
	        instance.getNntpReader().getClient());
	// HibernateHelper.generateSchema();

	try {
		instance.quickDownload(listNewsgroups, fromDate, toDate, this, DownloadMode.BASIC);
	}
	catch (final UNISoNException e) {
		UNISoNCLI.logger.fatal("Error downloading messages", e);
	}
	DatabaseManagerSwing.main(HibernateHelper.GUI_ARGS);

}
 
开发者ID:leonarduk,项目名称:unison,代码行数:31,代码来源:UNISoNCLI.java


示例2: start

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
public void start() {
    if (debug) {
        final Runnable r = new Runnable() {
            @Override
            public void run() {
                System.out.println("LAUNCHING HSQL DBMANAGERSWING");
                final String[] args = { "--user", "SA", "--url", datasourceUrl };
                try {
                    DatabaseManagerSwing.main(args);
                } catch (final Exception e) {
                    System.out.println("Could not start hsqldb database manager GUI: " + e.getMessage());
                }
            }
        };

        thread = new Thread(r);
        thread.start();

    }
}
 
开发者ID:huihoo,项目名称:olat,代码行数:21,代码来源:HsqldbDatabaseManagerGUI.java


示例3: getDataSource

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
@Bean(destroyMethod = "close")
public DataSource getDataSource(LavagnaEnvironment env) throws URISyntaxException {

	HikariDataSource dataSource = new HikariDataSource();
       dataSource.setDriverClassName(getDriveClassName(env.getRequiredProperty("datasource.dialect")));

	if (env.containsProperty("datasource.url") && //
			env.containsProperty("datasource.username")) {
		urlAndCredentials(dataSource, env);
	} else {
		urlWithCredentials(dataSource, env);
	}

	if (System.getProperty("startDBManager") != null) {
	    System.setProperty("java.awt.headless", "false");
		DatabaseManagerSwing.main(new String[] { "--url", "jdbc:hsqldb:mem:lavagna", "--noexit" });
	}

	return dataSource;
}
 
开发者ID:digitalfondue,项目名称:lavagna,代码行数:21,代码来源:DataSourceConfig.java


示例4: runDatabaseManager

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
/**
 * Run hsqldb explorer.
 */
private static void runDatabaseManager() {
    if (DEBUG_DB) {
        System.setProperty("java.awt.headless", "false");
        DatabaseManagerSwing.main(new String[] { "--url", "jdbc:hsqldb:mem:dbtest", "-noexit" });
    }
}
 
开发者ID:appstatus,项目名称:appstatus-spring-boot-starter,代码行数:10,代码来源:Application.java


示例5: dbManagerSetup

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
/**
 * HSQLDB database manager voor dev.
 * @param dataSourceUrl datasource url
 * @param userName username
 * @return null
 */
@Bean
@Profile("utils")
public Void dbManagerSetup(@Value("${spring.datasource.url}") String dataSourceUrl,
                           @Value("${spring.datasource.username}") String userName) {
    DatabaseManagerSwing.main(
            new String[] { "--url", dataSourceUrl, "--user", userName, "--password", ""});
    return null;
}
 
开发者ID:MinBZK,项目名称:OperatieBRP,代码行数:15,代码来源:DalConfiguration.java


示例6: main

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
public static void main(String[] args) {
	System.out.println("Launching manager");
	DatabaseManagerSwing.main(new String[] { 
			"--url", "jdbc:hsqldb:file:db-data/mydatabase", "--noexit"});

}
 
开发者ID:a-r-d,项目名称:java-1-class-demos,代码行数:7,代码来源:RunGUI.java


示例7: executeMojo

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
/** Executes the Mojo **/
public void executeMojo() throws MojoExecutionException, MojoFailureException {
    if (help != null) {
        printUsage();
    }
    else {
        ArrayList argList = new ArrayList();
        // handles the case when the user specifies an empty string for driver
        // in that case driver gets the value 'true'
        if (StringUtils.hasText(driver) && !driver.equals("true")) {
            argList.add("-driver");
            argList.add(driver);
        }
        // handles the case when the user specifies an empty string for driver
        // in that case url gets the value 'true'
        if (StringUtils.hasText(url) && !url.equals("true")) {
            argList.add("-url");
            argList.add(url);
        }
        if (StringUtils.hasText(user)) {
            argList.add("-user");
            argList.add(user);
        }
        if (StringUtils.hasText(password)) {
            argList.add("-password");
            argList.add(password);
        }
        
        // create the arguments array
        String[] args = new String[argList.size()];
        argList.toArray(args);
        PluginLog.getLog().info("Starting HSQLDB viewer with arguments: " + argList);
        
        // start the viewer and sleep forever
        DatabaseManagerSwing.main(args);
        try {
            Thread.currentThread().sleep(Long.MAX_VALUE);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
 
开发者ID:Gigaspaces,项目名称:xap-openspaces,代码行数:43,代码来源:RunHSQLDBViewMojo.java


示例8: HsqlDatabaseManagerSwingTask

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
public HsqlDatabaseManagerSwingTask(String url) {
    super(DatabaseManagerSwing.class.getCanonicalName());
    this.url = url;
    this.args = new String[]{"--url", url, "--noexit"};
}
 
开发者ID:caeos,项目名称:coner-core,代码行数:6,代码来源:HsqlDatabaseManagerSwingTask.java


示例9: getDbManager

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
@PostConstruct
public void getDbManager() throws SQLException{
	DatabaseManagerSwing manager = new DatabaseManagerSwing();
	manager.main();
	manager.start();
}
 
开发者ID:OpenDataSTL,项目名称:STLCourts-api,代码行数:7,代码来源:LocalWithHSQLAccessProfile.java


示例10: main

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
public static void main(String[] args) {

		EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("sequence");

		try {

			Connection connection = ConventionUtils.getConnection(entityManagerFactory);

			DatabaseManagerSwing manager = new DatabaseManagerSwing();
			manager.main();
			manager.connect(connection);
			manager.start();

		} finally {
			entityManagerFactory.close();
		}

	}
 
开发者ID:andreluiznsilva,项目名称:hibernate-conventions,代码行数:19,代码来源:HSQL.java


示例11: startDBManager

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
@PostConstruct
public void startDBManager() {
	
	//hsqldb
	DatabaseManagerSwing.main(new String[] { "--url", "jdbc:hsqldb:mem:testdb", "--user", "sa", "--password", "" });

	//derby
	//DatabaseManagerSwing.main(new String[] { "--url", "jdbc:derby:memory:testdb", "--user", "", "--password", "" });

	//h2
	//DatabaseManagerSwing.main(new String[] { "--url", "jdbc:h2:mem:testdb", "--user", "sa", "--password", "" });

}
 
开发者ID:mkyong,项目名称:spring-embedded-database,代码行数:14,代码来源:SpringRootConfig.java


示例12: main

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
/**
 * This opens up a SQL client to access the database directly.
 *
 * @param args
 *            the arguments
 */
public static void main(final String[] args) {
	final HibernateHelper helper = new HibernateHelper(null);
	helper.generateSchema();
	DatabaseManagerSwing.main(HibernateHelper.GUI_ARGS);
}
 
开发者ID:leonarduk,项目名称:unison,代码行数:12,代码来源:HibernateHelper.java


示例13: showDBclientMenuItemActionPerformed

import org.hsqldb.util.DatabaseManagerSwing; //导入依赖的package包/类
/**
 * Show d bclient menu item action performed.
 *
 * @param evt
 *            the evt
 */
private void showDBclientMenuItemActionPerformed(final java.awt.event.ActionEvent evt) {// GEN-FIRST:event_showDBclientMenuItemActionPerformed
	DatabaseManagerSwing.main(UNISoNTabbedFrame.GUI_ARGS);
}
 
开发者ID:leonarduk,项目名称:unison,代码行数:10,代码来源:UNISoNTabbedFrame.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AudioSampleEntry类代码示例发布时间:2022-05-22
下一篇:
Java TenantManager类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap