Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 24 25 package org.objectweb.cjdbc.common.sql.schema; 26 27 import java.io.Serializable ; 28 29 43 public class AliasedDatabaseTable implements Serializable  44 { 45 private static final long serialVersionUID = 7082201367853814224L; 46 47 48 private DatabaseTable table; 49 50 51 private String alias; 52 53 59 public AliasedDatabaseTable(DatabaseTable table, String alias) 60 { 61 if (table == null) 62 throw new IllegalArgumentException ( 63 "Illegal null database table in AliasedDatabaseTable constructor"); 64 65 this.table = table; 66 this.alias = alias; 67 } 68 69 75 public DatabaseTable getTable() 76 { 77 return table; 78 } 79 80 85 public String getAlias() 86 { 87 return alias; 88 } 89 90 97 public boolean equals(Object other) 98 { 99 if ((other == null) || !(other instanceof AliasedDatabaseTable)) 100 return false; 101 102 AliasedDatabaseTable ad = (AliasedDatabaseTable) other; 103 if (alias == null) 104 return (ad.getAlias() == null) && table.equals(ad.getTable()); 105 else 106 return alias.equals(ad.getAlias()) && table.equals(ad.getTable()); 107 } 108 } 109
| Popular Tags
|