Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.


Stay organized with collections Save and categorize content based on your preferences.

Class LocalRdbmsServiceTestConfig

  • java.lang.Object
  • All Implemented Interfaces:

    public class LocalRdbmsServiceTestConfig
    extends java.lang.Object
    implements LocalServiceTestConfig
    Config for accessing the local RDBMS service in tests. Default behavior is to configure the local service to use an in-memory database. tearDown() does not wipe out data or tables.
    • Constructor Detail

      • LocalRdbmsServiceTestConfig

        public LocalRdbmsServiceTestConfig()
    • Method Detail

      • getLocalRdbmsService

        public static LocalRdbmsService getLocalRdbmsService()
      • getDriverClass

        public java.lang.String getDriverClass()
        The driver class.
      • setDriverClass

        public LocalRdbmsServiceTestConfig setDriverClass(java.lang.String driverClass)
        Sets the class of the driver used by the and attempts to load driverClass in the current ClassLoader.
        driverClass - The driver class. Must be the fully-qualified name of a class that implements Driver.
        this (for chaining)
        java.lang.RuntimeException - wrapping any exceptions loading driverClass.
      • getJdbcConnectionStringFormat

        public java.lang.String getJdbcConnectionStringFormat()
        The JDBC connection string format
      • setJdbcConnectionStringFormat

        public LocalRdbmsServiceTestConfig setJdbcConnectionStringFormat(java.lang.String jdbcConnectionStringFormat)
        Sets the format of the connection string that the jdbc driver will use.
        jdbcConnectionStringFormat - the connection string format
        this (for chaining)
      • setServerType

        public LocalRdbmsServiceTestConfig setServerType(LocalRdbmsService.ServerType serverType)
        Sets the server type to either hosted or local.

        • local connections proxy the SQL Service wire format to a local database using JDBC.
        • remote connections talk over a SpeckleRpc to a hosted development mode Speckle instance.

        serverType - hosted or local
        this (for chaining)
        java.lang.IllegalArgumentException - if serverType is not "hosted" or "local"
      • setExtraDriverProperties

        public LocalRdbmsServiceTestConfig setExtraDriverProperties(java.util.Map<java.lang.String,java.lang.String> map)
        Sets Extra properties to be passed to the underlying local JDBC driver.
        map - the extra driver properties.
        this (for chaining)
      • setDatabase

        public LocalRdbmsServiceTestConfig setDatabase(java.lang.String database)
        Sets the database to be passed to the underlying local JDBC driver.
      • setUser

        public LocalRdbmsServiceTestConfig setUser(java.lang.String user)
        Sets the user to be passed to the underlying local JDBC driver.
      • setPassword

        public LocalRdbmsServiceTestConfig setPassword(java.lang.String password)
        Sets the password to be passed to the underlying local JDBC driver.
      • setRemoteClientFactory

        public LocalRdbmsServiceTestConfig setRemoteClientFactory(java.lang.Class<? extends SqlClientFactory> remoteClientFactory)
        Sets the remote client factory class.
        remoteClientFactory - the SqlClientFactory implementation.
        this (for chaining)