org.hsqldb.util.DatabaseManagerSwing Java Examples

The following examples show how to use org.hsqldb.util.DatabaseManagerSwing. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HsqldbDatabaseManagerGUI.java    From olat with Apache License 2.0 6 votes vote down vote up
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();

    }
}
 
Example #2
Source File: RunGUI.java    From java-1-class-demos with MIT License 4 votes vote down vote up
public static void main(String[] args) {
	System.out.println("Launching manager");
	DatabaseManagerSwing.main(new String[] { 
			"--url", "jdbc:hsqldb:file:db-data/mydatabase", "--noexit"});

}
 
Example #3
Source File: SpringRootConfig.java    From spring-embedded-database with MIT License 3 votes vote down vote up
@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", "" });

}