001: package org.apache.torque.adapter;
002:
003: /*
004: * Licensed to the Apache Software Foundation (ASF) under one
005: * or more contributor license agreements. See the NOTICE file
006: * distributed with this work for additional information
007: * regarding copyright ownership. The ASF licenses this file
008: * to you under the Apache License, Version 2.0 (the
009: * "License"); you may not use this file except in compliance
010: * with the License. You may obtain a copy of the License at
011: *
012: * http://www.apache.org/licenses/LICENSE-2.0
013: *
014: * Unless required by applicable law or agreed to in writing,
015: * software distributed under the License is distributed on an
016: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017: * KIND, either express or implied. See the License for the
018: * specific language governing permissions and limitations
019: * under the License.
020: */
021:
022: import java.sql.Connection;
023: import java.sql.SQLException;
024:
025: /**
026: * This is used to connect to Hypersonic SQL databases.
027: *
028: * <a href="http://axion.tigris.org">http://axion.tigris.org</a>
029: *
030: * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
031: * @version $Id: DBAxion.java 473821 2006-11-11 22:37:25Z tv $
032: */
033: public class DBAxion extends AbstractDBAdapter {
034: /**
035: * Serial version
036: */
037: private static final long serialVersionUID = -5982548040625874572L;
038:
039: /**
040: * Constructor.
041: */
042: protected DBAxion() {
043: }
044:
045: /**
046: * This method is used to ignore case.
047: *
048: * @param in The string to transform to upper case.
049: * @return The upper case string.
050: */
051: public String toUpperCase(String in) {
052: return in;
053: }
054:
055: /**
056: * This method is used to ignore case.
057: *
058: * @param in The string whose case to ignore.
059: * @return The string in a case that can be ignored.
060: */
061: public String ignoreCase(String in) {
062: return in;
063: }
064:
065: /**
066: * @see org.apache.torque.adapter.DB#getIDMethodType()
067: */
068: public String getIDMethodType() {
069: return NO_ID_METHOD;
070: }
071:
072: /**
073: * @see org.apache.torque.adapter.DB#getIDMethodSQL(Object obj)
074: */
075: public String getIDMethodSQL(Object obj) {
076: return null;
077: }
078:
079: /**
080: * Locks the specified table.
081: *
082: * @param con The JDBC connection to use.
083: * @param table The name of the table to lock.
084: * @exception SQLException No Statement could be created or executed.
085: */
086: public void lockTable(Connection con, String table)
087: throws SQLException {
088: }
089:
090: /**
091: * Unlocks the specified table.
092: *
093: * @param con The JDBC connection to use.
094: * @param table The name of the table to unlock.
095: * @exception SQLException No Statement could be created or executed.
096: */
097: public void unlockTable(Connection con, String table)
098: throws SQLException {
099: }
100: }
|