OpenPetra
Free Administration Software for Non-Profits
|
Contains Partner Module Extracts handling Business Objects. These Business Objects handle the retrieval, verification and saving of data. More...
Static Public Member Functions | |
static bool | CreateNewExtract (String AExtractName, String AExtractDescription, out Int32 ANewExtractId, out Boolean AExtractAlreadyExists) |
Creates a new extract with the given extract name and extract description in the m_extract_master data table. The Extract Id and the Extract Name must both be unique in the Petra Database. More... | |
static bool | DeleteExtract (int AExtractId, out bool AExtractNotDeletable, out TVerificationResult AVerificationResult) |
Deletes an Extract. More... | |
static bool | CheckExtractExists (string AExtractName) |
Checks whether an Extract with a certain Extract Name exists. More... | |
static bool | CheckExtractExists (int AExtractId) |
Checks whether an Extract with a certain Extract Id exists. More... | |
static Int32 | GetExtractKeyCount (int AExtractId) |
Returns the Key Count of an Extract. More... | |
static bool | UpdateExtractKeyCount (int AExtractId, int ACount, out TVerificationResultCollection AVerificationResult) |
Updates the KeyCount on an Extract. More... | |
static bool | AddPartnerToExtract (Int64 APartnerKey, int AExtractId) |
Adds a Partner to an Extract, if they are not already present More... | |
static bool | AddPartnerToExtract (Int64 APartnerKey, TLocationPK ALocationPK, int AExtractId) |
Adds a Partner to an Extract, if they are not already present More... | |
static bool | CreateExtractFromListOfPartnerKeys (String AExtractName, String AExtractDescription, out Int32 ANewExtractId, DataTable APartnerKeysTable, Int32 APartnerKeyColumn, bool AAddressFilterAdded, out Int32 AKeyCount, out List< long >AIgnoredKeyList, bool AIgnoreDuplicates=true, bool AIgnoreInactive=false, bool AIgnoreNonMailingLocations=false, bool AIgnoreNoSolicitations=false) |
create an extract from a list of best addresses More... | |
static bool | CreateExtractFromListOfPartnerKeys (String AExtractName, String AExtractDescription, out Int32 ANewExtractId, DataTable APartnerKeysTable, Int32 APartnerKeyColumn, Int32 ASiteKeyColumn, Int32 ALocationKeyColumn, out Int32 AKeyCount, out List< long >AIgnoredKeyList, bool AIgnoreDuplicates=true, bool AIgnoreInactive=false, bool AIgnoreNonMailingLocations=false, bool AIgnoreNoSolicitations=true) |
create an extract from a list of best addresses More... | |
static void | ExtendExtractFromListOfPartnerKeys (Int32 AExtractId, DataTable APartnerKeysTable, Int32 APartnerKeyColumn, bool AAddressFilterAdded, out Int32 AKeyCount, out List< long >AIgnoredKeyList, bool AIgnoreDuplicates, bool AIgnoreInactive=false, bool AIgnoreNonMailingLocations=false, bool AIgnoreNoSolicitations=true) |
create an extract from a list of best addresses More... | |
static void | ExtendExtractFromListOfPartnerKeys (Int32 AExtractId, DataTable APartnerKeysTable, Int32 APartnerKeyColumn, Int32 ASiteKeyColumn, Int32 ALocationKeyColumn, out Int32 AKeyCount, out List< long >AIgnoredKeyList, bool AIgnoreDuplicates, bool AIgnoreInactive, bool AIgnoreNonMailingLocations, bool AIgnoreNoSolicitations) |
extend an extract from a list of best addresses More... | |
Contains Partner Module Extracts handling Business Objects. These Business Objects handle the retrieval, verification and saving of data.
@Comment These Business Objects can be instantiated by other Server Objects (usually UIConnectors).
|
inlinestatic |
|
inlinestatic |
Adds a Partner to an Extract, if they are not already present
APartnerKey | PartnerKey of Partner |
ALocationPK | Location PK of a Partner's PartnerLocation (usually the LocationPK of the 'Best Address' of the Partner). |
AExtractId | ExtractId of the Extract that the Partner should get added to. |
|
inlinestatic |
Checks whether an Extract with a certain Extract Id exists.
AExtractId |
|
inlinestatic |
Checks whether an Extract with a certain Extract Name exists.
AExtractName | Name of the Extract to check for. |
|
inlinestatic |
create an extract from a list of best addresses
AExtractName | Name of the Extract to be created. |
AExtractDescription | Description of the Extract to be created. |
ANewExtractId | Extract Id of the created Extract, or -1 if the creation of the Extract was not successful. |
APartnerKeysTable | |
APartnerKeyColumn | number of the column that contains the partner keys |
AAddressFilterAdded | true if location key fields exist in APartnerKeysTable |
AKeyCount | The number of keys that were actually added to the extract (any duplicates are excluded) |
AIgnoredKeyList | A reference to a List of long. The server will fill this with the partner keys that were ignored. Does not include duplicates. |
AIgnoreDuplicates | |
AIgnoreInactive | true if inactive partners should be ignored |
AIgnoreNonMailingLocations | true to ignore if the partner's best address is a non-mailing location |
AIgnoreNoSolicitations | true to ignore partners where the No Solicitations flag is set |
|
inlinestatic |
create an extract from a list of best addresses
AExtractName | Name of the Extract to be created. |
AExtractDescription | Description of the Extract to be created. |
ANewExtractId | Extract Id of the created Extract, or -1 if the creation of the Extract was not successful. |
APartnerKeysTable | |
APartnerKeyColumn | number of the column that contains the partner keys |
ASiteKeyColumn | number of the column that contains the site keys |
ALocationKeyColumn | number of the column that contains the location keys |
AKeyCount | The number of keys that were actually added to the extract (any duplicates are excluded) |
AIgnoredKeyList | A reference to a List of long. The server will fill this with the partner keys that were ignored. Does not include duplicates. |
AIgnoreDuplicates | |
AIgnoreInactive | true if inactive partners should be ignored |
AIgnoreNonMailingLocations | true to ignore if the partner's best address is a non-mailing location |
AIgnoreNoSolicitations | true to ignore partners where the No Solicitations flag is set |
|
inlinestatic |
Creates a new extract with the given extract name and extract description in the m_extract_master data table. The Extract Id and the Extract Name must both be unique in the Petra Database.
AExtractName | Name of the Extract to be created. |
AExtractDescription | Description of the Extract to be created. |
ANewExtractId | Extract Id of the created Extract, or -1 if the creation of the Extract was not successful. |
AExtractAlreadyExists | True if there is already an extract with the given name, otherwise false. |
|
inlinestatic |
Deletes an Extract.
AExtractId | ExtractId of the Extract that should get deleted. |
AExtractNotDeletable | True if the Deletable Flag of the Extract if false. |
AVerificationResult | Nil if all verifications are OK, otherwise filled with a TVerificationResult object. |
|
inlinestatic |
create an extract from a list of best addresses
AExtractId | Extract Id of the Extract to extend |
APartnerKeysTable | |
APartnerKeyColumn | number of the column that contains the partner keys |
AAddressFilterAdded | true if location key fields exist in APartnerKeysTable |
AKeyCount | The number of keys that were actually added to the extract (any duplicates are excluded) |
AIgnoredKeyList | A reference to a List of long. The server will fill this with the partner keys that were ignored. Does not include duplicates. |
AIgnoreDuplicates | true if duplicates should be looked out for. Can be set to false if called only once and not several times per extract. |
AIgnoreInactive | true if inactive partners should be ignored |
AIgnoreNonMailingLocations | true to ignore if the partner's best address is a non-mailing location |
AIgnoreNoSolicitations | true to ignore partners where the No Solicitations flag is set |
|
inlinestatic |
extend an extract from a list of best addresses
AExtractId | Extract Id of the Extract to extend |
APartnerKeysTable | |
APartnerKeyColumn | number of the column that contains the partner keys |
ASiteKeyColumn | number of the column that contains the site keys |
ALocationKeyColumn | number of the column that contains the location keys |
AKeyCount | The number of keys that were actually added to the extract (any duplicates are excluded) |
AIgnoredKeyList | A reference to a List of long. If not null the server will fill it with the partner keys that were ignored. Does not include duplicates. |
AIgnoreDuplicates | true if duplicates should be looked out for. Can be set to false if called only once and not several times per extract. |
AIgnoreInactive | true if inactive partners should be ignored |
AIgnoreNonMailingLocations | true to ignore if the partner's best address is a non-mailing location |
AIgnoreNoSolicitations | true to ignore partners where the No Solicitations flag is set |
|
inlinestatic |
Returns the Key Count of an Extract.
AExtractId | ExtractId of the Extract that the KeyCount should get returned for. |
|
inlinestatic |
Updates the KeyCount on an Extract.
AExtractId | ExtractId of the Extract that the KeyCount should get updated for. |
ACount | New Key Count. |
AVerificationResult | Contains errors or DB call exceptions, if there are any. |