net.sourceforge.schemaspy.model
Class TableIndex

java.lang.Object
  extended by net.sourceforge.schemaspy.model.TableIndex
All Implemented Interfaces:
Comparable

public class TableIndex
extends Object
implements Comparable


Constructor Summary
TableIndex(ResultSet rs)
           
 
Method Summary
 int compareTo(Object object)
           
 List getColumns()
           
 String getColumnsAsString()
           
 Object getId()
           
 String getName()
           
 String getType()
           
 boolean isAscending(TableColumn column)
           
 boolean isPrimaryKey()
           
 boolean isUnique()
           
 boolean isUniqueNullable()
          Yes, we had a project that had columns defined as both 'nullable' and 'must be unique'.
 void setId(Object id)
           
 void setIsPrimaryKey(boolean isPrimaryKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableIndex

public TableIndex(ResultSet rs)
           throws SQLException
Throws:
SQLException
Method Detail

setId

public void setId(Object id)

getId

public Object getId()

getName

public String getName()

getType

public String getType()

isPrimaryKey

public boolean isPrimaryKey()

setIsPrimaryKey

public void setIsPrimaryKey(boolean isPrimaryKey)

isUnique

public boolean isUnique()

getColumnsAsString

public String getColumnsAsString()

getColumns

public List getColumns()

isUniqueNullable

public boolean isUniqueNullable()
Yes, we had a project that had columns defined as both 'nullable' and 'must be unique'.

Returns:
boolean

isAscending

public boolean isAscending(TableColumn column)

compareTo

public int compareTo(Object object)
Specified by:
compareTo in interface Comparable


Copyright © 2007-2010. All Rights Reserved.