Package | Description |
---|---|
com.streamscape.ds.schema.constraint | |
com.streamscape.ds.schema.table |
Modifier and Type | Field and Description |
---|---|
static Constraint[] |
Constraint.emptyArray |
Modifier and Type | Method and Description |
---|---|
Constraint |
Constraint.duplicate() |
Constructor and Description |
---|
Constraint(NameManager.ObjectName name,
Constraint fkconstraint)
Constructor for main constraints (foreign key references in PK table)
|
Modifier and Type | Field and Description |
---|---|
Constraint[] |
Table.checkConstraints |
Constraint[] |
Table.fkConstraints |
Constraint[] |
Table.fkMainConstraints |
Modifier and Type | Method and Description |
---|---|
Constraint |
Table.getConstraint(java.lang.String constraintName)
return the named constriant
|
Constraint[] |
Table.getConstraints()
Returns the list of constraints.
|
Constraint[] |
Table.getFKConstraints()
Returns the list of FK constraints.
|
Constraint |
Table.getNotNullConstraintForColumn(int colIndex) |
Constraint |
Table.getPrimaryConstraint()
Returns the primary constraint.
|
Constraint |
Table.getUniqueConstraintForColumns(int[] cols)
Returns the UNIQUE or PK constraint with the given column signature.
|
Constraint |
Table.getUniqueConstraintForIndex(com.streamscape.ds.persist.index.Index index)
Returns any unique Constraint using this index
|
Constraint |
Table.getUniqueOrPKConstraintForIndex(com.streamscape.ds.persist.index.Index index)
Returns any unique Constraint using this index
|
Modifier and Type | Method and Description |
---|---|
void |
TableWorks.addCheckConstraint(Constraint c) |
void |
Table.addConstraint(Constraint c)
Adds a constraint.
|
void |
TableWorks.addForeignKey(Constraint c)
Creates a foreign key on an existing table.
|
Table |
TableWorks.addPrimaryKey(Constraint constraint) |
void |
TableWorks.addUniqueConstraint(Constraint constraint) |
void |
TableWorks.checkCreateForeignKey(Constraint c) |
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.