OpenPetra
Free Administration Software for Non-Profits
|
our own Typed Dataset base class More...
Classes | |
class | TOtherDataSet |
helper class to be able to use the standard serialization constructor More... | |
Public Member Functions | |
abstract void | InitVars () |
for initialising the columns implemented by generated code More... | |
TTypedDataSet () | |
default constructor More... | |
TTypedDataSet (string ADatasetName) | |
constructor with dataset name More... | |
override DataSet | Clone () |
also copy the constraints and relations arrays More... | |
void | InitClass () |
Initialise the class, calling abstract routines in the right order More... | |
new void | Merge (DataTable ATable) |
overload that makes sure that the typed tables are mapped again More... | |
new void | Merge (DataSet ADataSet) |
overload that makes sure that the typed tables are mapped again More... | |
new void | Merge (DataSet ADataSet, bool APreserveChanges) |
overload that makes sure that the typed tables are mapped again More... | |
DataColumn[] | GetDataColumnArrayFromString (DataTable ATable, string[] AKeys) |
This returns an array of DataColumns, based on a Array of strings of column names of a given table More... | |
void | EnableConstraint (TTypedConstraint AConstraint) |
enable a specific constraint More... | |
void | EnableConstraints () |
Will add the constraints to the tables. The constraints should have been before added to FConstraints. Constraints will only be added if they don't exist already More... | |
void | DisableConstraints () |
disable all the constraints More... | |
void | EnableConstraint (String AName) |
Enable a specific constraint More... | |
void | DisableConstraint (String AName) |
Disable a specific constraint More... | |
void | DisableRelationConstraints () |
Disable all constraints created because of a relation More... | |
void | EnableRelations () |
Will add the relations to the tables. The relations should have been before added to FRelations. Relations will only be added if they don't exist already More... | |
void | EnableRelation (String AName) |
Enable a specific relation More... | |
void | DisableRelation (String AName) |
Disable a specific relation More... | |
virtual TTypedDataSet | GetChangesTyped (Boolean removeEmptyTables) |
returns a dataset with only necessary data depending on the parameter removeEmptyTables, the empty tables are not returned all rows that are not changed are not returned More... | |
void | RemoveTable (String ATableName) |
Remove a table fromt the dataset, and all constraints and references refering to it More... | |
void | RemoveTables (StringCollection ATableNames) |
remove a list of tables from the dataset (StringCollection) More... | |
void | RemoveTables (string[] ATableNames) |
remove a list of tables from the dataset (array of string) More... | |
void | RemoveEmptyTables () |
remove all tables from the dataset that are empty More... | |
Protected Member Functions | |
abstract void | InitTables () |
for initialising the tables implemented by generated code More... | |
abstract void | InitTables (DataSet ds) |
for initialising the tables, of a specific dataset implemented by generated code More... | |
abstract void | InitConstraints () |
for initialising the constraints implemented by generated code More... | |
virtual void | MapTables () |
make sure that the typed variables are all referencing to the dataset More... | |
void | EnableRelation (TTypedRelation ARelation) |
enable a specific relation More... | |
Protected Attributes | |
ArrayList | FConstraints |
constraints in this dataset More... | |
ArrayList | FRelations |
relations in this dataset More... | |
Properties | |
bool | ThrowAwayAfterSubmitChanges [get, set] |
if you want the dataset to be cleared after submitchanges. This will increase the speed significantly: no updating of modificationID, no slow AcceptChanges. More... | |
bool | DontThrowAwayAfterSubmitChanges [get, set] |
if you want no warning about that the datatable should be cleared after submitchanges. in some cases you must keep the data, eg when you need the new keys after INSERT More... | |
our own Typed Dataset base class
|
inline |
default constructor
|
inline |
constructor with dataset name
ADatasetName | name for the new typed dataset |
|
inline |
also copy the constraints and relations arrays
|
inline |
Disable a specific constraint
|
inline |
disable all the constraints
|
inline |
Disable a specific relation
|
inline |
Disable all constraints created because of a relation
|
inline |
Enable a specific constraint
|
inline |
enable a specific constraint
|
inline |
Will add the constraints to the tables. The constraints should have been before added to FConstraints. Constraints will only be added if they don't exist already
|
inline |
Enable a specific relation
|
inlineprotected |
enable a specific relation
|
inline |
Will add the relations to the tables. The relations should have been before added to FRelations. Relations will only be added if they don't exist already
|
inlinevirtual |
returns a dataset with only necessary data depending on the parameter removeEmptyTables, the empty tables are not returned all rows that are not changed are not returned
|
inline |
This returns an array of DataColumns, based on a Array of strings of column names of a given table
|
inline |
Initialise the class, calling abstract routines in the right order
|
protectedpure virtual |
for initialising the constraints implemented by generated code
Implemented in Ict.Petra.Shared.MCommon.Data.OfficeSpecificDataLabelsTDS, Ict.Petra.Shared.MCommon.Data.CacheableTablesTDS, Ict.Petra.Shared.MCommon.Data.SampleDataConstructorTDS, Ict.Petra.Shared.MCommon.Data.PartnerAddressTDS, Ict.Petra.Shared.MConference.Data.SelectConferenceTDS, Ict.Petra.Shared.MConference.Data.ConferenceSetupTDS, Ict.Petra.Shared.MConference.Data.ConferenceApplicationTDS, Ict.Petra.Shared.MFinance.AP.Data.AccountsPayableTDS, Ict.Petra.Shared.MFinance.BankImport.Data.BankImportTDS, Ict.Petra.Shared.MFinance.CrossLedger.Data.ExchangeRateTDS, Ict.Petra.Shared.MFinance.Gift.Data.GiftBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLPostingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLReportingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLSetupTDS, Ict.Petra.Shared.MFinance.GL.Data.GLStewardshipCalculationTDS, Ict.Petra.Shared.MFinance.GL.Data.BudgetTDS, Ict.Petra.Shared.MFinance.GL.Data.SuspenseAccountTDS, Ict.Petra.Shared.MFinance.GL.Data.CorporateExchangeSetupTDS, Ict.Petra.Shared.MHospitality.Data.HospitalityTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerEditTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerAddressAggregateTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerInfoTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerFindTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerImportExportTDS, Ict.Petra.Shared.MPartner.Partner.Data.ExtractTDS, Ict.Petra.Shared.MPartner.Partner.Data.ContactTDS, Ict.Petra.Shared.MPartner.Partner.Data.PostcodeRegionsTDS, Ict.Petra.Shared.MPartner.Partner.Data.BankTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerContactSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.DataConsentTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.PersonnelTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.IndividualDataTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.ApplicationTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.LengthOfCommitmentReportTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipFindTDS, and Ict.Petra.Shared.MSysMan.Data.MaintainUsersTDS.
|
protectedpure virtual |
for initialising the tables implemented by generated code
Implemented in Ict.Petra.Shared.MCommon.Data.OfficeSpecificDataLabelsTDS, Ict.Petra.Shared.MCommon.Data.CacheableTablesTDS, Ict.Petra.Shared.MCommon.Data.SampleDataConstructorTDS, Ict.Petra.Shared.MCommon.Data.PartnerAddressTDS, Ict.Petra.Shared.MConference.Data.SelectConferenceTDS, Ict.Petra.Shared.MConference.Data.ConferenceSetupTDS, Ict.Petra.Shared.MConference.Data.ConferenceApplicationTDS, Ict.Petra.Shared.MFinance.AP.Data.AccountsPayableTDS, Ict.Petra.Shared.MFinance.BankImport.Data.BankImportTDS, Ict.Petra.Shared.MFinance.CrossLedger.Data.ExchangeRateTDS, Ict.Petra.Shared.MFinance.Gift.Data.GiftBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLPostingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLReportingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLSetupTDS, Ict.Petra.Shared.MFinance.GL.Data.GLStewardshipCalculationTDS, Ict.Petra.Shared.MFinance.GL.Data.BudgetTDS, Ict.Petra.Shared.MFinance.GL.Data.SuspenseAccountTDS, Ict.Petra.Shared.MFinance.GL.Data.CorporateExchangeSetupTDS, Ict.Petra.Shared.MHospitality.Data.HospitalityTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerEditTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerAddressAggregateTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerInfoTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerFindTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerImportExportTDS, Ict.Petra.Shared.MPartner.Partner.Data.ExtractTDS, Ict.Petra.Shared.MPartner.Partner.Data.ContactTDS, Ict.Petra.Shared.MPartner.Partner.Data.PostcodeRegionsTDS, Ict.Petra.Shared.MPartner.Partner.Data.BankTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerContactSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.DataConsentTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.PersonnelTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.IndividualDataTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.ApplicationTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.LengthOfCommitmentReportTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipFindTDS, and Ict.Petra.Shared.MSysMan.Data.MaintainUsersTDS.
|
protectedpure virtual |
for initialising the tables, of a specific dataset implemented by generated code
ds | the dataset |
|
pure virtual |
for initialising the columns implemented by generated code
Implemented in Ict.Petra.Shared.MCommon.Data.OfficeSpecificDataLabelsTDS, Ict.Petra.Shared.MCommon.Data.CacheableTablesTDS, Ict.Petra.Shared.MCommon.Data.SampleDataConstructorTDS, Ict.Petra.Shared.MCommon.Data.PartnerAddressTDS, Ict.Petra.Shared.MConference.Data.SelectConferenceTDS, Ict.Petra.Shared.MConference.Data.ConferenceSetupTDS, Ict.Petra.Shared.MConference.Data.ConferenceApplicationTDS, Ict.Petra.Shared.MFinance.AP.Data.AccountsPayableTDS, Ict.Petra.Shared.MFinance.BankImport.Data.BankImportTDS, Ict.Petra.Shared.MFinance.CrossLedger.Data.ExchangeRateTDS, Ict.Petra.Shared.MFinance.Gift.Data.GiftBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLPostingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLReportingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLSetupTDS, Ict.Petra.Shared.MFinance.GL.Data.GLStewardshipCalculationTDS, Ict.Petra.Shared.MFinance.GL.Data.BudgetTDS, Ict.Petra.Shared.MFinance.GL.Data.SuspenseAccountTDS, Ict.Petra.Shared.MFinance.GL.Data.CorporateExchangeSetupTDS, Ict.Petra.Shared.MHospitality.Data.HospitalityTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerEditTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerAddressAggregateTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerInfoTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerFindTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerImportExportTDS, Ict.Petra.Shared.MPartner.Partner.Data.ExtractTDS, Ict.Petra.Shared.MPartner.Partner.Data.ContactTDS, Ict.Petra.Shared.MPartner.Partner.Data.PostcodeRegionsTDS, Ict.Petra.Shared.MPartner.Partner.Data.BankTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerContactSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.DataConsentTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.PersonnelTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.IndividualDataTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.ApplicationTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.LengthOfCommitmentReportTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipFindTDS, and Ict.Petra.Shared.MSysMan.Data.MaintainUsersTDS.
|
inlineprotectedvirtual |
make sure that the typed variables are all referencing to the dataset
Reimplemented in Ict.Petra.Shared.MCommon.Data.OfficeSpecificDataLabelsTDS, Ict.Petra.Shared.MCommon.Data.CacheableTablesTDS, Ict.Petra.Shared.MCommon.Data.SampleDataConstructorTDS, Ict.Petra.Shared.MCommon.Data.PartnerAddressTDS, Ict.Petra.Shared.MConference.Data.SelectConferenceTDS, Ict.Petra.Shared.MConference.Data.ConferenceSetupTDS, Ict.Petra.Shared.MConference.Data.ConferenceApplicationTDS, Ict.Petra.Shared.MFinance.AP.Data.AccountsPayableTDS, Ict.Petra.Shared.MFinance.BankImport.Data.BankImportTDS, Ict.Petra.Shared.MFinance.CrossLedger.Data.ExchangeRateTDS, Ict.Petra.Shared.MFinance.Gift.Data.GiftBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLBatchTDS, Ict.Petra.Shared.MFinance.GL.Data.GLPostingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLReportingTDS, Ict.Petra.Shared.MFinance.GL.Data.GLSetupTDS, Ict.Petra.Shared.MFinance.GL.Data.GLStewardshipCalculationTDS, Ict.Petra.Shared.MFinance.GL.Data.BudgetTDS, Ict.Petra.Shared.MFinance.GL.Data.SuspenseAccountTDS, Ict.Petra.Shared.MFinance.GL.Data.CorporateExchangeSetupTDS, Ict.Petra.Shared.MHospitality.Data.HospitalityTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerEditTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerAddressAggregateTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerInfoTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerFindTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerImportExportTDS, Ict.Petra.Shared.MPartner.Partner.Data.ExtractTDS, Ict.Petra.Shared.MPartner.Partner.Data.ContactTDS, Ict.Petra.Shared.MPartner.Partner.Data.PostcodeRegionsTDS, Ict.Petra.Shared.MPartner.Partner.Data.BankTDS, Ict.Petra.Shared.MPartner.Partner.Data.PartnerContactSetupTDS, Ict.Petra.Shared.MPartner.Partner.Data.DataConsentTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.PersonnelTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.IndividualDataTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.ApplicationTDS, Ict.Petra.Shared.MPersonnel.Personnel.Data.LengthOfCommitmentReportTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipTDS, Ict.Petra.Shared.MSponsorship.Data.SponsorshipFindTDS, and Ict.Petra.Shared.MSysMan.Data.MaintainUsersTDS.
|
inline |
overload that makes sure that the typed tables are mapped again
ADataSet |
|
inline |
overload that makes sure that the typed tables are mapped again
|
inline |
overload that makes sure that the typed tables are mapped again
ATable |
|
inline |
remove all tables from the dataset that are empty
|
inline |
Remove a table fromt the dataset, and all constraints and references refering to it
ATableName | table to remove |
|
inline |
remove a list of tables from the dataset (array of string)
ATableNames | names of tables to be removed |
|
inline |
remove a list of tables from the dataset (StringCollection)
ATableNames | names of tables to be removed |
|
protected |
constraints in this dataset
|
protected |
relations in this dataset
|
getset |
if you want no warning about that the datatable should be cleared after submitchanges. in some cases you must keep the data, eg when you need the new keys after INSERT
|
getset |
if you want the dataset to be cleared after submitchanges. This will increase the speed significantly: no updating of modificationID, no slow AcceptChanges.