Class PostgreSqlObjectFactory

    • Constructor Detail

      • PostgreSqlObjectFactory

        public PostgreSqlObjectFactory​(Connection connectionToPostgres)
        Create a new instance of PostgreSqlObjectFactory.
        Parameters:
        connectionToPostgres - connection to the PostgreSQL database.
    • Method Detail

      • 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
      • createSchema

        public Schema createSchema​(String name)
        Description copied from interface: DatabaseObjectFactory
        Create a new database schema.
        Parameters:
        name - name of the schema
        Returns:
        new Schema