Rename Dialect interface

This commit is contained in:
Lukas Rieger (Blue) 2023-06-12 23:09:25 +02:00
parent 32f15d6555
commit 82f1e1321d
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
4 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@
import de.bluecolored.bluemap.core.logger.Logger;
import de.bluecolored.bluemap.core.storage.*;
import de.bluecolored.bluemap.core.storage.sql.dialect.DialectType;
import de.bluecolored.bluemap.core.storage.sql.dialect.SQLQueryDialect;
import de.bluecolored.bluemap.core.storage.sql.dialect.Dialect;
import de.bluecolored.bluemap.core.util.WrappedOutputStream;
import org.apache.commons.dbcp2.*;
import org.apache.commons.pool2.ObjectPool;
@ -54,7 +54,7 @@ public abstract class SQLStorage extends Storage {
private final DataSource dataSource;
protected final SQLQueryDialect dialect;
protected final Dialect dialect;
protected final Compression hiresCompression;
private final LoadingCache<String, Integer> mapFKs = Caffeine.newBuilder()
@ -66,7 +66,7 @@ public abstract class SQLStorage extends Storage {
private volatile boolean closed;
public SQLStorage(SQLQueryDialect dialect, SQLStorageSettings config) throws MalformedURLException, SQLDriverException {
public SQLStorage(Dialect dialect, SQLStorageSettings config) throws MalformedURLException, SQLDriverException {
this.dialect = dialect;
this.closed = false;
try {

View File

@ -2,7 +2,7 @@
import org.intellij.lang.annotations.Language;
public interface SQLQueryDialect {
public interface Dialect {
@Language("sql")
String writeMapTile();

View File

@ -2,7 +2,7 @@
import org.intellij.lang.annotations.Language;
public class MySQLDialect implements SQLQueryDialect {
public class MySQLDialect implements Dialect {
public static final MySQLDialect INSTANCE = new MySQLDialect();

View File

@ -2,7 +2,7 @@
import org.intellij.lang.annotations.Language;
public class PostgresDialect implements SQLQueryDialect {
public class PostgresDialect implements Dialect {
public static final PostgresDialect INSTANCE = new PostgresDialect();