1 package org.apache.turbine.util.db; 2 3 18 19 27 public class TableColumn 28 { 29 32 protected String tableName; 33 34 37 protected String columnName; 38 39 43 private String tableColumn; 44 45 public TableColumn(String tableName, String columnName) 46 { 47 this.tableName = tableName; 48 this.columnName = columnName; 49 this.tableColumn = (tableName + '.' + columnName); 50 } 51 52 57 public boolean equals(Object obj) 58 { 59 if (this == obj) 60 { 61 return true; 62 } 63 else if (obj == null) 64 { 65 return false; 66 } 67 else if (obj instanceof TableColumn) 68 { 69 TableColumn tc = (TableColumn) obj; 70 return (tableName.equals(tc.tableName) && 71 columnName.equals(tc.columnName)); 72 } 73 else 74 { 75 return false; 76 } 77 } 78 79 85 public String toString() 86 { 87 return tableColumn; 88 } 89 } 90 | Popular Tags |