com.mchange.v1.db.sql.schemarep
Class TableRepImpl

java.lang.Object
  extended by com.mchange.v1.db.sql.schemarep.TableRepImpl
All Implemented Interfaces:
TableRep

public class TableRepImpl
extends Object
implements TableRep


Constructor Summary
TableRepImpl(String tableName, List colReps, Collection primaryKeyColNames, Collection foreignKeyReps, Collection uniqConstrReps)
           
 
Method Summary
 ColumnRep columnRepForName(String name)
           
 boolean equals(Object o)
           
 Iterator getColumnNames()
           
 Set getForeignKeyReps()
           
 Set getPrimaryKeyColumnNames()
           
 String getTableName()
           
 Set getUniquenessConstraintReps()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableRepImpl

public TableRepImpl(String tableName,
                    List colReps,
                    Collection primaryKeyColNames,
                    Collection foreignKeyReps,
                    Collection uniqConstrReps)
Method Detail

getTableName

public String getTableName()
Specified by:
getTableName in interface TableRep

getColumnNames

public Iterator getColumnNames()
Specified by:
getColumnNames in interface TableRep

columnRepForName

public ColumnRep columnRepForName(String name)
Specified by:
columnRepForName in interface TableRep

getPrimaryKeyColumnNames

public Set getPrimaryKeyColumnNames()
Specified by:
getPrimaryKeyColumnNames in interface TableRep

getForeignKeyReps

public Set getForeignKeyReps()
Specified by:
getForeignKeyReps in interface TableRep

getUniquenessConstraintReps

public Set getUniquenessConstraintReps()
Specified by:
getUniquenessConstraintReps in interface TableRep

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object