net.sf.dewdrop.sqlml
Class Constraint
java.lang.Object
net.sf.dewdrop.sqlml.SqlmlComponent
net.sf.dewdrop.sqlml.SchemaComponent
net.sf.dewdrop.sqlml.Constraint
- Direct Known Subclasses:
- Check, ForeignKey, Index, NotNull, PrimaryKey, Unique
- public abstract class Constraint
- extends SchemaComponent
Abstract class for any database component that contains a list of Ref elements.
- Author:
- Les Hazlewood
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent |
getIndentLevel, i18n, i18n, i18n, onWriteSql, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql |
columnRefs
protected Set columnRefs
directive
protected ConstraintDirective directive
inline
protected boolean inline
Constraint
protected Constraint()
getColumnRefs
public Set getColumnRefs()
addColumnRef
public void addColumnRef(Ref ref)
getDirective
public ConstraintDirective getDirective()
setDirective
public void setDirective(ConstraintDirective directive)
isComplex
public boolean isComplex()
- Returns true if and only if this constraint is concerned with multiple columns, false
otherwise
- Returns:
- true if and only if this constraint is concerned with multiple columns, false
otherwise
equals
public boolean equals(Object o)
- Overrides:
equals
in class SchemaComponent
isInline
protected boolean isInline()
setInline
protected void setInline(boolean inline)