Class RDBMSDomain
Represents a domain - named type with optional constraints/checks for permitted values
Inheritance
System.Object
RDBMSDomain
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data.Modeling.DataTypes
Assembly: Azos.dll
Syntax
public abstract class RDBMSDomain : Domain, INamed, IConfigurable
Methods
GetColumnAutoGeneratedScript(RDBMSCompiler, RDBMSEntity, Compiler.Outputs)
Returns script for auto-generated values, may also emit compiler-specific object like sequence or generator
Declaration
public virtual string GetColumnAutoGeneratedScript(RDBMSCompiler compiler, RDBMSEntity column, Compiler.Outputs outputs)
Parameters
Type | Name | Description |
---|---|---|
RDBMSCompiler | compiler | |
RDBMSEntity | column | |
Compiler.Outputs | outputs |
Returns
Type | Description |
---|---|
System.String |
GetColumnCheckScript(RDBMSCompiler, RDBMSEntity, Compiler.Outputs)
Returns script for check constraint on column level
Declaration
public virtual string GetColumnCheckScript(RDBMSCompiler compiler, RDBMSEntity column, Compiler.Outputs outputs)
Parameters
Type | Name | Description |
---|---|---|
RDBMSCompiler | compiler | |
RDBMSEntity | column | |
Compiler.Outputs | outputs |
Returns
Type | Description |
---|---|
System.String |
GetColumnDefaultScript(RDBMSCompiler, RDBMSEntity, Compiler.Outputs)
Returns script for default values, may also emit compiler-specific object like sequence or generator or insert rows in some other table
Declaration
public virtual string GetColumnDefaultScript(RDBMSCompiler compiler, RDBMSEntity column, Compiler.Outputs outputs)
Parameters
Type | Name | Description |
---|---|---|
RDBMSCompiler | compiler | |
RDBMSEntity | column | |
Compiler.Outputs | outputs |
Returns
Type | Description |
---|---|
System.String |
GetColumnRequirement(RDBMSCompiler)
Returns true to indicate that column of this type is always required
Declaration
public virtual bool? GetColumnRequirement(RDBMSCompiler compiler)
Parameters
Type | Name | Description |
---|---|---|
RDBMSCompiler | compiler | The context that the result depends on |
Returns
Type | Description |
---|---|
System.Nullable<System.Boolean> |
GetTypeName(RDBMSCompiler)
Returns the name of the resulting type that this domain maps to
Declaration
public abstract string GetTypeName(RDBMSCompiler compiler)
Parameters
Type | Name | Description |
---|---|---|
RDBMSCompiler | compiler | The context that the result depends on |
Returns
Type | Description |
---|---|
System.String | Target type name, i.e. BIGINT, DECIMAL(8,2) etc... |
TransformColumnName(RDBMSCompiler, RDBMSEntity)
Changes column name, i.e. adds prefix
Declaration
public virtual void TransformColumnName(RDBMSCompiler compiler, RDBMSEntity column)
Parameters
Type | Name | Description |
---|---|---|
RDBMSCompiler | compiler | |
RDBMSEntity | column |