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