Class HibernateSessionFactory
java.lang.Object
ecmwf.common.database.HibernateSessionFactory
A factory for creating HibernateSession objects.
-
Method Summary
-
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 driverlevel- the levelprotocol- the protocolsubProtocol- the sub protocolalias- the aliasuser- the userpassword- the passworddbms- the dbmsvalidation- the validation
-