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 Hypersonic SQL databases.
24   *
25   * <a href="http://axion.tigris.org">http://axion.tigris.org</a>
26   *
27   * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a>
28   * @version $Id: DBAxion.java 239630 2005-08-24 12:25:32Z henning $
29   */
30  public class DBAxion extends DB
31  {
32      /***
33       * Constructor.
34       */
35      protected DBAxion()
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       * @param con The JDBC connection to use.
81       * @param table The name of the table to lock.
82       * @exception SQLException No Statement could be created or executed.
83       */
84      public void lockTable(Connection con, String table) throws SQLException
85      {
86      }
87  
88      /***
89       * Unlocks the specified table.
90       *
91       * @param con The JDBC connection to use.
92       * @param table The name of the table to unlock.
93       * @exception SQLException No Statement could be created or executed.
94       */
95      public void unlockTable(Connection con, String table) throws SQLException
96      {
97      }
98  }