net.sf.dewdrop.sqlml
Class Index

java.lang.Object
  extended bynet.sf.dewdrop.sqlml.SqlmlComponent
      extended bynet.sf.dewdrop.sqlml.SchemaComponent
          extended bynet.sf.dewdrop.sqlml.Constraint
              extended bynet.sf.dewdrop.sqlml.Index

public class Index
extends Constraint

Author:
Les Hazlewood

Field Summary
protected  boolean fullText
           
protected  String targetTable
           
protected  boolean unique
           
 
Fields inherited from class net.sf.dewdrop.sqlml.Constraint
columnRefs, directive, inline
 
Fields inherited from class net.sf.dewdrop.sqlml.SchemaComponent
description, name
 
Fields inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
indentLevel, logger
 
Constructor Summary
Index()
           
 
Method Summary
 boolean equals(Object o)
           
 String getTargetTable()
           
 boolean isFullText()
           
 boolean isUnique()
           
 void onWriteSql(Writer out, Configuration cfg)
           
 void setFullText(boolean fullText)
           
 void setTargetTable(String targetTable)
           
 void setUnique(boolean unique)
           
 
Methods inherited from class net.sf.dewdrop.sqlml.Constraint
addColumnRef, getColumnRefs, getDirective, isComplex, isInline, setDirective, setInline
 
Methods inherited from class net.sf.dewdrop.sqlml.SchemaComponent
getDescription, getName, setDescription, setName
 
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
getIndentLevel, i18n, i18n, i18n, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targetTable

protected String targetTable

unique

protected boolean unique

fullText

protected boolean fullText
Constructor Detail

Index

public Index()
Method Detail

getTargetTable

public String getTargetTable()

setTargetTable

public void setTargetTable(String targetTable)

isUnique

public boolean isUnique()

setUnique

public void setUnique(boolean unique)

isFullText

public boolean isFullText()

setFullText

public void setFullText(boolean fullText)

equals

public boolean equals(Object o)
Overrides:
equals in class Constraint

onWriteSql

public void onWriteSql(Writer out,
                       Configuration cfg)
Specified by:
onWriteSql in class SqlmlComponent
See Also:
SqlmlComponent.writeSql(java.io.Writer)