ForeignKeyConstraint
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.assembly.system.data.Constraint
public class ForeignKeyConstraint extends Constraint
Represents an action restriction enforced on a set of columns in a primary key/foreign key relationship when a value or row is either deleted or updated.
| Constructor | Description |
|---|---|
| ForeignKeyConstraint(String constraintName, DataColumn[] parentColumns, DataColumn[] childColumns) | Initializes a new instance of the ForeignKeyConstraint class with the specified name, and arrays of parent and child DataColumn objects. |
| ForeignKeyConstraint(DataColumn parentColumn, DataColumn childColumn) | Initializes a new instance of the ForeignKeyConstraint class, and arrays of parent and child DataColumn objects. |
| ForeignKeyConstraint(String constraintName, DataColumn parentColumn, DataColumn childColumn) | Initializes a new instance of the ForeignKeyConstraint class with the specified name, parent and child DataColumn objects. |
| Method | Description |
|---|---|
| getDeleteRule() | |
| getUpdateRule() | |
| hashCode() | |
| equals(Object key) | |
| getColumns() | |
| getRelatedColumns() | The parent columns of this constraint. |
| getTable() | |
| getRelatedTable() | |
| getAcceptRejectRule() |
public ForeignKeyConstraint(String constraintName, DataColumn[] parentColumns, DataColumn[] childColumns)
Initializes a new instance of the ForeignKeyConstraint class with the specified name, and arrays of parent and child DataColumn objects.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| constraintName | java.lang.String | the specified constraint name |
| parentColumns | DataColumn[] | an array of parent DataColumn |
| childColumns | DataColumn[] | an array of child DataColumn |
public ForeignKeyConstraint(DataColumn parentColumn, DataColumn childColumn)
Initializes a new instance of the ForeignKeyConstraint class, and arrays of parent and child DataColumn objects.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| parentColumn | DataColumn | an array of parent DataColumn |
| childColumn | DataColumn | an array of child DataColumn |
public ForeignKeyConstraint(String constraintName, DataColumn parentColumn, DataColumn childColumn)
Initializes a new instance of the ForeignKeyConstraint class with the specified name, parent and child DataColumn objects.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| constraintName | java.lang.String | the specified constraint name |
| parentColumn | DataColumn | parent DataColumn |
| childColumn | DataColumn | child DataColumn |
public Rule getDeleteRule()
Returns: Rule - the action Rule that occurs across this constraint when a row is deleted.
public Rule getUpdateRule()
Returns: Rule - the action Rule that occurs across this constraint on when a row is updated.
public int hashCode()
Returns: int
public boolean equals(Object key)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | java.lang.Object |
Returns: boolean
public DataColumn[] getColumns()
Returns: com.groupdocs.assembly.system.data.DataColumn[] - the child columns of this constraint.
public DataColumn[] getRelatedColumns()
The parent columns of this constraint.
Returns: com.groupdocs.assembly.system.data.DataColumn[] - parent columns of this constraint
public DataTable getTable()
Returns: DataTable - the child table of this constraint
public DataTable getRelatedTable()
Returns: DataTable - The parent columns of this constraint.
public AcceptRejectRule getAcceptRejectRule()
Returns: com.groupdocs.assembly.system.data.AcceptRejectRule - AcceptRejectRule but it is not implemented yet.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.