All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.danidemi.jlubricant.embeddable.hsql.Storage Maven / Gradle / Ivy

There is a newer version: 0.0.15
Show newest version
package com.danidemi.jlubricant.embeddable.hsql;

import com.danidemi.jlubricant.embeddable.hsql.HsqlDbms.Registration;

public abstract class Storage {

	public abstract boolean requireStandaloneServer();

	public final void register(HsqlDatabase hsqlDatabase, Registration registration) {
		if(requireStandaloneServer()){
			doRegister(hsqlDatabase, registration);
		}
	}

	protected void doRegister(HsqlDatabase hsqlDatabase, Registration registration) {
		throw new UnsupportedOperationException("Please, override doRegister()");
	}

	public abstract String getProtocol();

	

	public abstract String getLocation(String dbName, HsqlDbms dbms);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy