OpenPetra
Free Administration Software for Non-Profits
Ict.Tools.CodeGeneration.DataStore.CodeGenerationAccess Class Reference

Static Public Member Functions

static Boolean ValidForeignKeyConstraintForLoadVia (TConstraint AConstraint)
 do we want a special load via function for this foreign key? More...
 
static string GetNamespace (string AStrGroup)
 get the namespace for a given table group name More...
 
static String FindOtherConstraintSameOtherTable (List< TConstraint >AConstraints, TConstraint AConstraint)
 This function checks if there is another constraint in this ATable, that references the same other table It will find the field that has a different name, so that names can be unique More...
 
static Boolean FindOtherConstraintSameOtherTable2 (ArrayList AConstraints, TConstraint AConstraint)
 This function checks if there is another constraint from the same table that references the current table through a link table More...
 
static Boolean WriteTypedDataAccess (TDataDefinitionStore AStore, string strGroup, string AFilePath, string ANamespaceName, string AFilename)
 generate code for reading and writing typed data tables from and to the database More...
 

Detailed Description

This will generate most of the datastore. Only here should SQL queries happen.

Member Function Documentation

◆ FindOtherConstraintSameOtherTable()

static String Ict.Tools.CodeGeneration.DataStore.CodeGenerationAccess.FindOtherConstraintSameOtherTable ( List< TConstraint AConstraints,
TConstraint  AConstraint 
)
inlinestatic

This function checks if there is another constraint in this ATable, that references the same other table It will find the field that has a different name, so that names can be unique

Parameters
AConstraints
AConstraint
Returns
the field that is different in the two keys; empty string if there is no other constraint or no different field

◆ FindOtherConstraintSameOtherTable2()

static Boolean Ict.Tools.CodeGeneration.DataStore.CodeGenerationAccess.FindOtherConstraintSameOtherTable2 ( ArrayList  AConstraints,
TConstraint  AConstraint 
)
inlinestatic

This function checks if there is another constraint from the same table that references the current table through a link table

Parameters
AConstraints
AConstraint
Returns
true if other constraint exists

◆ GetNamespace()

static string Ict.Tools.CodeGeneration.DataStore.CodeGenerationAccess.GetNamespace ( string  AStrGroup)
inlinestatic

get the namespace for a given table group name

◆ ValidForeignKeyConstraintForLoadVia()

static Boolean Ict.Tools.CodeGeneration.DataStore.CodeGenerationAccess.ValidForeignKeyConstraintForLoadVia ( TConstraint  AConstraint)
inlinestatic

do we want a special load via function for this foreign key?

Parameters
AConstraint
Returns

◆ WriteTypedDataAccess()

static Boolean Ict.Tools.CodeGeneration.DataStore.CodeGenerationAccess.WriteTypedDataAccess ( TDataDefinitionStore  AStore,
string  strGroup,
string  AFilePath,
string  ANamespaceName,
string  AFilename 
)
inlinestatic

generate code for reading and writing typed data tables from and to the database

Parameters
AStore
strGroup
AFilePath
ANamespaceName
AFilename
Returns

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