Refactor : rename SQLQueryAbstractFactory to SQLQueryFactory

This commit is contained in:
MrSolarius 2023-06-11 19:41:24 +02:00
parent 34f2348856
commit 232d6a2e09
4 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ import java.util.function.Function;
public class SQLStorage extends Storage {
private final SQLQueryAbstractFactory concreteSQL;
private final SQLQueryFactory dialect;
private final DataSource dataSource;
private final Compression hiresCompression;
@ -118,7 +118,7 @@ public class SQLStorage extends Storage {
byteOut.writeTo(blobOut);
}
executeUpdate(connection,this.concreteSQL.writeMapTile(),
executeUpdate(connection,this.dialect.writeMapTile(),
mapFK,
lod,
tile.getX(),

View File

@ -2,7 +2,7 @@ package de.bluecolored.bluemap.core.storage.sql.dialect;
import org.intellij.lang.annotations.Language;
public class MariaDBFactory implements SQLQueryAbstractFactory {
public class MariaDBFactory implements SQLQueryFactory {
@Override
@Language("MariaDB")

View File

@ -2,7 +2,7 @@ package de.bluecolored.bluemap.core.storage.sql.dialect;
import org.intellij.lang.annotations.Language;
public class PostgresFactory implements SQLQueryAbstractFactory {
public class PostgresFactory implements SQLQueryFactory {
@Override
@Language("PostgreSQL")
public String writeMapTile() {

View File

@ -2,7 +2,7 @@ package de.bluecolored.bluemap.core.storage.sql.dialect;
import org.intellij.lang.annotations.Language;
public interface SQLQueryAbstractFactory {
public interface SQLQueryFactory {
@Language("sql")
String writeMapTile();