|
OpenPetra
Free Administration Software for Non-Profits
|
Public Member Functions | |
| TDataSetTable (string tableorig, string tablename, string tablealias, TTable origtable) | |
| constructor More... | |
| void | Assign (TTable AOtherTable) |
| copy the values from another table; used for generating datasets by deriving from database tables More... | |
| TTableField | GetField (string s, bool AShowWarningNonExistingField=true) |
| return the reference to a column, given by name More... | |
| TConstraint | GetConstraint (StringCollection fields) |
| get the reference to the constraint which is based on the columns that are passed as parameter More... | |
| Boolean | IsKey (String AFieldname, String AKeyType) |
| determine if a given field is part of a certain type of constraint More... | |
| bool | HasPrimaryKey () |
| determine whether the table has a primary key More... | |
| bool | HasUniqueKey () |
| determine whether the table has a unique key More... | |
| bool | HasForeignKey () |
| determine whether the table has any foreign key constraints More... | |
| TConstraint | GetPrimaryKey () |
| get a reference to the primary key More... | |
| TConstraint | GetFirstUniqueKey () |
| get a reference to the first unique key More... | |
| ArrayList | GetReferences () |
| get the list of constraints of other tables, that reference this table More... | |
| void | AddReference (TConstraint AForeignKey) |
| add a foreign key from another table, that is referencing this table More... | |
| void | PrepareLinks (TDataDefinitionStore db) |
| set the references in the tables referenced by the constraints of this table More... | |
| void | PrepareAutoGeneratedFields () |
| create the auto generated fields (eg. createdby, datemodified) More... | |
| Boolean | TestIndex (TIndex AIndex) |
| Boolean | AddIndex (TIndex AIndex) |
| string | PrepareSQLInsertStatement () |
| prepare an INSERT statement for this table More... | |
| List< OdbcParameter > | PrepareParametersInsertStatement (string line) |
| prepare the parameters for an INSERT statement, from a CSV line More... | |
Static Public Member Functions | |
| static string | NiceTableName (string s) |
| change the name from the sql name to a Delphi class name remove underscores, use capitalised letters More... | |
| static string | NiceFieldName (TTableField tableField) |
| change the name from the sql name to a Delphi variable name remove underscores, remove prefixes and type identifiers, use capitalised letters More... | |
| static string | NiceFieldName (String tableField) |
| format the name of a column using Camelcase and dropping prefix/postfix More... | |
| static string | NiceKeyName (TConstraint c) |
| change the name of the constraint from the sql name to a .net name remove underscores, use capitalised letters, prepend FK or call it PrimaryKey More... | |
| static string | GetNamespace (string AStrGroup) |
| get the namespace for this table, eg. MPersonnel.Units More... | |
Public Attributes | |
| string | tableorig |
| the table name from the sql database More... | |
| string | tablename |
| the CamelCase name of the table More... | |
| string | tablealias |
| an alias for the table More... | |
| List< TTableField > | grpTableField |
| the columns of the table More... | |
| List< TIndex > | grpIndex |
| the indexes in the table More... | |
| List< TConstraint > | grpConstraint |
| the constraints (foreign, unique, primary) of the table More... | |
| string | strName |
| the name of the table (as it is in the database) More... | |
| int | iOrder |
| order of the table More... | |
| string | strDotNetName |
| the name of the table as it should be used in dotnet More... | |
| string | strVariableNameInDataset = null |
| the name of the table when it is used in a dataset; empty otherwise. More... | |
| string | strDumpName |
| the name used for dumping the table More... | |
| string | strDescription |
| a description of the table More... | |
| string | strArea |
| define which area in the db this table belongs to More... | |
| string | strLabel |
| even shorter description than strDescription More... | |
| Boolean | ExistsStrLabel |
| is there a label at all? More... | |
| string | strGroup |
| each table belongs to a certain group, which helps with the HTML documentation of the database structure More... | |
| bool | bWithoutCRMDFields |
| created / modified fields More... | |
| bool | bCatchUpdateException |
| attempt an insert instead of failed update in SubmitChanges in DataAccess More... | |
| ArrayList | FReferenced |
| references to this table from other tables list of TConstraints More... | |
| String | CustomReportPermission |
| which permission is needed to access this table with a custom report More... | |
| Boolean | AvailableForCustomReport |
| is this table available for custom reports More... | |
Static Public Attributes | |
| static Boolean | GEnabledLoggingMissingFields = true |
| this for debugging; it helps to find columns that are missing More... | |
this describes a table that is derived from a database table, has additional custom fields, or is completely customised
|
inline |
constructor
| tableorig | the sql name of the table |
| tablename | the name of the table in CamelCase |
| tablealias | which alias to use for the table |
| origtable | this is an instance of a table that should be used as a base |
|
inlineinherited |
only add the index if it does not exist yet
|
inlineinherited |
add a foreign key from another table, that is referencing this table
| AForeignKey | foreign key to add |
|
inlineinherited |
copy the values from another table; used for generating datasets by deriving from database tables
| AOtherTable |
|
inlineinherited |
get the reference to the constraint which is based on the columns that are passed as parameter
| fields | the fields that are part of the constraint that we look for |
|
inlineinherited |
return the reference to a column, given by name
| s | name of the column |
| AShowWarningNonExistingField | show warning if there is no field with that name; only takes effect if GEnabledLoggingMissingFields is true |
|
inlineinherited |
get a reference to the first unique key
|
inlinestaticinherited |
get the namespace for this table, eg. MPersonnel.Units
|
inlineinherited |
get a reference to the primary key
|
inlineinherited |
get the list of constraints of other tables, that reference this table
|
inlineinherited |
determine whether the table has any foreign key constraints
|
inlineinherited |
determine whether the table has a primary key
|
inlineinherited |
determine whether the table has a unique key
|
inlineinherited |
determine if a given field is part of a certain type of constraint
| AFieldname | the field in question |
| AKeyType | a type of constraint, eg. unique, primary, foreign key |
|
inlinestaticinherited |
format the name of a column using Camelcase and dropping prefix/postfix
| tableField | the name to format |
|
inlinestaticinherited |
change the name from the sql name to a Delphi variable name remove underscores, remove prefixes and type identifiers, use capitalised letters
| tableField | the reference to the column which you want the nice name of |
|
inlinestaticinherited |
change the name of the constraint from the sql name to a .net name remove underscores, use capitalised letters, prepend FK or call it PrimaryKey
| c | the constraint |
|
inlinestaticinherited |
change the name from the sql name to a Delphi class name remove underscores, use capitalised letters
| s | turn the table name into CamelCase |
|
inlineinherited |
create the auto generated fields (eg. createdby, datemodified)
|
inlineinherited |
set the references in the tables referenced by the constraints of this table
| db |
|
inlineinherited |
prepare the parameters for an INSERT statement, from a CSV line
|
inlineinherited |
prepare an INSERT statement for this table
|
inlineinherited |
checks if all the fields of the index exist in the table
|
inherited |
is this table available for custom reports
|
inherited |
attempt an insert instead of failed update in SubmitChanges in DataAccess
|
inherited |
created / modified fields
|
inherited |
which permission is needed to access this table with a custom report
|
inherited |
is there a label at all?
|
inherited |
references to this table from other tables list of TConstraints
|
staticinherited |
this for debugging; it helps to find columns that are missing
|
inherited |
the constraints (foreign, unique, primary) of the table
|
inherited |
the indexes in the table
|
inherited |
the columns of the table
|
inherited |
order of the table
|
inherited |
define which area in the db this table belongs to
|
inherited |
a description of the table
|
inherited |
the name of the table as it should be used in dotnet
|
inherited |
the name used for dumping the table
|
inherited |
each table belongs to a certain group, which helps with the HTML documentation of the database structure
|
inherited |
even shorter description than strDescription
|
inherited |
the name of the table (as it is in the database)
|
inherited |
the name of the table when it is used in a dataset; empty otherwise.
| string Ict.Tools.DBXML.TDataSetTable.tablealias |
an alias for the table
| string Ict.Tools.DBXML.TDataSetTable.tablename |
the CamelCase name of the table
| string Ict.Tools.DBXML.TDataSetTable.tableorig |
the table name from the sql database