pascalSCADA OPM: dbstructurechecker: Class TTableMetadata

Pascal SCADA OPM

Class TTableMetadata

Unit

dbstructurechecker

Declaration

type TTableMetadata = class(TDatabaseObject)

Description

TTableMetadata

Hierarchy

Overview

Methods

Public constructor Create(OwnerDatabase:TDatabaseMetadata; TableName:AnsiString);
Public destructor Destroy; override;
Public function addCollumn(FieldName:AnsiString; FieldType:TFieldType; Size:LongInt = -1; NotNull:Boolean = false; DefaultValue:AnsiString = ''):TCollumnDefinition;
Public function addPrimaryKey(pkName:AnsiString):TPrimaryKeyIndex;
Public function addUniqueIndex(uniquename:AnsiString):TUniqueIndex;
Public function addForeignKey(IndexName, SourceTable:AnsiString; UpdateAction:TForeignKeyRestriction = fkrNoAction; DeleteAction:TForeignKeyRestriction = fkrNoAction):TForeignKey;
Public function ValidateName(Name: AnsiString; NameKind: TDatabaseNameKind): Boolean; override;
Public function FieldExists(fieldname:AnsiString; var field:TCollumnDefinition):Boolean;
Public function GetCurrentState:TDatabaseObjectState; override;
Public procedure ResetState; override;

Properties

Public property TableName: AnsiString read FTableName;
Public property OwnerDatabase: TDatabaseMetadata read FOwnerDatabase;

Description

Methods

Public constructor Create(OwnerDatabase:TDatabaseMetadata; TableName:AnsiString);
 
Public destructor Destroy; override;
 
Public function addCollumn(FieldName:AnsiString; FieldType:TFieldType; Size:LongInt = -1; NotNull:Boolean = false; DefaultValue:AnsiString = ''):TCollumnDefinition;
 
Public function addPrimaryKey(pkName:AnsiString):TPrimaryKeyIndex;
 
Public function addUniqueIndex(uniquename:AnsiString):TUniqueIndex;
 
Public function addForeignKey(IndexName, SourceTable:AnsiString; UpdateAction:TForeignKeyRestriction = fkrNoAction; DeleteAction:TForeignKeyRestriction = fkrNoAction):TForeignKey;
 
Public function ValidateName(Name: AnsiString; NameKind: TDatabaseNameKind): Boolean; override;
 
Public function FieldExists(fieldname:AnsiString; var field:TCollumnDefinition):Boolean;
 
Public function GetCurrentState:TDatabaseObjectState; override;
 
Public procedure ResetState; override;
 

Properties

Public property TableName: AnsiString read FTableName;
 
Public property OwnerDatabase: TDatabaseMetadata read FOwnerDatabase;
 

Generated by PasDoc 0.14.0.