Uses of Class
edu.caltech.nanodb.relations.TableConstraintType
-
Packages that use TableConstraintType Package Description edu.caltech.nanodb.commands This package contains the classes that represent the commands that the NanoSQL database recognizes.edu.caltech.nanodb.relations This package contains the basic data-types for representing relations in NanoDB.edu.caltech.nanodb.storage This package contains the classes for the Storage Manager, which is responsible for how data is stored in and retrieved from database files. -
-
Uses of TableConstraintType in edu.caltech.nanodb.commands
Fields in edu.caltech.nanodb.commands declared as TableConstraintType Modifier and Type Field Description private TableConstraintType
ConstraintDecl. type
The type of the constraint.Methods in edu.caltech.nanodb.commands that return TableConstraintType Modifier and Type Method Description TableConstraintType
ConstraintDecl. getType()
Returns the type of this constraint.Constructors in edu.caltech.nanodb.commands with parameters of type TableConstraintType Constructor Description ConstraintDecl(TableConstraintType type, boolean columnConstraint)
Create a new unnamed constraint for a table or a table-column.ConstraintDecl(TableConstraintType type, java.lang.String name, boolean columnConstraint)
Create a new named constraint for a table or a table-column. -
Uses of TableConstraintType in edu.caltech.nanodb.relations
Fields in edu.caltech.nanodb.relations declared as TableConstraintType Modifier and Type Field Description private TableConstraintType
ColumnRefs. constraintType
This optional field can indicate if there is a particular constraint on the indicated set of columns.Methods in edu.caltech.nanodb.relations that return TableConstraintType Modifier and Type Method Description static TableConstraintType
TableConstraintType. findType(byte typeID)
Given the specified ID, this method returns the corresponding constraint type enum value, or it returnsnull
if the type value doesn't signify any constraint type in this enumeration.TableConstraintType
ColumnRefs. getConstraintType()
static TableConstraintType
TableConstraintType. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TableConstraintType[]
TableConstraintType. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in edu.caltech.nanodb.relations with parameters of type TableConstraintType Modifier and Type Method Description void
ColumnRefs. setConstraintType(TableConstraintType constraintType)
Constructors in edu.caltech.nanodb.relations with parameters of type TableConstraintType Constructor Description ColumnRefs(int[] colIndexes, java.lang.String constraintName, TableConstraintType constraintType)
KeyColumnRefs(int[] colIndexes, java.lang.String constraintName, TableConstraintType constraintType)
-
Uses of TableConstraintType in edu.caltech.nanodb.storage
Methods in edu.caltech.nanodb.storage with parameters of type TableConstraintType Modifier and Type Method Description protected KeyColumnRefs
SchemaWriter. readKey(PageReader pgReader, int typeID, TableConstraintType type)
This helper function writes a primary key or candidate key to the table's schema stored in the header page.protected void
SchemaWriter. writeKey(PageWriter pgWriter, TableConstraintType type, KeyColumnRefs key)
This helper function writes a primary key or candidate key to the schema representation.
-