Click or drag to resize
DataDictionaryTable Class

[This is preliminary documentation and is subject to change.]

Meta-data for one table in data dictionary (corresponding to one physical database table)
Inheritance Hierarchy
SystemObject
  CSC.SC.TOPICA4.DynamicDataDataDictionaryTable

Namespace: CSC.SC.TOPICA4.DynamicData
Assembly: CSC.SC.TOPICA4.DynamicData (in CSC.SC.TOPICA4.DynamicData.dll) Version: 4.30.6239.27195
Syntax
C#
public class DataDictionaryTable : IEvaluatable

The DataDictionaryTable type exposes the following members.

Constructors
  NameDescription
Public methodDataDictionaryTable(DataDictionary, DataTable)
Construct DataDictionaryTable from DataTable
Public methodDataDictionaryTable(Database, DataRow, DataDictionary)
Construct DataDictionaryTable by reading from database
Top
Methods
  NameDescription
Public methodAddExternalRelation
Public methodAddField(DataDictionary, DataDictionaryField)
Add field
Public methodAddField(DataDictionary, DataDictionaryField, Boolean, String, String, Boolean, NullableInt32, NullableDouble, String, NullableInt32, Boolean)
Add field (constructed from parameters)
Public methodAddField(DataDictionary, DataDictionaryField, Boolean, String, String, Boolean, NullableInt32, NullableDouble, String, NullableInt32, Boolean, ProgressCollection, String)
Add field (constructed from parameters)
Public methodAddFields
Add collection of fields
Public methodAddTableField
Add DataDictionaryTableField
Public methodAsString
String representation
Public methodCacheAdd
Add object to cache
Public methodCacheClear
Clear cache
Public methodCacheGet
Get object from cache
Public methodCheckForCompatibility
Checks for compatibility.
Public methodCheckTable
Compare actual database tables to this DataDictionaryTable (in RAM only - no metadata in database!)
Public methodCountFieldsByCaption
Get # fields matching caption
Public methodDebugPrint
Debug print
Public methodDebugPrint(String)
Debug print
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluate
Ealuate a TOPICA basic expression
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindFieldByFieldName
Find field by field name
Public methodFindFieldDateStart
Find DateStart field
Public methodFindFieldDateStop
Returns datadictionaryfield containing dateStop
Public methodFindFieldsByCaption
Find all fields matching caption
Public methodGetAncestorTables
Get all tables that are ancestors to this
Public methodGetAncestorTableSelect
Get the (closest) ancestor table where OrgUnitRelation == OrgUnitRelation.Select
Public methodGetChildArrayTables
Get child tables that are created for ArrayTable template items
Public methodGetChildRelations
Get all child relations, i.e. relations where this is parent.
Public methodGetChildRelations(Boolean, Boolean)
Get all child relations, i.e. relations where this is parent. Optionally skip hidden realtions/tabls and/or relation to property form.
Public methodGetChildTables
Get all tables referred by child relations.
Public methodGetChildTables(Boolean)
Get tables referred by child relations - optionally onlye those with 1:1 cardinality
Public methodGetChildTablesNotHidden
Get all tables referred by child relations.
Public methodGetComputation
Get the computation with name = parameter name
Public methodGetComputationExpression
Get the computation with name = parameter name
Public methodGetDescendantTables
Get all tables that are descendants to this, optionally only those with 1:1 relation
Public methodGetEnabledComputation
Get the enabled computation with name = parameter name
Public methodGetExternalRelationsByTable
Get external relations by table
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetOrgUnitInherited
????
Public methodGetOrgUnitRelations
Get relations to table OrgUnit
Public methodGetParentRelations
Get all parent relations, i.e. relations where this is child
Public methodGetParentTable
Get parent table
Public methodGetParentTables
Get all tables referred by parent relations
Public methodGetPhraseFields
Get all fields in this table, that have phrases enabled
Public methodGetSQL
Returns SQL-statement based on supplied whereClause and orderBy
Public methodGetSQLAll
Returns SQL-statement to select all records from database
Public methodGetTextAreaFields
Get all fields in this table of type TexArea (or RichTextArea)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultForm
Compute whether this table is marked as DefaultForm
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetComputation
Set the computation with name = parameter name to expression
Public methodToString
String representation - for debugging etc.
(Overrides ObjectToString.)
Top
Properties
  NameDescription
Public propertyAccessModeDenied
Get/set access mode for handling data, where read access is denied (show or not...)
Public propertyAccessModeDeniedCheckInherited
Get access mode for handling data, where read access is denied - check inherited
Public propertyAccessModeRead
Get/set access mode for read operations
Public propertyAccessModeReadCheckInherited
Get access mode for read operations - check inherited
Public propertyAccessModeWrite
Access mode for write operations
Public propertyAccessModeWriteCheckInherited
Get access mode for write operations - check inherited
Public propertyApprove
Get/set Approve: specifies whether objects of this type must be approved
Public propertyAugmentedView
Get set field that specifies whether this table should generate "augmented view"
Public propertyAutoCreate
Get/set AutoCreate - deciding whether instances of this table should be created automatically when parent table is created.
Public propertyCaption
Display name
Public propertyClosable
Get/set "closable" status - "close" checkbox only visible when Closable is true
Public propertyComputationCount
Return # of computations
Public propertyComputations
Get/set collection of computations
Public propertyCreateOrgUnitList
Generate one "create" command per legal data owner (use with caution!)
Public propertyCustomQueries
Gets/sets customQueryCollection
Public propertyDataDictionary
Get the DataDictionary this table is member of
Public propertyDataTable
Get DataTable (including columns for history only)
Public propertyDataTableWithHistory
Get DataTableWithHistory (including columns for history only)
Public propertyDataTableWithoutHistory
Get DataTableWithoutHistory (excluding columns for history only)
Public propertyDefaultForm
This form will be opened by default when creating (opening?) new patient
Public propertyDefaultLastPreviousPrompt
Prompt for using data from last previous record
Public propertyDefaultLastPreviousSource
Use data from last previous record as default value
Public propertyDescription
Internal description of table
Public propertyDraftMode
Get/set "draft mode"
Public propertyExternalRelationCollection
Get ExternalRelationCollection
Public propertyExternalRelationCount
# of external relations
Public propertyFieldCount
Number of fields in this table
Public propertyFilename
Get/set Filename
Public propertyFlatView
Get set field that specifies whether this table should generate "flat view"
Public propertyGenerateSQL
true : generates table in database false: does NOT generate table in database (used for root only)
Public propertyHidden
Hidden, i.e. table exists in database, but hidden in user interface
Public propertyHistoryTableName
Get HistoryTableName : Name of history table
Public propertyImageClosed
Gets/Sets imageclosed
Public propertyImageComplete
Gets/sets imageComplete
Public propertyImageFile
Image file used for icon in user interface (tree view etc.)
Public propertyImageIncomplete
Gets/sets imageIncomplete
Public propertyImagePlanned
Gets/sets ImagePlanned
Public propertyIsArrayTable
Is this DataDictionaryTable an ArrayTable
Public propertyIsRoot
Table is root in hierarchy
Public propertyIsShared
Data in this tables is shared among 2 or more forms
Public propertyLink
Link (e.g. URL) to external description of table
Public propertyMergeByFieldName
If set, use this field for merging: - get value of this field - lookup existing record having same value - if lookup record found, use it in further merge of subrecords, - otherwise create new record (by copying source record).
Public propertyMergeNewestFieldName
In case of merge conflict (e.g. 1:1 relation on destination patient already contains record), and merge conflict handling status (ConflictSurvivor) is "newest", the field specified in this property is used to determine which record is newest. Default value: use "lasted touched" date/time (create or updated date/time). When specified the value must refer to a DateTime field in the current table!
Public propertyMergePatientLevel
When merging with lookup by field name MergeByFieldName, default behavior is to look up only in current parent record. Set this property to true to lookup in all records (in requested table) on patient.
Public propertyOrgUnitConfigure
true : table kan be configured (enabled) for each org. unit
Public propertyOrgUnitRelation
Specifies how rows in this table are related to org.unit (= data owner)
Public propertyOrgUnitRelationFixed
Get OrgUnitRelationFixed : true : old relation system, where each table has 1 hardcoded relation to OrgUnit false : new external relation systems - all external relations configurable
Public propertyPatientAccessMode
Patient access mode
Public propertyPatientAccessModeCheckInherited
Gets/sets PatientsAccessMode
Public propertyPlan
Get/set Plan: specifies whether objects of this type may be planned
Public propertySearchable
Get/set "searchable" status
Public propertySequenceNumber
Sequence number - used to maintain sequence of tables (necessary in order to drop tables in correct order when using referential integrity)
Public propertySingleOpen Obsolete.
Get/set "single open status" - if true, it is impossible to create new instance, if open instance exist in current context.
Public propertySingleOpenMode
Get/set "single open mode"
Public propertySortByField
Field name used for sorting in user interface
Public propertySortDescending
Sort ascending (false) or descending (true)
Public propertyStructureType
Type of structure element / table
Public propertyTableFieldCollection
Relations to fields
Public propertyTableName
Get TableName - name of table in database
Public propertyViewName
Get/Set ViewName (optional - if blank use autogenerated name)
Top
See Also