View Javadoc

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