src/org/objectweb/cjdbc/common/sql/schema/AliasedDatabaseTable.java

説明を見る。
00001 00025 package org.objectweb.cjdbc.common.sql.schema; 00026 00027 import java.io.Serializable; 00028 00044 public class AliasedDatabaseTable implements Serializable 00045 { 00047 private DatabaseTable table; 00048 00050 private String alias; 00051 00058 public AliasedDatabaseTable(DatabaseTable table, String alias) 00059 { 00060 if (table == null) 00061 throw new IllegalArgumentException("Illegal null database table in AliasedDatabaseTable constructor"); 00062 00063 this.table = table; 00064 this.alias = alias; 00065 } 00066 00073 public DatabaseTable getTable() 00074 { 00075 return table; 00076 } 00077 00083 public String getAlias() 00084 { 00085 return alias; 00086 } 00087 00095 public boolean equals(Object other) 00096 { 00097 if ((other == null) || !(other instanceof AliasedDatabaseTable)) 00098 return false; 00099 00100 AliasedDatabaseTable ad = (AliasedDatabaseTable) other; 00101 if (alias == null) 00102 return (ad.getAlias() == null) && table.equals(ad.getTable()); 00103 else 00104 return alias.equals(ad.getAlias()) && table.equals(ad.getTable()); 00105 } 00106 }

CJDBCversion1.0.4に対してTue Oct 12 15:15:57 2004に生成されました。 doxygen 1.3.8