Class HibernateSessionFactory

java.lang.Object
ecmwf.common.database.HibernateSessionFactory

public class HibernateSessionFactory extends Object
A factory for creating HibernateSession objects.
  • Method Details

    • getMetadata

      public static org.hibernate.boot.Metadata getMetadata()
      Gets the metadata.
      Returns:
      the metadata
    • shutdown

      public static void shutdown()
      Shutdown.
    • init

      public static void init(String driver, String level, String protocol, String subProtocol, String alias, String user, String password, String dbms, String validation)
      Inits the.
      Parameters:
      driver - the driver
      level - the level
      protocol - the protocol
      subProtocol - the sub protocol
      alias - the alias
      user - the user
      password - the password
      dbms - the dbms
      validation - the validation