|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.schemaspy.model.TableColumn
public class TableColumn
| 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 |
|---|
public Table getTable()
public String getName()
public Object getId()
public String getType()
public int getLength()
public int getDecimalDigits()
public String getDetailedSize()
public boolean isNullable()
public boolean isAutoUpdated()
public boolean isUnique()
public boolean isPrimary()
public Object getDefaultValue()
public String getComments()
null if none.public void setComments(String comments)
public void addParent(TableColumn parent,
ForeignKeyConstraint constraint)
public void removeParent(TableColumn parent)
public void unlinkParents()
public Set getParents()
public ForeignKeyConstraint getParentConstraint(TableColumn parent)
public ForeignKeyConstraint removeAParentFKConstraint()
public ForeignKeyConstraint removeAChildFKConstraint()
public void addChild(TableColumn child,
ForeignKeyConstraint constraint)
public void removeChild(TableColumn child)
public void unlinkChildren()
public Set getChildren()
Set of TableColumns that have a real (or implied) foreign key that
references this TableColumn.
public ForeignKeyConstraint getChildConstraint(TableColumn child)
public void setIsAutoUpdated(boolean isAutoUpdated)
isAutoUpdated - booleanpublic boolean matches(Pattern regex)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||