Advanced Database Feature Guide


Host Variable Shapes (AbtCompoundType -> Dictionary)

For example, if the application had a method that looked like:

| table columnData | 
table := connection openTableNamed: aTableString. 
columnData := table sysColumnData at: aColumnAlias. 
^(connection fieldForColData: columnData) 
name: aColumnAlias; 
yourself 
 

it could be reworked as follows:

| table column | 
table := connection tablenamed: aTableString. 
column := columnNamed: aColumnName. 
^Association 
key: anAliasString 
value: column dataType). 
 

With the use of the Advanced Database feature, there is no need to maintain your own cache of table or column information as it is automatically cached.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]