db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/generator/src/java/org/apache/torque/engine/database/model Column.java
Date Thu, 26 Jun 2003 17:40:05 GMT
mpoeschl    2003/06/26 10:40:05

  Modified:    src/generator/src/java/org/apache/torque/engine/database/model
                        Column.java
  Log:
  add getUncapitalisedJavaName()
  this method is used when generating the ojb repository
  
  Revision  Changes    Path
  1.3       +11 -1     db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Column.java
  
  Index: Column.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/database/model/Column.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Column.java	26 Jun 2003 06:59:56 -0000	1.2
  +++ Column.java	26 Jun 2003 17:40:05 -0000	1.3
  @@ -59,6 +59,8 @@
   import java.util.Hashtable;
   import java.util.List;
   
  +import org.apache.commons.lang.StringUtils;
  +
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   
  @@ -277,6 +279,14 @@
               }
           }
           return javaName;
  +    }
  +    
  +    /**
  +     * Get variable name to use in Java sources (= uncapitalised java name)
  +     */    
  +    public String getUncapitalisedJavaName()
  +    {
  +        return StringUtils.uncapitalise(getJavaName());
       }
   
       /**
  
  
  

Mime
View raw message