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 InstantDB databases.
027: *
028: * <a href="http://instantdb.enhydra.org">
029: * http://instantdb.enhydra.org
030: * </a>
031: *
032: * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
033: * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>
034: * @version $Id: DBInstantDB.java 473821 2006-11-11 22:37:25Z tv $
035: */
036: public class DBInstantDB extends AbstractDBAdapter {
037: /**
038: * Serial version
039: */
040: private static final long serialVersionUID = -3988631220284628238L;
041:
042: /**
043: * Empty constructor.
044: */
045: protected DBInstantDB() {
046: }
047:
048: /**
049: * This method is used to ignore case.
050: *
051: * @param in The string to transform to upper case.
052: * @return The upper case string.
053: */
054: public String toUpperCase(String in) {
055: return in;
056: }
057:
058: /**
059: * This method is used to ignore case.
060: *
061: * @param in The string whose case to ignore.
062: * @return The string in a case that can be ignored.
063: */
064: public String ignoreCase(String in) {
065: return in;
066: }
067:
068: /**
069: * @see org.apache.torque.adapter.DB#getIDMethodType()
070: */
071: public String getIDMethodType() {
072: return NO_ID_METHOD;
073: }
074:
075: /**
076: * @see org.apache.torque.adapter.DB#getIDMethodSQL(Object obj)
077: */
078: public String getIDMethodSQL(Object obj) {
079: return null;
080: }
081:
082: /**
083: * Locks the specified table.
084: *
085: * @param con The JDBC connection to use.
086: * @param table The name of the table to lock.
087: * @exception SQLException No Statement could be created or executed.
088: */
089: public void lockTable(Connection con, String table)
090: throws SQLException {
091: }
092:
093: /**
094: * Unlocks the specified table.
095: *
096: * @param con The JDBC connection to use.
097: * @param table The name of the table to unlock.
098: * @exception SQLException No Statement could be created or executed.
099: */
100: public void unlockTable(Connection con, String table)
101: throws SQLException {
102: }
103: }
|