You are here

class ConstraintTypes in Drupal driver for SQL Server and SQL Azure 8.2

Constraint types for SQL Server.

Hierarchy

  • class \Drupal\Driver\Database\sqlsrv\Component\Enum

Expanded class hierarchy of ConstraintTypes

2 files declare their use of ConstraintTypes
Schema.php in drivers/lib/Drupal/Driver/Database/sqlsrv/Schema.php
Definition of Drupal\Driver\Database\sqlsrv\Schema
Scheme.php in drivers/lib/Drupal/Driver/Database/sqlsrv/Scheme.php

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Settings/ConstraintTypes.php, line 10

Namespace

Drupal\Driver\Database\sqlsrv\Settings
View source
class ConstraintTypes extends Enum {

  /**
   * CHECK constraint
   */
  const CCHECK = 'C';

  /**
   * DEFAULT (constraint or stand-alone)
   */
  const CDEFAULT = 'D';

  /**
   * FOREIGN KEY constraint
   */
  const CFOREIGNKEY = 'F';

  /**
   * PRIMARY KEY constraint
   */
  const CPRIMARYKEY = 'P';

  /**
   * Rule (old-style, stand-alone)
   */
  const CRULE = 'R';

  /**
   * UNIQUE constraint
   */
  const CUNIQUE = 'UQ';

}

Members

Namesort descending Modifiers Type Description Overrides
ConstraintTypes::CCHECK constant CHECK constraint
ConstraintTypes::CDEFAULT constant DEFAULT (constraint or stand-alone)
ConstraintTypes::CFOREIGNKEY constant FOREIGN KEY constraint
ConstraintTypes::CPRIMARYKEY constant PRIMARY KEY constraint
ConstraintTypes::CRULE constant Rule (old-style, stand-alone)
ConstraintTypes::CUNIQUE constant UNIQUE constraint
Enum::$cache private static property Store existing constants in a static cache per object.
Enum::$value protected property Enum value
Enum::getKey public function Returns the enum key (i.e. the constant name).
Enum::getValue public function
Enum::isValid public static function Check if is valid enum value
Enum::isValidKey public static function Check if is valid enum key
Enum::keys public static function Returns the names (keys) of all constants in the Enum class
Enum::search public static function Return key for value
Enum::toArray public static function Returns all possible values as an array
Enum::values public static function Returns instances of the Enum class of all Enum constants
Enum::__callStatic public static function Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant
Enum::__construct public function Creates a new value of some type
Enum::__toString public function