%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.torque.adapter.DBOdbc |
|
|
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 ODBC Bridged databases on Win32 |
|
27 | * Platforms. |
|
28 | * |
|
29 | * @author <a href="mailto:criley@ekmail.com">Cameron Riley</a> |
|
30 | * @version $Id: DBOdbc.java 473821 2006-11-11 22:37:25Z tv $ |
|
31 | */ |
|
32 | public class DBOdbc extends AbstractDBAdapter |
|
33 | { |
|
34 | /** |
|
35 | * Serial version |
|
36 | */ |
|
37 | private static final long serialVersionUID = -4852934297887694803L; |
|
38 | ||
39 | /** |
|
40 | * Empty constructor. |
|
41 | */ |
|
42 | protected DBOdbc() |
|
43 | 0 | { |
44 | 0 | } |
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 | 0 | 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 | 0 | return in; |
66 | } |
|
67 | ||
68 | /** |
|
69 | * @see org.apache.torque.adapter.DB#getIDMethodType() |
|
70 | */ |
|
71 | public String getIDMethodType() |
|
72 | { |
|
73 | 0 | 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 | 0 | return null; |
82 | } |
|
83 | ||
84 | /** |
|
85 | * Locks the specified table. |
|
86 | * |
|
87 | * Access does not implement this. |
|
88 | * |
|
89 | * @param con The JDBC connection to use. |
|
90 | * @param table The name of the table to lock. |
|
91 | * @exception SQLException No Statement could be created or executed. |
|
92 | */ |
|
93 | public void lockTable(Connection con, String table) throws SQLException |
|
94 | { |
|
95 | 0 | throw new SQLException("Not implemented."); |
96 | } |
|
97 | ||
98 | /** |
|
99 | * Unlocks the specified table. |
|
100 | * |
|
101 | * Access does not implement this. |
|
102 | * |
|
103 | * @param con The JDBC connection to use. |
|
104 | * @param table The name of the table to unlock. |
|
105 | * @exception SQLException No Statement could be created or executed. |
|
106 | */ |
|
107 | public void unlockTable(Connection con, String table) throws SQLException |
|
108 | { |
|
109 | 0 | throw new SQLException("Not implemented."); |
110 | } |
|
111 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |