Enum Class RepositoryForeignKey
java.lang.Object
java.lang.Enum<RepositoryForeignKey>
org.odpi.openmetadata.adapters.repositoryservices.postgres.repositoryconnector.schema.RepositoryForeignKey
- All Implemented Interfaces:
Serializable,Comparable<RepositoryForeignKey>,Constable,org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey
public enum RepositoryForeignKey
extends Enum<RepositoryForeignKey>
implements org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey
Defines a foreign key relationship between two tables.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the constraint.org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLColumnReturn the column in the table that is the foreign key.org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLColumnReturn the primary key column in the reference table.org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTableReturn details of the table where the primary key is located.booleanIf the row with the primary key is deleted, should the rows with the foreign key also be deleted?booleanIf the primary key value is changed, should the foreign key values change too?static RepositoryForeignKeyReturns the enum constant of this class with the specified name.static RepositoryForeignKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
VALID_ENTITY_GUID
-
VALID_END_1_GUID
-
VALID_END_2_GUID
-
VALID_RELATIONSHIP_GUID
-
VALID_CLASSIFICATION_NAME
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getConstraintName
Return the name of the constraint.- Specified by:
getConstraintNamein interfaceorg.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey- Returns:
- name
-
getForeignKeyColumn
public org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLColumn getForeignKeyColumn()Return the column in the table that is the foreign key.- Specified by:
getForeignKeyColumnin interfaceorg.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey- Returns:
- column
-
getReferenceTable
public org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLTable getReferenceTable()Return details of the table where the primary key is located.- Specified by:
getReferenceTablein interfaceorg.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey- Returns:
- table
-
getReferenceColumn
public org.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLColumn getReferenceColumn()Return the primary key column in the reference table.- Specified by:
getReferenceColumnin interfaceorg.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey- Returns:
- column
-
isDeleteCascade
public boolean isDeleteCascade()If the row with the primary key is deleted, should the rows with the foreign key also be deleted?- Specified by:
isDeleteCascadein interfaceorg.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey- Returns:
- boolean
-
isUpdateCascade
public boolean isUpdateCascade()If the primary key value is changed, should the foreign key values change too?- Specified by:
isUpdateCascadein interfaceorg.odpi.openmetadata.adapters.connectors.resource.jdbc.ddl.postgres.PostgreSQLForeignKey- Returns:
- boolean
-