Class JdbcSessionFactory

    • Field Detail

      • connection

        private Connection connection
        The connection to the database. It should be opened.
      • name

        private String name
        The name of the database related to this session. It's usage is implementation specific.
    • Constructor Detail

      • JdbcSessionFactory

        public JdbcSessionFactory​(Connection connection)
        Creates a new instance.
        Parameters:
        connection - the connection to the database
      • JdbcSessionFactory

        public JdbcSessionFactory​(Connection connection,
                                  String name)
        Creates a new instance.
        Parameters:
        connection - the connection to the database
        name - the name of the database related to this session