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
- class \Drupal\Driver\Database\sqlsrv\Settings\ConstraintTypes
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\SettingsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstraintTypes:: |
constant | CHECK constraint | ||
ConstraintTypes:: |
constant | DEFAULT (constraint or stand-alone) | ||
ConstraintTypes:: |
constant | FOREIGN KEY constraint | ||
ConstraintTypes:: |
constant | PRIMARY KEY constraint | ||
ConstraintTypes:: |
constant | Rule (old-style, stand-alone) | ||
ConstraintTypes:: |
constant | UNIQUE constraint | ||
Enum:: |
private static | property | Store existing constants in a static cache per object. | |
Enum:: |
protected | property | Enum value | |
Enum:: |
public | function | Returns the enum key (i.e. the constant name). | |
Enum:: |
public | function | ||
Enum:: |
public static | function | Check if is valid enum value | |
Enum:: |
public static | function | Check if is valid enum key | |
Enum:: |
public static | function | Returns the names (keys) of all constants in the Enum class | |
Enum:: |
public static | function | Return key for value | |
Enum:: |
public static | function | Returns all possible values as an array | |
Enum:: |
public static | function | Returns instances of the Enum class of all Enum constants | |
Enum:: |
public static | function | Returns a value when called statically like so: MyEnum::SOME_VALUE() given SOME_VALUE is a class constant | |
Enum:: |
public | function | Creates a new value of some type | |
Enum:: |
public | function |