
567
DEVELOPING
COLDFUSION 9 APPLICATIONS
ColdFusion ORM
Las
t
upda
te
d 8/5/2010
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">
fkcolumn
Optional
The foreign key column in the specified
table.
If you do not specify the foreign key
column and
useDBForMapping
is
true
in
ormsettings
, ColdFusion
automatically determines a foreign key
column after inspecting the database.
lazy
Optional
true
Specifies if loading is to be done lazily:
true
false
See
Lazy Loading
for details.
name
Required
Name of the collection.
optimisticlock
Optional
true
Specifies the locking strategy.
true
false
orderBy
Optional
Specifies the Order By string.
readonly
Optional
false
true
false
If set to true, it indicates that the collection
never changes and can be cached.
table
Required
Name of the table from where the values
will be fetched.
type
Optional
array
Specifies if the collection type is:
array
struct
Attribute
Req/Opt
Default
Description
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...