Adobe COLDFUSION 9 Manual page 572

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
ColdFusion ORM
Attribute
Req/Opt
fkcolumn
Optional
lazy
Optional
name
Required
Optional
optimisticlock
orderBy
Optional
Optional
readonly
Required
table
type
Optional
Struct
Syntax
<cfproperty
name="field_name"
fieldtype="collection"
type="struct"
table="table_name"
fkcolumn="foreign_key_column_name"
structkeycolumn="column in the target table to be used as key in the struct"
structkeytype="ormtype of the key in the struct"
elementtype="ormtype of the valye in the struct"
elementColumn="column name from the table that should be used in
value of struct"
orderby="order by string"
lazy = "[true]|false"
readonly="true|[false]"
optimisticlock="[true]|false"
batchsize="batch size">
Default
true
true
false
array
Last updated 8/5/2010
Description
The foreign key column in the specified
table.
If you do not specify the foreign key
column and
useDBForMapping
is
in
ormsettings
, ColdFusion
automatically determines a foreign key
column after inspecting the database.
Specifies if loading is to be done lazily:
true
false
See
Lazy Loading
for details.
Name of the collection.
Specifies the locking strategy.
true
false
Specifies the Order By string.
true
false
If set to true, it indicates that the collection
never changes and can be cached.
Name of the table from where the values
will be fetched.
Specifies if the collection type is:
array
struct
567
true

Advertisement

Table of Contents
loading

Table of Contents