OpenPetra
Free Administration Software for Non-Profits
Ict.Tools.DBXML.TDataDefinitionStore Class Reference

This holds the tables and the sequences of the database structure; this is an objectorientated representation in memory of the database structure that was originally defined in XML More...

Public Member Functions

 TDataDefinitionStore ()
 constructor More...
 
void Clear ()
 clear all tables and sequences More...
 
TTable GetTable (string tableName)
 get a specific table by name More...
 
List< TTableGetTables ()
 get the tables More...
 
void AddTable (TTable table)
 add a table More...
 
List< TSequenceGetSequences ()
 get the sequences More...
 
void AddSequence (TSequence sequence)
 add a sequence More...
 
void PrepareLinks ()
 
void PrepareAutoGeneratedFields ()
 Prepare the fields that are auto generated (eg. createdby, lastmodified) More...
 

Detailed Description

This holds the tables and the sequences of the database structure; this is an objectorientated representation in memory of the database structure that was originally defined in XML

Constructor & Destructor Documentation

◆ TDataDefinitionStore()

Ict.Tools.DBXML.TDataDefinitionStore.TDataDefinitionStore ( )
inline

constructor

Member Function Documentation

◆ AddSequence()

void Ict.Tools.DBXML.TDataDefinitionStore.AddSequence ( TSequence  sequence)
inline

add a sequence

Parameters
sequence

◆ AddTable()

void Ict.Tools.DBXML.TDataDefinitionStore.AddTable ( TTable  table)
inline

add a table

Parameters
table

◆ Clear()

void Ict.Tools.DBXML.TDataDefinitionStore.Clear ( )
inline

clear all tables and sequences

◆ GetSequences()

List< TSequence > Ict.Tools.DBXML.TDataDefinitionStore.GetSequences ( )
inline

get the sequences

Returns

◆ GetTable()

TTable Ict.Tools.DBXML.TDataDefinitionStore.GetTable ( string  tableName)
inline

get a specific table by name

Parameters
tableNamethe name of the table
Returns
the table object

◆ GetTables()

List< TTable > Ict.Tools.DBXML.TDataDefinitionStore.GetTables ( )
inline

get the tables

Returns

◆ PrepareAutoGeneratedFields()

void Ict.Tools.DBXML.TDataDefinitionStore.PrepareAutoGeneratedFields ( )
inline

Prepare the fields that are auto generated (eg. createdby, lastmodified)

◆ PrepareLinks()

void Ict.Tools.DBXML.TDataDefinitionStore.PrepareLinks ( )
inline

set all the references between the tables (table should know which tables reference them)


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