Functions | |
int | mdlDB_activeAutoCommitMode (bool autoCommitMode) |
Used to control when a transaction capable database commits work. More... | |
int | mdlDB_activeDAType (int daType) |
Used to set the active displayable attribute type. More... | |
int | mdlDB_activeDatabase (WCharCP filespec) |
Attaches the database databaseName to the current design file. More... | |
int | mdlDB_activeDeleteMode (bool deleteMode) |
Used to control whether database rows linked to graphics elements are deleted when the graphics element is deleted or the linkages are detached. More... | |
int | mdlDB_activeFormsMode (bool formsMode) |
Controls when MicroStation uses screen forms for attribute review and editing. More... | |
int | mdlDB_activeLinkageMode (WCharCP mode) |
Sets the active database linkage mode. More... | |
int | mdlDB_activeReportFile (WCharCP filename) |
Used to define the report table to be created for an entity during a FENCE REPORT operation. More... | |
int | mdlDB_activeReviewTable (WCharCP sqlReview) |
Used to specify an SQL SELECT statement to be used for attribute review operations. More... | |
int | mdlDB_activeRowConfirmMode (bool confirmMode) |
Controls when MicroStation prompts for confirmation on a database operation which requires selecting a graphics element with an existing linkage. More... | |
int mdlDB_activeAutoCommitMode | ( | bool | autoCommitMode | ) |
Used to control when a transaction capable database commits work.
Most RDBMSs support the concept of transactions. A transaction is a unit of work which must be committed in its entirety before being posted to the database.
[in] | autoCommitMode | If true turn auto commit mode on. |
int mdlDB_activeDatabase | ( | WCharCP | filespec | ) |
Attaches the database databaseName to the current design file.
Most database products have the concept of a database which is a collection of tables, views, index files, etc., with user accounts and privileges associated with those objects. The argument databaseName defines which database (and MSCATALOG table) is associated with a design file.
[in] | filespec | Command string following DB= keyin. |
int mdlDB_activeDAType | ( | int | daType | ) |
Used to set the active displayable attribute type.
The displayable attribute type is used when MicroStation builds a displayable attribute linkage for a text node during the ATTACH DA command. The displayable attribute type is an index into the displayable attribute table defined for each entity in MSCATALOG.
[in] | daType | An integer value between 1 and 255 that maps to a row in a displayable attributes table. The displayable attribute format may be either an SQL SELECT statement or a screen form. |
int mdlDB_activeDeleteMode | ( | bool | deleteMode | ) |
Used to control whether database rows linked to graphics elements are deleted when the graphics element is deleted or the linkages are detached.
[in] | deleteMode | If true when linked rows are to be deleted during graphics delete and detach linkage operations. If false delete and detach operations have no effect on linked rows. |
int mdlDB_activeFormsMode | ( | bool | formsMode | ) |
Controls when MicroStation uses screen forms for attribute review and editing.
[in] | formsMode | If true then the screen forms defined in MSCATALOG for each entity will be used for attribute review. If false then the SQL Window dialog box will be used. |
int mdlDB_activeLinkageMode | ( | WCharCP | mode | ) |
Sets the active database linkage mode.
The linkage mode controls how and when MicroStation adds new rows to the database. When linkages are attached to graphics elements and when elements are copied, MicroStation uses the linkage mode to determine when to add new rows to the database.
[in] | mode | The argument mode is a character string which specifies the linkage mode. The string may be one of the following values:
|
int mdlDB_activeReportFile | ( | WCharCP | filename | ) |
Used to define the report table to be created for an entity during a FENCE REPORT operation.
During report operations MicroStation creates a new table having the same structure as the primary table and fills the table with each row linked to graphics elements within the fence.
[in] | filename | The format of the filename argument is table:reportTable where table represents a table in MSCATALOG and reportTable is the name of the table to be created during a FENCE REPORT operation. mdlDB_activeReportFile is equivalent to the MicroStation ACTIVE REPORT (RS=) key-in. |
int mdlDB_activeReviewTable | ( | WCharCP | sqlReview | ) |
Used to specify an SQL SELECT statement to be used for attribute review operations.
Every entity has an (optional) SQL SELECT statement which is saved in the SQLREVIEW column of MSCATALOG. This SELECT statement is used for attribute review when screen forms mode is turned off.
[in] | sqlReview | SQL SELECT review statement. |
int mdlDB_activeRowConfirmMode | ( | bool | confirmMode | ) |
Controls when MicroStation prompts for confirmation on a database operation which requires selecting a graphics element with an existing linkage.
The DEFINE AE and ATTACH DA commands require selecting a graphics element which may contain more than one linkage. If there are multiple linkages and confirmRows is true MicroStation will prompt for confirmation of the row in the SQL Window. If confirmRows is false, the first linkage on the element will be selected.
[in] | confirmMode | Confirm rows if there are multiple linkages. |