1 28 29 package com.caucho.ejb.cfg; 30 31 import com.caucho.util.L10N; 32 33 36 public class SqlRelation { 37 private static L10N L = new L10N(CmpRelation.class); 38 39 private String _fieldName; 40 41 private String _references; 42 private String _sqlColumn; 43 44 public SqlRelation(String fieldName) 45 { 46 _fieldName = fieldName; 47 } 48 49 52 public String getFieldName() 53 { 54 return _fieldName; 55 } 56 57 60 public String getReferences() 61 { 62 return _references; 63 } 64 65 68 public void setReferences(String references) 69 { 70 _references = references; 71 } 72 73 76 public String getSQLColumn() 77 { 78 return _sqlColumn; 79 } 80 81 84 public void setSQLColumn(String sqlColumn) 85 { 86 _sqlColumn = sqlColumn; 87 } 88 89 92 public boolean equals(Object o) 93 { 94 if (! (o instanceof SqlRelation)) 95 return false; 96 97 SqlRelation relation = (SqlRelation) o; 98 99 if (! _fieldName.equals(relation._fieldName)) 100 return false; 101 102 if (_references == relation._references) 103 return true; 104 105 if (_references == null || relation._references == null) 106 return false; 107 108 return _references.equals(relation._references); 109 } 110 } 111 | Popular Tags |