01: /*
02: * Created by IntelliJ IDEA.
03: * User: mrettig
04: * Date: Aug 10, 2002
05: * Time: 1:03:51 AM
06: */
07: package net.sourceforge.jaxor.example.db;
08:
09: import net.sourceforge.jaxor.api.ConnectionFactory;
10:
11: import java.sql.Connection;
12:
13: public class HyperConnection implements ConnectionFactory {
14:
15: public static HyperConnection INSTANCE = new HyperConnection();
16:
17: private final net.sourceforge.jaxor.db.ConnectionRegistry reg = net.sourceforge.jaxor.db.ConnectionRegistry
18: .getConnection(org.hsqldb.jdbcDriver.class);
19:
20: private HyperConnection() {
21: }
22:
23: public Connection getConnection() {
24: return reg.create("jdbc:hsqldb:.", "sa", "");
25: }
26: }
|