01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.rdbms.mysql.alt;
07:
08: import org.openrdf.sail.rdbms.RdbmsConnectionFactory;
09: import org.openrdf.sail.rdbms.RdbmsProvider;
10:
11: /**
12: * Checks the database product name and version to be compatible with this
13: * Sesame store.
14: *
15: * @author James Leigh
16: *
17: */
18: public class MySqlProvider implements RdbmsProvider {
19:
20: public RdbmsConnectionFactory createRdbmsConnectionFactory(
21: String dbName, String dbVersion) {
22: if ("MySQL".equalsIgnoreCase(dbName))
23: return new MySqlConnectionFactory();
24: return null;
25: }
26:
27: }
|