View Javadoc

1   package org.apache.torque.adapter;
2   
3   /*
4    * Copyright 2001-2005 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License")
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *     http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  import java.sql.Connection;
20  import java.sql.SQLException;
21  
22  /***
23   * This is used to connect to ODBC Bridged databases on Win32
24   * Platforms.
25   *
26   * @author <a href="mailto:criley@ekmail.com">Cameron Riley</a>
27   * @version $Id: DBOdbc.java 239630 2005-08-24 12:25:32Z henning $
28   */
29  public class DBOdbc
30      extends DB
31  {
32      /***
33       * Empty constructor.
34       */
35      protected DBOdbc()
36      {
37      }
38  
39      /***
40       * This method is used to ignore case.
41       *
42       * @param in The string to transform to upper case.
43       * @return The upper case string.
44       */
45      public String toUpperCase(String in)
46      {
47          return in;
48      }
49  
50      /***
51       * This method is used to ignore case.
52       *
53       * @param in The string whose case to ignore.
54       * @return The string in a case that can be ignored.
55       */
56      public String ignoreCase(String in)
57      {
58          return in;
59      }
60  
61      /***
62       * @see org.apache.torque.adapter.DB#getIDMethodType()
63       */
64      public String getIDMethodType()
65      {
66          return NO_ID_METHOD;
67      }
68  
69      /***
70       * @see org.apache.torque.adapter.DB#getIDMethodSQL(Object obj)
71       */
72      public String getIDMethodSQL(Object obj)
73      {
74          return null;
75      }
76  
77      /***
78       * Locks the specified table.
79       *
80       * Access does not implement this.
81       *
82       * @param con The JDBC connection to use.
83       * @param table The name of the table to lock.
84       * @exception SQLException No Statement could be created or executed.
85       */
86      public void lockTable(Connection con, String table) throws SQLException
87      {
88          throw new SQLException("Not implemented.");
89      }
90  
91      /***
92       * Unlocks the specified table.
93       *
94       * Access does not implement this.
95       *
96       * @param con The JDBC connection to use.
97       * @param table The name of the table to unlock.
98       * @exception SQLException No Statement could be created or executed.
99       */
100     public void unlockTable(Connection con, String table) throws SQLException
101     {
102         throw new SQLException("Not implemented.");
103     }
104 }