1 package org.apache.torque.adapter; 2 3 21 22 import java.sql.Connection ; 23 import java.sql.SQLException ; 24 25 33 public class DBNone extends AbstractDBAdapter 34 { 35 38 private static final long serialVersionUID = -285009315025818009L; 39 40 43 protected DBNone() 44 { 45 } 46 47 50 public Connection getConnection() 51 { 52 return null; 53 } 54 55 61 public String toUpperCase(String in) 62 { 63 return in; 64 } 65 66 72 public String ignoreCase(String in) 73 { 74 return in; 75 } 76 77 80 public String getIDMethodType() 81 { 82 return NO_ID_METHOD; 83 } 84 85 88 public String getIDMethodSQL(Object obj) 89 { 90 return null; 91 } 92 93 100 public void lockTable(Connection con, String table) throws SQLException 101 { 102 } 103 104 111 public void unlockTable(Connection con, String table) throws SQLException 112 { 113 } 114 } 115 | Popular Tags |