Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 548

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
ColdFusion ORM
<cfcomponent persistent="true" entityname="Artist" table="Artists">
<cfproperty name="id" column="ARTISTID" generator="increment">
<cfproperty name="firstname">
<cfproperty name="lastname">
<cfproperty name="address">
<cfproperty name="city">
<cfproperty name="state">
<cfproperty name="postalcode">
<cfproperty name="email">
<cfproperty name="phone">
<cfproperty name="fax">
<cfproperty name="thepassword">
</cfcomponent>
Map a ColdFusion component
The tag
defines a persistent CFC by setting
cfcomponent
mappings for a persistent CFC.
If your persistent CFC has
init
Syntax
<cfcomponent
accessors= "yes|no"
persistent="true|[false]"
entityname="entity_name"
table="table_name"
schema="schema"
catalog="catalog"
dynamicInsert="true|[false]"
dynamicupdate="true|[false]"
readonly="true|[false]"
selectbeforeupdate="true|[false]"
discriminatorvalue="discriminator_value"
discriminatorcolumn="discriminator_column"
joincolumn="join_column"
cacheuse="read-only|read-write|nonstrict-read-write|transactional|[none]"
cachename="cache_name"
batchsize="batchsize"
optimisticLock="none|[version]|dirty|all"
lazy="[true]|false"
savemapping="true|false">
Attributes
Attribute
Req/Opt
accessors
true
Optional
batchsize
cachename
optional
persistent="true"
method, ensure that either it has no arguments or all arguments are optional.
Default
1
Last updated 1/20/2012
. It allows you to specify various other
Description
If set to false, ColdFusion ORM does not generate the
implicit getters and setters.
An integer value that specifies the number of records
to be retrieved at a single instance.
For details, see
Lazy
Loading.
Use this value to specify the name of the secondary
cache. See
Caching
for details.
543

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents