File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\engine\SessionFactory.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.engine;
8
9 import java.sql.SQLException;
10
11 /**
12 * A class that implements this interface can create new database sessions.
13 */
14 interface SessionFactory {
15
16 /**
17 * Create a new session.
18 *
19 * @param ci the connection parameters
20 * @return the new session
21 */
22 SessionInterface createSession(ConnectionInfo ci) throws SQLException;
23
24 }
25