OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Data.TTypedRelation Class Reference

this class is derived from TTypedConstraint and has additional settings whether this relation is enabled or not More...

Inheritance diagram for Ict.Common.Data.TTypedRelation:
Ict.Common.Data.TTypedConstraint

Public Member Functions

 TTypedRelation (String AName, String ATable1, string[] AKey1, String ATable2, string[] AKey2, bool ACreateConstraints)
 Create a typed relation, that is reusable, and helps when deleting tables. Table1/Key1 is the parent, Table2/Key2 is the child in the relationship More...
 

Public Attributes

bool FCreateConstraints
 do we want constraints to be created for this relation More...
 
bool FEnabled
 is this relation enabled More...
 
String FName
 name of the constraint More...
 
String FTable1
 first table involved, the one having the foreign key More...
 
String FTable2
 the other table involved, it is refered to by the first table More...
 
string[] FKey1
 the foreign key in the first table More...
 
string[] FKey2
 usually the primary key or another unique key of the second table More...
 

Detailed Description

this class is derived from TTypedConstraint and has additional settings whether this relation is enabled or not

Constructor & Destructor Documentation

◆ TTypedRelation()

Ict.Common.Data.TTypedRelation.TTypedRelation ( String  AName,
String  ATable1,
string[]  AKey1,
String  ATable2,
string[]  AKey2,
bool  ACreateConstraints 
)
inline

Create a typed relation, that is reusable, and helps when deleting tables. Table1/Key1 is the parent, Table2/Key2 is the child in the relationship

Returns
void

Member Data Documentation

◆ FCreateConstraints

bool Ict.Common.Data.TTypedRelation.FCreateConstraints

do we want constraints to be created for this relation

◆ FEnabled

bool Ict.Common.Data.TTypedRelation.FEnabled

is this relation enabled

◆ FKey1

string [] Ict.Common.Data.TTypedConstraint.FKey1
inherited

the foreign key in the first table

◆ FKey2

string [] Ict.Common.Data.TTypedConstraint.FKey2
inherited

usually the primary key or another unique key of the second table

◆ FName

String Ict.Common.Data.TTypedConstraint.FName
inherited

name of the constraint

◆ FTable1

String Ict.Common.Data.TTypedConstraint.FTable1
inherited

first table involved, the one having the foreign key

◆ FTable2

String Ict.Common.Data.TTypedConstraint.FTable2
inherited

the other table involved, it is refered to by the first table


The documentation for this class was generated from the following file: