Class SQLSourceConfig


  • public class SQLSourceConfig
    extends java.lang.Object
    • Constructor Detail

      • SQLSourceConfig

        public SQLSourceConfig​(@NotNull
                               @NotNull java.lang.String driverClassName,
                               @NotNull
                               @NotNull java.lang.String jdbcURL,
                               @Nullable
                               @Nullable cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.SQLManager> initializer,
                               @Nullable
                               @Nullable SQLPoolSettings settings)
    • Method Detail

      • createMySQL

        public static SQLSourceConfig createMySQL​(@NotNull
                                                  @NotNull java.lang.String host,
                                                  int port,
                                                  @NotNull
                                                  @NotNull java.lang.String database,
                                                  @NotNull
                                                  @NotNull java.lang.String username,
                                                  @Nullable
                                                  @Nullable java.lang.String password,
                                                  @Nullable
                                                  @Nullable java.lang.String extraSettings)
      • createMariaDB

        public static SQLSourceConfig createMariaDB​(@NotNull
                                                    @NotNull java.lang.String host,
                                                    int port,
                                                    @NotNull
                                                    @NotNull java.lang.String database,
                                                    @NotNull
                                                    @NotNull java.lang.String username,
                                                    @Nullable
                                                    @Nullable java.lang.String password,
                                                    @Nullable
                                                    @Nullable java.lang.String extraSettings)
      • createH2File

        public static SQLSourceConfig createH2File​(@NotNull
                                                   @NotNull java.io.File file)
      • createH2File

        public static SQLSourceConfig createH2File​(@NotNull
                                                   @NotNull java.lang.String filePath)
      • createH2Mem

        public static SQLSourceConfig createH2Mem​(@Nullable
                                                  @Nullable java.lang.String databaseName)
      • create

        public static SQLSourceConfig create​(@NotNull
                                             @NotNull java.lang.String driverClass,
                                             @NotNull
                                             @NotNull java.lang.String jdbcURL)
      • create

        public static SQLSourceConfig create​(@NotNull
                                             @NotNull java.lang.String driverClassName,
                                             @NotNull
                                             @NotNull java.lang.String jdbcURL,
                                             @Nullable
                                             @Nullable cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.SQLManager> initializer)
      • create

        public static SQLSourceConfig create​(@NotNull
                                             @NotNull java.lang.String driverClassName,
                                             @NotNull
                                             @NotNull java.lang.String jdbcURL,
                                             @Nullable
                                             @Nullable cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.SQLManager> initializer,
                                             @Nullable
                                             @Nullable SQLPoolSettings settings)
      • getDriverClassName

        @NotNull
        public @NotNull java.lang.String getDriverClassName()
      • setDriverClassName

        public SQLSourceConfig setDriverClassName​(java.lang.String driverClassName)
      • getJdbcURL

        @NotNull
        public @NotNull java.lang.String getJdbcURL()
      • setJdbcURL

        public SQLSourceConfig setJdbcURL​(java.lang.String jdbcURL)
      • getUsername

        @Nullable
        public @Nullable java.lang.String getUsername()
      • setUsername

        public SQLSourceConfig setUsername​(java.lang.String username)
      • getPassword

        @Nullable
        public @Nullable java.lang.String getPassword()
      • setPassword

        public SQLSourceConfig setPassword​(java.lang.String password)
      • getInitializer

        @Nullable
        public @Nullable cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.SQLManager> getInitializer()
      • setInitializer

        public SQLSourceConfig setInitializer​(cc.carm.lib.easysql.api.function.SQLHandler<cc.carm.lib.easysql.api.SQLManager> initializer)