net.sourceforge.schemaspy.model
Class TableColumn

java.lang.Object
  extended by net.sourceforge.schemaspy.model.TableColumn

public class TableColumn
extends Object


Method Summary
 void addChild(TableColumn child, ForeignKeyConstraint constraint)
           
 void addParent(TableColumn parent, ForeignKeyConstraint constraint)
           
 ForeignKeyConstraint getChildConstraint(TableColumn child)
          returns the constraint that connects the specified column to this column (specified 'child' to this 'parent' column)
 Set getChildren()
          Returns Set of TableColumns that have a real (or implied) foreign key that references this TableColumn.
 String getComments()
           
 int getDecimalDigits()
           
 Object getDefaultValue()
           
 String getDetailedSize()
           
 Object getId()
           
 int getLength()
           
 String getName()
           
 ForeignKeyConstraint getParentConstraint(TableColumn parent)
          returns the constraint that connects this column to the specified column (this 'child' column to specified 'parent' column)
 Set getParents()
           
 Table getTable()
           
 String getType()
           
 boolean isAutoUpdated()
           
 boolean isNullable()
           
 boolean isPrimary()
           
 boolean isUnique()
           
 boolean matches(Pattern regex)
           
 ForeignKeyConstraint removeAChildFKConstraint()
           
 ForeignKeyConstraint removeAParentFKConstraint()
          removes a parent constraint and returns it, or null if there are no parent constraints
 void removeChild(TableColumn child)
           
 void removeParent(TableColumn parent)
           
 void setComments(String comments)
           
 void setIsAutoUpdated(boolean isAutoUpdated)
          setIsAutoUpdated
 String toString()
           
 void unlinkChildren()
           
 void unlinkParents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getTable

public Table getTable()

getName

public String getName()

getId

public Object getId()

getType

public String getType()

getLength

public int getLength()

getDecimalDigits

public int getDecimalDigits()

getDetailedSize

public String getDetailedSize()

isNullable

public boolean isNullable()

isAutoUpdated

public boolean isAutoUpdated()

isUnique

public boolean isUnique()

isPrimary

public boolean isPrimary()

getDefaultValue

public Object getDefaultValue()

getComments

public String getComments()
Returns:
Comments associated with this column, or null if none.

setComments

public void setComments(String comments)

addParent

public void addParent(TableColumn parent,
                      ForeignKeyConstraint constraint)

removeParent

public void removeParent(TableColumn parent)

unlinkParents

public void unlinkParents()

getParents

public Set getParents()

getParentConstraint

public ForeignKeyConstraint getParentConstraint(TableColumn parent)
returns the constraint that connects this column to the specified column (this 'child' column to specified 'parent' column)


removeAParentFKConstraint

public ForeignKeyConstraint removeAParentFKConstraint()
removes a parent constraint and returns it, or null if there are no parent constraints

Returns:

removeAChildFKConstraint

public ForeignKeyConstraint removeAChildFKConstraint()

addChild

public void addChild(TableColumn child,
                     ForeignKeyConstraint constraint)

removeChild

public void removeChild(TableColumn child)

unlinkChildren

public void unlinkChildren()

getChildren

public Set getChildren()
Returns Set of TableColumns that have a real (or implied) foreign key that references this TableColumn.

Returns:
Set

getChildConstraint

public ForeignKeyConstraint getChildConstraint(TableColumn child)
returns the constraint that connects the specified column to this column (specified 'child' to this 'parent' column)


setIsAutoUpdated

public void setIsAutoUpdated(boolean isAutoUpdated)
setIsAutoUpdated

Parameters:
isAutoUpdated - boolean

matches

public boolean matches(Pattern regex)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2010. All Rights Reserved.