Zend\Db\Metadata\Object\ConstraintKeyObject
Synopsis
class ConstraintKeyObject
{
- // constants
- const FK_CASCADE = 'CASCADE';
- const FK_SET_NULL = 'SET NULL';
- const FK_NO_ACTION = 'NO ACTION';
- const FK_RESTRICT = 'RESTRICT';
- const FK_SET_DEFAULT = 'SET DEFAULT';
- // members
- protected string $columnName;
- protected int $ordinalPosition;
- protected bool $positionInUniqueConstraint;
- protected string $referencedTableSchema;
- protected string $referencedTableName;
- protected string $referencedColumnName;
- protected string $foreignKeyUpdateRule;
- protected string $foreignKeyDeleteRule;
- // methods
- public void __construct()
- public string getColumnName()
- public ConstraintKeyObject setColumnName()
- public int getOrdinalPosition()
- public ConstraintKeyObject setOrdinalPosition()
- public bool getPositionInUniqueConstraint()
- public ConstraintKeyObject setPositionInUniqueConstraint()
- public string getReferencedTableSchema()
- public ConstraintKeyObject setReferencedTableSchema()
- public string getReferencedTableName()
- public ConstraintKeyObject setReferencedTableName()
- public string getReferencedColumnName()
- public ConstraintKeyObject setReferencedColumnName()
- public void setForeignKeyUpdateRule()
- public string getForeignKeyUpdateRule()
- public void setForeignKeyDeleteRule()
- public string getForeignKeyDeleteRule()
Constants
Name | Value |
---|---|
FK_CASCADE | 'CASCADE' |
FK_SET_NULL | 'SET NULL' |
FK_NO_ACTION | 'NO ACTION' |
FK_RESTRICT | 'RESTRICT' |
FK_SET_DEFAULT | 'SET DEFAULT' |
Members
protected
- $columnName — string
- $foreignKeyDeleteRule — string
- $foreignKeyUpdateRule — string
- $ordinalPosition — int
- $positionInUniqueConstraint — Zend\Db\Metadata\Object\bool
- $referencedColumnName — string
- $referencedTableName — string
- $referencedTableSchema — string
Methods
public
- __construct() — Constructor
- getColumnName() — Get column name
- getForeignKeyDeleteRule() — get foreign key delete rule
- getForeignKeyUpdateRule() — Get foreign key update rule
- getOrdinalPosition() — Get ordinal position
- getPositionInUniqueConstraint() — Get position in unique constraint
- getReferencedColumnName() — Get referenced column name
- getReferencedTableName() — Get referenced table name
- getReferencedTableSchema() — Get referencred table schema
- setColumnName() — Set column name
- setForeignKeyDeleteRule() — Set foreign key delete rule
- setForeignKeyUpdateRule() — set foreign key update rule
- setOrdinalPosition() — Set ordinal position
- setPositionInUniqueConstraint() — Set position in unique constraint
- setReferencedColumnName() — Set referenced column name
- setReferencedTableName() — Set Referenced table name
- setReferencedTableSchema() — Set referenced table schema