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