01: /**
02: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the latest version of the GNU Lesser General
06: * Public License as published by the Free Software Foundation;
07: *
08: * This program is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public License
14: * along with this program (LICENSE.txt); if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16: */package org.jamwiki.db;
17:
18: import java.util.Properties;
19: import org.jamwiki.Environment;
20: import org.jamwiki.utils.WikiLogger;
21:
22: /**
23: * HSQL-specific implementation of the QueryHandler interface. This class implements
24: * HSQL-specific methods for instances where Postgres does not support the default
25: * ASCII SQL syntax.
26: */
27: public class HSqlQueryHandler extends AnsiQueryHandler {
28:
29: private static final WikiLogger logger = WikiLogger
30: .getLogger(HSqlQueryHandler.class.getName());
31: private static final String SQL_PROPERTY_FILE_NAME = "sql.hsql.properties";
32: private static Properties props = null;
33: private static Properties defaults = null;
34:
35: /**
36: *
37: */
38: protected HSqlQueryHandler() {
39: defaults = Environment
40: .loadProperties(AnsiQueryHandler.SQL_PROPERTY_FILE_NAME);
41: props = Environment.loadProperties(SQL_PROPERTY_FILE_NAME,
42: defaults);
43: super.init(props);
44: }
45: }
|