1 package org.apache.torque.adapter;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import java.sql.Connection;
20 import java.sql.SQLException;
21
22 /***
23 * This is used to connect to InstantDB databases.
24 *
25 * <a href="http://instantdb.enhydra.org">
26 * http://instantdb.enhydra.org
27 * </a>
28 *
29 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
30 * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>
31 * @version $Id: DBInstantDB.java 239630 2005-08-24 12:25:32Z henning $
32 */
33 public class DBInstantDB
34 extends DB
35 {
36 /***
37 * Empty constructor.
38 */
39 protected DBInstantDB()
40 {
41 }
42
43 /***
44 * This method is used to ignore case.
45 *
46 * @param in The string to transform to upper case.
47 * @return The upper case string.
48 */
49 public String toUpperCase(String in)
50 {
51 return in;
52 }
53
54 /***
55 * This method is used to ignore case.
56 *
57 * @param in The string whose case to ignore.
58 * @return The string in a case that can be ignored.
59 */
60 public String ignoreCase(String in)
61 {
62 return in;
63 }
64
65 /***
66 * @see org.apache.torque.adapter.DB#getIDMethodType()
67 */
68 public String getIDMethodType()
69 {
70 return NO_ID_METHOD;
71 }
72
73 /***
74 * @see org.apache.torque.adapter.DB#getIDMethodSQL(Object obj)
75 */
76 public String getIDMethodSQL(Object obj)
77 {
78 return null;
79 }
80
81 /***
82 * Locks the specified table.
83 *
84 * @param con The JDBC connection to use.
85 * @param table The name of the table to lock.
86 * @exception SQLException No Statement could be created or executed.
87 */
88 public void lockTable(Connection con, String table) throws SQLException
89 {
90 }
91
92 /***
93 * Unlocks the specified table.
94 *
95 * @param con The JDBC connection to use.
96 * @param table The name of the table to unlock.
97 * @exception SQLException No Statement could be created or executed.
98 */
99 public void unlockTable(Connection con, String table) throws SQLException
100 {
101 }
102 }