1 23 package com.lutris.dods.builder.generator.query; 24 25 32 public class RDBColumn { 33 protected String name; 34 protected RDBTable table; 35 protected boolean notNull; 36 public RDBColumn(RDBTable _table, String _str) { 37 table = _table; 38 name = _str; 39 notNull = true; 40 } 41 42 public RDBColumn(RDBTable _table, String _str, boolean _notNull) { 43 table = _table; 44 name = _str; 45 notNull = _notNull; 46 } 47 48 public boolean equals(RDBColumn x) { 49 if (null == x) { 50 return false; 51 } 52 if (!x.table.name.equals(table.name)) { 53 return false; 54 } 55 if (!x.name.equals(name)) { 56 return false; 57 } 58 return true; 59 } 60 61 public boolean notNull() { 62 return notNull; 63 } 64 65 public String getTableName() { 66 return table.name; 67 } 68 69 public String getColumnName() { 70 return name; 71 } 72 73 public String getFullColumnName() { 74 return table.name + "." + name; 75 } 76 } 77 | Popular Tags |