1 22 23 package org.continuent.sequoia.controller.sql.schema; 24 25 33 public class TableColumn 34 { 35 36 private String tableName; 37 38 39 private String columnName; 40 41 47 public TableColumn(String tableName, String columnName) 48 { 49 if (tableName == null) 50 throw new IllegalArgumentException ("Illegal null table name in TableColumn constructor"); 51 52 if (columnName == null) 53 throw new IllegalArgumentException ("Illegal null column name in TableColumn constructor"); 54 55 this.tableName = tableName; 56 this.columnName = columnName; 57 } 58 59 64 public String getColumnName() 65 { 66 return columnName; 67 } 68 69 74 public String getTableName() 75 { 76 return tableName; 77 } 78 79 84 public void setColumnName(String columnName) 85 { 86 this.columnName = columnName; 87 } 88 89 94 public void setTableName(String tableName) 95 { 96 this.tableName = tableName; 97 } 98 99 106 public boolean equals(Object other) 107 { 108 if ((other == null) || !(other instanceof TableColumn)) 109 return false; 110 111 TableColumn c = (TableColumn) other; 112 return columnName.equals(c.getColumnName()) 113 && tableName.equals(c.getTableName()); 114 } 115 } 116 | Popular Tags |