Refactor : rename SQLQueryAbstractFactory to SQLQueryFactory
This commit is contained in:
parent
34f2348856
commit
232d6a2e09
|
@ -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(),
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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();
|
||||
|
Loading…
Reference in New Issue