Class ExasolObjectFactory

    • Constructor Detail

      • ExasolObjectFactory

        public ExasolObjectFactory​(Connection connection)
        Create a new ExasolObjectFactory instance without further configuration.
        Parameters:
        connection - JDBC connection
    • Method Detail

      • createConnectionDefinition

        public ConnectionDefinition createConnectionDefinition​(String name,
                                                               String to)
        Create a connection without credentials.
        Parameters:
        name - name of the connection
        to - target the connection points to
        Returns:
        new ConnectionDefinition instance
      • createConnectionDefinition

        public ConnectionDefinition createConnectionDefinition​(String name,
                                                               String target,
                                                               String userName,
                                                               String password)
        Create a connection without credentials.
        Parameters:
        name - name of the connection
        target - target the connection points to
        userName - user as which to connect
        password - password or password-like credential
        Returns:
        new ConnectionDefinition instance
      • createUser

        public User createUser​(String name,
                               String password)
        Description copied from interface: DatabaseObjectFactory
        Create a new database user.
        Parameters:
        name - user name
        password - login password
        Returns:
        new User instance
      • createLoginUser

        public User createLoginUser​(String name)
        Description copied from interface: DatabaseObjectFactory
        Create user that can log into the database with a default password.

        This method creates a user with a password derived from the user name. Note that this is only acceptable in the scope of testing for which the TDBJ is made. Never use something like this in production code!

        Specified by:
        createLoginUser in interface DatabaseObjectFactory
        Overrides:
        createLoginUser in class AbstractObjectFactory
        Parameters:
        name - user name
        Returns:
        new User instance
      • createVirtualSchemaBuilder

        public VirtualSchema.Builder createVirtualSchemaBuilder​(String name)
        Create a builder for a Virtual Schema.
        Parameters:
        name - name of the Virtual Schema
        Returns:
        builder