net.sf.dewdrop.sqlml
Class Column
java.lang.Object
net.sf.dewdrop.sqlml.SqlmlComponent
net.sf.dewdrop.sqlml.SchemaComponent
net.sf.dewdrop.sqlml.Column
- public class Column
- extends SchemaComponent
- Author:
- Les Hazlewood
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent |
getIndentLevel, i18n, i18n, i18n, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql |
type
protected SqlDataType type
length
protected int length
precision
protected int precision
defaultValue
protected String defaultValue
primaryKey
protected boolean primaryKey
required
protected boolean required
unique
protected boolean unique
foreignKey
protected ForeignKey foreignKey
fkRef
protected Ref fkRef
innerPk
protected PrimaryKey innerPk
innerNn
protected NotNull innerNn
innerUq
protected Unique innerUq
checkConstraints
protected List checkConstraints
directive
protected ColumnDirective directive
Column
public Column()
getType
public SqlDataType getType()
setType
public void setType(SqlDataType type)
getLength
public int getLength()
setLength
public void setLength(int length)
getPrecision
public int getPrecision()
setPrecision
public void setPrecision(int precision)
getDefault
public String getDefault()
setDefault
public void setDefault(String defaultVal)
isRequired
public boolean isRequired()
setRequired
public void setRequired(boolean required)
getInnerNotNull
public NotNull getInnerNotNull()
setInnerNotNull
public void setInnerNotNull(NotNull nn)
isUnique
public boolean isUnique()
setUnique
public void setUnique(boolean unique)
getInnnerUnique
public Unique getInnnerUnique()
setInnerUnique
public void setInnerUnique(Unique uq)
isPrimaryKey
public boolean isPrimaryKey()
setPrimaryKey
public void setPrimaryKey(boolean primaryKey)
getForeignKey
public ForeignKey getForeignKey()
setForeignKey
public void setForeignKey(ForeignKey fk)
getRef
public Ref getRef()
setRef
public void setRef(Ref fkRef)
getInnerPrimaryKey
public PrimaryKey getInnerPrimaryKey()
setInnerPrimaryKey
public void setInnerPrimaryKey(PrimaryKey inner)
getCheckConstraints
public List getCheckConstraints()
addCheckConstraint
public void addCheckConstraint(Check check)
getDirective
public ColumnDirective getDirective()
setDirective
public void setDirective(ColumnDirective directive)
onWriteSql
public void onWriteSql(Writer out,
Configuration cfg)
- Specified by:
onWriteSql
in class SqlmlComponent