%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.torque.adapter.DBInstantDB |
|
|
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 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 | 0 | { |
48 | 0 | } |
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 | 0 | 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 | 0 | return in; |
70 | } |
|
71 | ||
72 | /** |
|
73 | * @see org.apache.torque.adapter.DB#getIDMethodType() |
|
74 | */ |
|
75 | public String getIDMethodType() |
|
76 | { |
|
77 | 0 | 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 | 0 | 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 | 0 | } |
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 | 0 | } |
109 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |