empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r759316 - in /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db: DBDatabase.java DBDatabaseDriver.java
Date Fri, 27 Mar 2009 19:45:53 GMT
Author: francisdb
Date: Fri Mar 27 19:45:52 2009
New Revision: 759316

URL: http://svn.apache.org/viewvc?rev=759316&view=rev
Log:
releation renamed to relation

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabaseDriver.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java?rev=759316&r1=759315&r2=759316&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabase.java
Fri Mar 27 19:45:52 2009
@@ -459,7 +459,7 @@
         // Create Relation Name
         String name = table.substring(0, Math.min(table.length(), 14)) + "_" + col1.substring(0,
Math.min(col1.length(), 12))
         			  + "_FK";
-        return addReleation(name, new DBRelation.DBReference[] { reference });
+        return addRelation(name, new DBRelation.DBReference[] { reference });
     }
 
     /**
@@ -478,7 +478,7 @@
         String name = table.substring(0, Math.min(table.length(), 9))
                     + "_" + col1.substring(0, Math.min(col1.length(), 9))
                     + "_" + col2.substring(0, Math.min(col2.length(), 9)) + "_FK";
-        return addReleation(name, new DBRelation.DBReference[] { ref1, ref2 });
+        return addRelation(name, new DBRelation.DBReference[] { ref1, ref2 });
     }
 
     /**
@@ -489,7 +489,7 @@
      * 
      * @return true if the relations was successfully created.
      */
-    public boolean addReleation(String name, DBRelation.DBReference[] references)
+    public boolean addRelation(String name, DBRelation.DBReference[] references)
     {
         // Add a Relation
         DBRelation relation = new DBRelation(this, name, references);

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabaseDriver.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabaseDriver.java?rev=759316&r1=759315&r2=759316&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabaseDriver.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBDatabaseDriver.java
Fri Mar 27 19:45:52 2009
@@ -227,8 +227,9 @@
     {
         // Initialize List of reserved Keywords
         reservedSQLKeywords = new HashSet<String>(generalSQLKeywords.length);
-        for (int i=0; i<generalSQLKeywords.length; i++)
-             reservedSQLKeywords.add(generalSQLKeywords[i]);
+        for (String keyWord:generalSQLKeywords){
+             reservedSQLKeywords.add(keyWord);
+        }
     }
 
     /**



Mime
View raw message