Package dev.frostlake.metastore.model
Class ForeignKeyConstraint
java.lang.Object
dev.frostlake.metastore.model.ForeignKeyConstraint
Represents a FOREIGN KEY constraint (final not enforced, final metadata only)
-
Constructor Summary
ConstructorsConstructorDescriptionForeignKeyConstraint(String constraintName, List<String> columnNames, String referencedTable, List<String> referencedColumns, String onDelete, String onUpdate) ForeignKeyConstraint(String constraintName, List<String> columnNames, String referencedTable, List<String> referencedColumns, String onDelete, String onUpdate, Boolean rely) -
Method Summary
Modifier and TypeMethodDescriptiongetRely()voidsetConstraintName(String constraintName) Rename it in place — ALTER TABLE … RENAME CONSTRAINT.toString()
-
Constructor Details
-
ForeignKeyConstraint
public ForeignKeyConstraint(String constraintName, List<String> columnNames, String referencedTable, List<String> referencedColumns, String onDelete, String onUpdate, Boolean rely) - Parameters:
constraintName- the name from an explicitCONSTRAINT <name>clause; null or blank when the constraint was declared without one, in which case it is auto-namedSYS_CONSTRAINT_<uuid>the way Snowflake does (seeConstraintNames).
-
ForeignKeyConstraint
-
-
Method Details