Class RemoteAuthConfig
- java.lang.Object
-
- cc.carm.plugin.minesql.api.conf.SQLDriverConfig
-
- cc.carm.plugin.minesql.api.conf.impl.RemoteAuthConfig
-
public class RemoteAuthConfig extends SQLDriverConfig
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull java.lang.String
database
protected @Nullable java.lang.String
extraSettings
protected @NotNull java.lang.String
host
protected @Nullable java.lang.String
password
protected int
port
protected @Nullable java.lang.String
username
-
Fields inherited from class cc.carm.plugin.minesql.api.conf.SQLDriverConfig
type
-
-
Constructor Summary
Constructors Constructor Description RemoteAuthConfig(@NotNull SQLDriverType type, @NotNull java.lang.String host, int port, @NotNull java.lang.String database, @Nullable java.lang.String username, @Nullable java.lang.String password, @Nullable java.lang.String extraSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
buildJDBC()
SQLSourceConfig
createSource()
@NotNull java.lang.String
getDatabase()
@Nullable java.lang.String
getExtraSettings()
@NotNull java.lang.String
getHost()
@Nullable java.lang.String
getPassword()
int
getPort()
@Nullable java.lang.String
getUsername()
@NotNull java.util.Map<java.lang.String,java.lang.Object>
serialize()
-
Methods inherited from class cc.carm.plugin.minesql.api.conf.SQLDriverConfig
getType
-
-
-
-
Field Detail
-
host
@NotNull protected final @NotNull java.lang.String host
-
port
protected final int port
-
database
@NotNull protected final @NotNull java.lang.String database
-
username
@Nullable protected final @Nullable java.lang.String username
-
password
@Nullable protected final @Nullable java.lang.String password
-
extraSettings
@Nullable protected final @Nullable java.lang.String extraSettings
-
-
Constructor Detail
-
RemoteAuthConfig
public RemoteAuthConfig(@NotNull @NotNull SQLDriverType type, @NotNull @NotNull java.lang.String host, int port, @NotNull @NotNull java.lang.String database, @Nullable @Nullable java.lang.String username, @Nullable @Nullable java.lang.String password, @Nullable @Nullable java.lang.String extraSettings)
-
-
Method Detail
-
createSource
public SQLSourceConfig createSource()
- Specified by:
createSource
in classSQLDriverConfig
-
getHost
@NotNull public @NotNull java.lang.String getHost()
-
getPort
public int getPort()
-
getDatabase
@NotNull public @NotNull java.lang.String getDatabase()
-
getUsername
@Nullable public @Nullable java.lang.String getUsername()
-
getPassword
@Nullable public @Nullable java.lang.String getPassword()
-
getExtraSettings
@Nullable public @Nullable java.lang.String getExtraSettings()
-
buildJDBC
protected java.lang.String buildJDBC()
-
serialize
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.Object> serialize()
- Specified by:
serialize
in classSQLDriverConfig
-
-