Source code: com/mysql/jdbc/LicenseConfiguration.java
1 /*
2 Copyright (C) 2002-2004 MySQL AB
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of version 2 of the GNU General Public License as
6 published by the Free Software Foundation.
7
8
9 There are special exceptions to the terms and conditions of the GPL
10 as it is applied to this software. View the full text of the
11 exception exception in file EXCEPTIONS-CONNECTOR-J in the directory of this
12 software distribution.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
23 */
24 package com.mysql.jdbc;
25
26 import java.sql.SQLException;
27 import java.util.Map;
28
29
30 /**
31 * Used in commercially-licensed clients that require connections to
32 * commercially-licensed servers as part of the licensing terms.
33 *
34 * @author Mark Matthews
35 * @version $Id: LicenseConfiguration.java,v 1.1.2.4 2004/08/09 22:15:12 mmatthew Exp $
36 */
37 class LicenseConfiguration {
38
39 private LicenseConfiguration() {
40 // this is a static utility class
41 }
42
43
44 /**
45 * Used in commercially-licensed clients that require connections to
46 * commercially-licensed servers as part of the licensing terms.
47 *
48 * @param serverVariables a Map of the output of 'show variables' from the
49 * server we're connecting to.
50 *
51 * @throws SQLException if commercial license is required, but not found
52 */
53 static void checkLicenseType(Map serverVariables) throws SQLException {
54 // This is a GPL build, so we don't check anything...
55 }
56 }