Class SchemaNameFromProps

  • All Implemented Interfaces:
    SchemaNameSupplier

    public class SchemaNameFromProps
    extends java.lang.Object
    implements SchemaNameSupplier
    Returns a constant schemaName. Useful for unit test configurations
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemaNameFromProps​(java.lang.String schemaName)
      Public constructor
      SchemaNameFromProps​(java.util.Properties configProps)
      Public constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSchemaForRequestContext​(java.sql.Connection connection)
      Get the schema name for the current request context
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchemaNameFromProps

        public SchemaNameFromProps​(java.util.Properties configProps)
        Public constructor
        Parameters:
        configProps - should contain the "schemaName" property
      • SchemaNameFromProps

        public SchemaNameFromProps​(java.lang.String schemaName)
        Public constructor
        Parameters:
        schemaName - constant