Revision: 1314
http://cishell.svn.sourceforge.net/cishell/?rev=1314&view=rev
Author: david-coe
Date: 2012-03-20 15:18:36 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
Removed a poorly written and unused 'equals' function that really did something else.
Reviewed by Thomas.
Modified Paths:
--------------
trunk/core/org.cishell.reference.service.database/src/org/cishell/reference/service/database/utility/JDBC.java
Modified: trunk/core/org.cishell.reference.service.database/src/org/cishell/reference/service/database/utility/JDBC.java
===================================================================
--- trunk/core/org.cishell.reference.service.database/src/org/cishell/reference/service/database/utility/JDBC.java 2012-03-20 15:15:17 UTC (rev 1313)
+++ trunk/core/org.cishell.reference.service.database/src/org/cishell/reference/service/database/utility/JDBC.java 2012-03-20 15:18:36 UTC (rev 1314)
@@ -49,46 +49,6 @@
* The base level for the Derby tests is JSR 169.
*/
public class JDBC {
-
- /**
- * Helper class whose <code>equals()</code> method returns
- * <code>true</code> for all strings on this format: SQL061021105830900
- */
- public static class GeneratedId {
- public boolean equals(Object o) {
- // unless JSR169, use String.matches...
- if (JDBC.vmSupportsJDBC3())
- {
- return o instanceof String &&
- ((String) o).matches("SQL[0-9]{15}");
- }
- else
- {
- String tmpstr = (String)o;
- boolean b = true;
- if (!(o instanceof String))
- b = false;
- if (!(tmpstr.startsWith("SQL")))
- b = false;
- if (tmpstr.length() != 18)
- b = false;
- for (int i=3 ; i<18 ; i++)
- {
- if (Character.isDigit(tmpstr.charAt(i)))
- continue;
- else
- {
- b = false;
- break;
- }
- }
- return b;
- }
- }
- public String toString() {
- return "xxxxGENERATED-IDxxxx";
- }
- }
/**
* Constant to pass to DatabaseMetaData.getTables() to fetch
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|