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 code should be used for a Weblogic database pool.
27 *
28 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
29 * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>
30 * @version $Id: DBWeblogic.java 473821 2006-11-11 22:37:25Z tv $
31 */
32 public class DBWeblogic extends AbstractDBAdapter
33 {
34 /***
35 * Serial version
36 */
37 private static final long serialVersionUID = 6645853000903579587L;
38
39 /***
40 * Empty constructor.
41 */
42 protected DBWeblogic()
43 {
44 }
45
46 /***
47 * This method is used to ignore case.
48 *
49 * @param in The string to transform to upper case.
50 * @return The upper case string.
51 */
52 public String toUpperCase(String in)
53 {
54 return in;
55 }
56
57 /***
58 * This method is used to ignore case.
59 *
60 * @param in The string whose case to ignore.
61 * @return The string in a case that can be ignored.
62 */
63 public String ignoreCase(String in)
64 {
65 return in;
66 }
67
68 /***
69 * @see org.apache.torque.adapter.DB#getIDMethodType()
70 */
71 public String getIDMethodType()
72 {
73 return NO_ID_METHOD;
74 }
75
76 /***
77 * @see org.apache.torque.adapter.DB#getIDMethodSQL(Object obj)
78 */
79 public String getIDMethodSQL(Object obj)
80 {
81 return null;
82 }
83
84 /***
85 * Locks the specified table.
86 *
87 * @param con The JDBC connection to use.
88 * @param table The name of the table to lock.
89 * @throws SQLException No Statement could be created or executed.
90 */
91 public void lockTable(Connection con, String table) throws SQLException
92 {
93 }
94
95 /***
96 * Unlocks the specified table.
97 *
98 * @param con The JDBC connection to use.
99 * @param table The name of the table to unlock.
100 * @throws SQLException No Statement could be created or executed.
101 */
102 public void unlockTable(Connection con, String table) throws SQLException
103 {
104 }
105 }