OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MPartner.ImportExport.TPartnerContactDetails_LocationConversionHelper Class Reference

Helper Class that aids in the conversion of certain p_partner_location data columns' content into Contact Details. More...

Classes

class  PPartnerAttributeRecord
 Holds data of a p_partner_attribute Record. More...
 

Public Member Functions

void CreatePartnerContactDetailRecord (PPartnerAttributeRecord APPARec, DataSet AMainDS, TDataBase ADataBase=null)
 Creates a PPartnerAttribute Record out of data that is held in a data structure that is a p_partner_attribute representation. More...
 
void AddOldDBTableColumnsToPartnerLocation (DataTable APartnerLocationDT)
 This adds DataColumns to the p_partner_location Table that will no longer be defined in the DB Schema once the Contact Details schema has been implemented in full. These Columns are needed because Petra 2.x's DB Scheme has them and we need to be able to store that data (temporarily only - for conversion into p_partner_attribute records). More...
 
bool ExistingPartnerAttributes (PPartnerAttributeRow AImportedPartnerAttribRow, out PPartnerAttributeRow AFoundPartnerAttribDR, TDBTransaction ATransaction)
 Checks whether Partner Attributes of the same Attribute Type exist in the database. More...
 
void TakeExistingPartnerAttributeRecordAndModifyIt (PPartnerAttributeRow AImportedPartnerAttributeDR, PPartnerAttributeRow AExistingPartnerAttributeDR)
 Takes an PPartnerAttribute Row from the DB and modifies it with data from a PPartnerAttribute Row that got populated from imported data. More...
 

Public Attributes

Func< PPartnerAttributeRow, StringCollection, TDBTransaction, PPartnerAttributeTablePartnerAttributeLoadUsingTemplate
 Func Delegate for loading of PPartnerAttribute data from the DB using a Template Record. More...
 

Detailed Description

Helper Class that aids in the conversion of certain p_partner_location data columns' content into Contact Details.

Member Function Documentation

◆ AddOldDBTableColumnsToPartnerLocation()

void Ict.Petra.Server.MPartner.ImportExport.TPartnerContactDetails_LocationConversionHelper.AddOldDBTableColumnsToPartnerLocation ( DataTable  APartnerLocationDT)
inline

This adds DataColumns to the p_partner_location Table that will no longer be defined in the DB Schema once the Contact Details schema has been implemented in full. These Columns are needed because Petra 2.x's DB Scheme has them and we need to be able to store that data (temporarily only - for conversion into p_partner_attribute records).

Parameters
APartnerLocationDTAn instance of the p_partner_location DataTable.

◆ CreatePartnerContactDetailRecord()

void Ict.Petra.Server.MPartner.ImportExport.TPartnerContactDetails_LocationConversionHelper.CreatePartnerContactDetailRecord ( PPartnerAttributeRecord  APPARec,
DataSet  AMainDS,
TDataBase  ADataBase = null 
)
inline

Creates a PPartnerAttribute Record out of data that is held in a data structure that is a p_partner_attribute representation.

Parameters
APPARecData structure that is p_partner_attribute representation.
AMainDSDataSet to which the PPartnerAttribute Record should be added to.
ADataBase

◆ ExistingPartnerAttributes()

bool Ict.Petra.Server.MPartner.ImportExport.TPartnerContactDetails_LocationConversionHelper.ExistingPartnerAttributes ( PPartnerAttributeRow  AImportedPartnerAttribRow,
out PPartnerAttributeRow  AFoundPartnerAttribDR,
TDBTransaction  ATransaction 
)
inline

Checks whether Partner Attributes of the same Attribute Type exist in the database.

Parameters
AImportedPartnerAttribRowPPartnerAttributeRow that holds the imported data.
AFoundPartnerAttribDRPPartnerAttributeRow that holds the record that was found - if one was found, otherwise this is null.
ATransactionInstantiated DB Transaction.
Returns
False if the row should be imported as found in the import file, otherwise true.

◆ TakeExistingPartnerAttributeRecordAndModifyIt()

void Ict.Petra.Server.MPartner.ImportExport.TPartnerContactDetails_LocationConversionHelper.TakeExistingPartnerAttributeRecordAndModifyIt ( PPartnerAttributeRow  AImportedPartnerAttributeDR,
PPartnerAttributeRow  AExistingPartnerAttributeDR 
)
inline

Takes an PPartnerAttribute Row from the DB and modifies it with data from a PPartnerAttribute Row that got populated from imported data.

Parameters
AImportedPartnerAttributeDRPPartnerAttribute Row that got populated from imported data.
AExistingPartnerAttributeDRPPartnerAttribute Row from the DB.

Member Data Documentation

◆ PartnerAttributeLoadUsingTemplate

Func<PPartnerAttributeRow, StringCollection, TDBTransaction, PPartnerAttributeTable> Ict.Petra.Server.MPartner.ImportExport.TPartnerContactDetails_LocationConversionHelper.PartnerAttributeLoadUsingTemplate

Func Delegate for loading of PPartnerAttribute data from the DB using a Template Record.


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