db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1484359 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
Date Sun, 19 May 2013 22:25:29 GMT
Author: tfischer
Date: Sun May 19 22:25:28 2013
New Revision: 1484359

URL: http://svn.apache.org/r1484359
Log:
TORQUE-285 DatabaseMap.getName() should be public
use final modifiers in method parameters

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java?rev=1484359&r1=1484358&r2=1484359&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/DatabaseMap.java
Sun May 19 22:25:28 2013
@@ -111,7 +111,7 @@ public class DatabaseMap implements Seri
     /**
      * Constructs a new DatabaseMap.
      */
-    public DatabaseMap(Database database)
+    public DatabaseMap(final Database database)
     {
         if (database == null)
         {
@@ -125,7 +125,7 @@ public class DatabaseMap implements Seri
      *
      * @return the database name, not null.
      */
-    String getName()
+    public String getName()
     {
         return name;
     }
@@ -136,7 +136,7 @@ public class DatabaseMap implements Seri
      * @param table The TableMap representation of the table.
      * @return True if the database contains the table.
      */
-    public boolean containsTable(TableMap table)
+    public boolean containsTable(final TableMap table)
     {
         return containsTable(table.getName());
     }
@@ -172,7 +172,7 @@ public class DatabaseMap implements Seri
      * @param name Name of the table.
      * @return A TableMap, null if the table was not found.
      */
-    public TableMap getTable(String name)
+    public TableMap getTable(final String name)
     {
         TableMap result = tables.get(name);
         if (result != null)
@@ -228,7 +228,7 @@ public class DatabaseMap implements Seri
      *
      * @return the new table map.
      */
-    public TableMap addTable(String tableName)
+    public TableMap addTable(final String tableName)
     {
         TableMap tmap = new TableMap(tableName, this);
         tables.put(tableName, tmap);
@@ -240,7 +240,7 @@ public class DatabaseMap implements Seri
      *
      * @param idTableMap The TableMap representation.
      */
-    public void setIdTable(TableMap idTableMap)
+    public void setIdTable(final TableMap idTableMap)
     {
         this.idTable = idTableMap;
     }
@@ -261,7 +261,7 @@ public class DatabaseMap implements Seri
      * @param key the key of the option
      * @param value the value of the option.
      */
-    public void setOption(String key, String value)
+    public void setOption(final String key, final String value)
     {
         optionsMap.put(key, value);
     }
@@ -273,7 +273,7 @@ public class DatabaseMap implements Seri
      *
      * @return the value of the option, or null if not set.
      */
-    public String getOption(String key)
+    public String getOption(final String key)
     {
         return optionsMap.get(key);
     }
@@ -417,7 +417,7 @@ public class DatabaseMap implements Seri
      *
      * @param databaseMap the database map to copy from, not null.
      */
-    public void copyFrom(DatabaseMap databaseMap)
+    public void copyFrom(final DatabaseMap databaseMap)
     {
         this.isInitialized = databaseMap.isInitialized;
         this.optionsMap.clear();



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message