Class JdbcSessionFactory

java.lang.Object
org.sqlproc.engine.jdbc.JdbcSessionFactory
All Implemented Interfaces:
SqlSessionFactory

public class JdbcSessionFactory extends Object implements SqlSessionFactory
The simple implementation of the factory SqlSessionFactory for the JDBC stack.

For more info please see the Tutorials.

Author:
Vladimir Hudec
  • Field Details

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

    • 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
  • Method Details