Package com.exedio.dsmf
Class Column
- java.lang.Object
-
- com.exedio.dsmf.Node
-
- com.exedio.dsmf.Column
-
public final class Column extends Node
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.exedio.dsmf.Node
Node.Color
-
-
Constructor Summary
Constructors Constructor Description Column(Table table, String name, String type)
Deprecated.UseTable.newColumn(String,String)
instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create()
void
create(StatementListener listener)
void
drop()
void
drop(StatementListener listener)
Collection<Constraint>
getConstraints()
String
getExistingType()
String
getName()
String
getRequiredType()
Table
getTable()
String
getType()
boolean
mismatchesType()
void
modify(String newType)
void
modify(String newType, StatementListener listener)
CheckConstraint
newCheck(String name, String condition)
ForeignKeyConstraint
newForeignKey(String name, String targetTable, String targetColumn)
PrimaryKeyConstraint
newPrimaryKey(String name)
void
renameTo(String newName)
void
renameTo(String newName, StatementListener listener)
String
toString()
void
update(String value, StatementListener listener)
-
Methods inherited from class com.exedio.dsmf.Node
exists, getCumulativeColor, getError, getParticularColor, required
-
-
-
-
Constructor Detail
-
Column
@Deprecated public Column(Table table, String name, String type)
Deprecated.UseTable.newColumn(String,String)
instead
-
-
Method Detail
-
getTable
public Table getTable()
-
getName
public String getName()
-
newPrimaryKey
public PrimaryKeyConstraint newPrimaryKey(@Nonnull String name)
-
newForeignKey
public ForeignKeyConstraint newForeignKey(@Nonnull String name, @Nonnull String targetTable, @Nonnull String targetColumn)
-
newCheck
public CheckConstraint newCheck(@Nonnull String name, @Nonnull String condition)
-
getConstraints
public Collection<Constraint> getConstraints()
-
getType
public String getType()
-
mismatchesType
public boolean mismatchesType()
-
getRequiredType
public String getRequiredType()
-
getExistingType
public String getExistingType()
-
create
public void create()
-
create
public void create(StatementListener listener)
-
renameTo
public void renameTo(String newName)
-
renameTo
public void renameTo(String newName, StatementListener listener)
-
modify
public void modify(String newType)
-
modify
public void modify(String newType, StatementListener listener)
-
drop
public void drop()
-
drop
public void drop(StatementListener listener)
-
update
public void update(String value, StatementListener listener)
-
-