|
static ConstraintInfo | Unique (ObjectName tableName, params string[] columnNames) |
|
static ConstraintInfo | Unique (string constraintName, ObjectName tableName, string[] columnNames) |
|
static ConstraintInfo | Check (ObjectName tableName, SqlExpression expression, params string[] columnNames) |
|
static ConstraintInfo | Check (string constraintName, ObjectName tableName, SqlExpression expression, params string[] columnNames) |
|
static ConstraintInfo | PrimaryKey (ObjectName tableName, params string[] columnNames) |
|
static ConstraintInfo | PrimaryKey (string constraintName, ObjectName tableName, params string[] columnNames) |
|
static ConstraintInfo | ForeignKey (ObjectName tableName, string columnName, ObjectName refTable, string refColumn) |
|
static ConstraintInfo | ForeignKey (ObjectName tableName, string[] columnNames, ObjectName refTable, string[] refColumns) |
|
static ConstraintInfo | ForeignKey (string constraintName, ObjectName tableName, string[] columnNames, ObjectName refTable, string[] refColumns) |
|
|
ConstraintType | ConstraintType [get, private set] |
|
ObjectName | TableName [get, private set] |
|
string | ConstraintName [get, set] |
|
string[] | ColumnNames [get, private set] |
|
SqlExpression | CheckExpression [get, set] |
|
ObjectName | ForeignTable [get, set] |
|
string[] | ForeignColumnNames [get, set] |
|
ForeignKeyAction | OnDelete [get, set] |
|
ForeignKeyAction | OnUpdate [get, set] |
|
ConstraintDeferrability | Deferred [get, set] |
|
Definition at line 22 of file ConstraintInfo.cs.
Deveel.Data.Sql.Tables.ConstraintInfo.ConstraintInfo |
( |
ConstraintType |
constraintType, |
|
|
ObjectName |
tableName, |
|
|
string[] |
columnNames |
|
) |
| |
|
inline |
Definition at line 23 of file ConstraintInfo.cs.
24 :
this(null, constraintType, tableName, columnNames) {
Deveel.Data.Sql.Tables.ConstraintInfo.ConstraintInfo |
( |
string |
constraintName, |
|
|
ConstraintType |
constraintType, |
|
|
ObjectName |
tableName, |
|
|
string[] |
columnNames |
|
) |
| |
|
inline |
Definition at line 27 of file ConstraintInfo.cs.
28 if (tableName == null)
29 throw new ArgumentNullException(
"tableName");
30 if (columnNames == null)
31 throw new ArgumentNullException(
"columnNames");
33 if (columnNames.Length == 0)
34 throw new ArgumentException(
"The provided column names for the constraint is empty.",
"columnNames");
ConstraintType ConstraintType
Definition at line 70 of file ConstraintInfo.cs.
71 return Check(null, tableName, expression, columnNames);
static ConstraintInfo Check(ObjectName tableName, SqlExpression expression, params string[] columnNames)
Definition at line 74 of file ConstraintInfo.cs.
ConstraintInfo(ConstraintType constraintType, ObjectName tableName, string[] columnNames)
SqlExpression CheckExpression
ConstraintType ConstraintType
Definition at line 88 of file ConstraintInfo.cs.
89 return ForeignKey(tableName,
new[] {columnName}, refTable,
new[] {refColumn});
static ConstraintInfo ForeignKey(ObjectName tableName, string columnName, ObjectName refTable, string refColumn)
Definition at line 92 of file ConstraintInfo.cs.
93 return ForeignKey(null, tableName, columnNames, refTable, refColumns);
static ConstraintInfo ForeignKey(ObjectName tableName, string columnName, ObjectName refTable, string refColumn)
static ConstraintInfo Deveel.Data.Sql.Tables.ConstraintInfo.ForeignKey |
( |
string |
constraintName, |
|
|
ObjectName |
tableName, |
|
|
string[] |
columnNames, |
|
|
ObjectName |
refTable, |
|
|
string[] |
refColumns |
|
) |
| |
|
inlinestatic |
Definition at line 96 of file ConstraintInfo.cs.
98 if (tableName == null)
99 throw new ArgumentNullException(
"tableName");
100 if (refTable == null)
101 throw new ArgumentNullException(
"refTable");
102 if (columnNames == null || columnNames.Length == 0)
103 throw new ArgumentException(
"At least one column is required",
"columnNames");
104 if (refColumns == null || refColumns.Length == 0)
105 throw new ArgumentException(
"At least one referenced column is required.",
"refColumns");
107 if (columnNames.Length != refColumns.Length)
108 throw new ArgumentException(
"The number of columns in the constraint must match the number of columns referenced.");
111 constraint.ForeignTable = refTable;
112 constraint.ForeignColumnNames = refColumns;
ConstraintInfo(ConstraintType constraintType, ObjectName tableName, string[] columnNames)
ConstraintType ConstraintType
static ConstraintInfo Deveel.Data.Sql.Tables.ConstraintInfo.PrimaryKey |
( |
ObjectName |
tableName, |
|
|
params string[] |
columnNames |
|
) |
| |
|
inlinestatic |
Definition at line 80 of file ConstraintInfo.cs.
81 return PrimaryKey(null, tableName, columnNames);
static ConstraintInfo PrimaryKey(ObjectName tableName, params string[] columnNames)
static ConstraintInfo Deveel.Data.Sql.Tables.ConstraintInfo.PrimaryKey |
( |
string |
constraintName, |
|
|
ObjectName |
tableName, |
|
|
params string[] |
columnNames |
|
) |
| |
|
inlinestatic |
Definition at line 84 of file ConstraintInfo.cs.
ConstraintInfo(ConstraintType constraintType, ObjectName tableName, string[] columnNames)
ConstraintType ConstraintType
static ConstraintInfo Deveel.Data.Sql.Tables.ConstraintInfo.Unique |
( |
ObjectName |
tableName, |
|
|
params string[] |
columnNames |
|
) |
| |
|
inlinestatic |
Definition at line 62 of file ConstraintInfo.cs.
63 return Unique(null, tableName, columnNames);
static ConstraintInfo Unique(ObjectName tableName, params string[] columnNames)
static ConstraintInfo Deveel.Data.Sql.Tables.ConstraintInfo.Unique |
( |
string |
constraintName, |
|
|
ObjectName |
tableName, |
|
|
string[] |
columnNames |
|
) |
| |
|
inlinestatic |
Definition at line 66 of file ConstraintInfo.cs.
ConstraintInfo(ConstraintType constraintType, ObjectName tableName, string[] columnNames)
ConstraintType ConstraintType
SqlExpression Deveel.Data.Sql.Tables.ConstraintInfo.CheckExpression |
|
getset |
string [] Deveel.Data.Sql.Tables.ConstraintInfo.ColumnNames |
|
getprivate set |
string Deveel.Data.Sql.Tables.ConstraintInfo.ConstraintName |
|
getset |
string [] Deveel.Data.Sql.Tables.ConstraintInfo.ForeignColumnNames |
|
getset |
ObjectName Deveel.Data.Sql.Tables.ConstraintInfo.ForeignTable |
|
getset |
ObjectName Deveel.Data.Sql.Tables.ConstraintInfo.TableName |
|
getprivate set |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Tables/ConstraintInfo.cs