com.danidemi.jlubricant.embeddable.hsql.Storage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlubricant-embeddable-hsql Show documentation
Show all versions of jlubricant-embeddable-hsql Show documentation
A JLubricant Embeddable that runs the HSQLDB - http://hsqldb.org/
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);
}