01: package org.apache.torque.adapter;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "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 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: * Serial version
35: */
36: private static final long serialVersionUID = 6645853000903579587L;
37:
38: /**
39: * Empty constructor.
40: */
41: protected DBWeblogic() {
42: }
43:
44: /**
45: * This method is used to ignore case.
46: *
47: * @param in The string to transform to upper case.
48: * @return The upper case string.
49: */
50: public String toUpperCase(String in) {
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: return in;
62: }
63:
64: /**
65: * @see org.apache.torque.adapter.DB#getIDMethodType()
66: */
67: public String getIDMethodType() {
68: return NO_ID_METHOD;
69: }
70:
71: /**
72: * @see org.apache.torque.adapter.DB#getIDMethodSQL(Object obj)
73: */
74: public String getIDMethodSQL(Object obj) {
75: return null;
76: }
77:
78: /**
79: * Locks the specified table.
80: *
81: * @param con The JDBC connection to use.
82: * @param table The name of the table to lock.
83: * @throws SQLException No Statement could be created or executed.
84: */
85: public void lockTable(Connection con, String table)
86: throws SQLException {
87: }
88:
89: /**
90: * Unlocks the specified table.
91: *
92: * @param con The JDBC connection to use.
93: * @param table The name of the table to unlock.
94: * @throws SQLException No Statement could be created or executed.
95: */
96: public void unlockTable(Connection con, String table)
97: throws SQLException {
98: }
99: }
|