net.sourceforge.schemaspy.model
Class TableIndex
java.lang.Object
net.sourceforge.schemaspy.model.TableIndex
- All Implemented Interfaces:
- Comparable
public class TableIndex
- extends Object
- implements Comparable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableIndex
public TableIndex(ResultSet rs)
throws SQLException
- Throws:
SQLException
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.