Package com.exedio.dsmf
Class Constraint
- java.lang.Object
-
- com.exedio.dsmf.Node
-
- com.exedio.dsmf.Constraint
-
- Direct Known Subclasses:
CheckConstraint
,ForeignKeyConstraint
,PrimaryKeyConstraint
,UniqueConstraint
public abstract class Constraint extends Node
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Constraint.Type
-
Nested classes/interfaces inherited from class com.exedio.dsmf.Node
Node.Color
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
check()
Deprecated.UsecheckL()
insteadlong
checkL()
void
create()
void
create(StatementListener listener)
void
drop()
void
drop(StatementListener listener)
Column
getColumn()
String
getName()
String
getRequiredCondition()
Table
getTable()
Constraint.Type
getType()
boolean
isSupported()
String
toString()
-
Methods inherited from class com.exedio.dsmf.Node
exists, getCumulativeColor, getError, getParticularColor, required
-
-
-
-
Method Detail
-
getTable
public final Table getTable()
-
getColumn
public final Column getColumn()
-
getName
public final String getName()
-
getType
public final Constraint.Type getType()
-
getRequiredCondition
public final String getRequiredCondition()
-
isSupported
public boolean isSupported()
-
check
@Deprecated public final int check()
Deprecated.UsecheckL()
instead
-
checkL
public long checkL()
-
create
public final void create()
-
drop
public final void drop()
-
create
public final void create(StatementListener listener)
-
drop
public final void drop(StatementListener listener)
-
-