Uses of Class
edu.caltech.nanodb.commands.ConstraintDecl
-
Packages that use ConstraintDecl Package Description edu.caltech.nanodb.commands This package contains the classes that represent the commands that the NanoSQL database recognizes. -
-
Uses of ConstraintDecl in edu.caltech.nanodb.commands
Fields in edu.caltech.nanodb.commands with type parameters of type ConstraintDecl Modifier and Type Field Description private java.util.List<ConstraintDecl>
CreateTableCommand. constraints
List of constraints for the new table.private java.util.ArrayList<ConstraintDecl>
TableColumnDecl. constraints
Any constraints specified on the column.Methods in edu.caltech.nanodb.commands that return types with arguments of type ConstraintDecl Modifier and Type Method Description java.util.List<ConstraintDecl>
CreateTableCommand. getConstraints()
Returns an immutable list of the constraint declarations that are part of this CREATE TABLE command.java.util.List<ConstraintDecl>
TableColumnDecl. getConstraints()
Methods in edu.caltech.nanodb.commands with parameters of type ConstraintDecl Modifier and Type Method Description void
CreateTableCommand. addConstraint(ConstraintDecl con)
Adds a constraint to this create-table command.void
TableColumnDecl. addConstraint(ConstraintDecl constraint)
static ForeignKeyColumnRefs
DDLUtils. makeForeignKey(Schema tableSchema, TableInfo refTableInfo, ConstraintDecl constraintDecl)
This method constructs aForeignKeyColumnRefs
object that includes the columns named in the input list, as well as the referenced table and column names.
-