View Javadoc
1 /* 2 * Created on 2003-5-21 23:10:58 3 * 4 * To change the template for this generated file go to 5 * Window>Preferences>Java>Code Generation>Code and Comments 6 */ 7 package com.cyclops.dbdigger.schema.torque; 8 import org.apache.commons.lang.StringUtils; 9 10 import com.cyclops.dbdigger.schema.DefaultTable; 11 /*** 12 * 13 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a> 14 * @since 2003-5-21 23:10:58 15 */ 16 public class TorqueTable extends DefaultTable { 17 private String javaName; 18 /*** Method getJavaName() 19 * @return Java name of this Table 20 */ 21 public String getJavaName() { 22 return javaName; 23 } 24 /*** Method setJavaName() 25 * @param string Java name 26 */ 27 public void setJavaName(String string) { 28 javaName = string; 29 } 30 /*** Override method setName() in super class 31 * @see com.cyclops.dbdigger.schema.DefaultTable#setName(java.lang.String) 32 */ 33 public void setName(String string) { 34 super.setName(string); 35 if (StringUtils.isEmpty(javaName)) { 36 // TODO Need to convert table name into java name 37 javaName = StringUtils.capitaliseAllWords(getName()); 38 } 39 } 40 }

This page was automatically generated by Maven