The provisions of the data cfc are to assist in the construction and persistance of ColdFusion CFC and other data objects for the duration of a request. The cfc has two accessors to data: getData() - uses a predefined XML file (datasets.xml) to establish which data to instantiate and return to the requestor. getObject() - uses knowledge of the state of the application and the provided path information to return any CFC that resides in one of a limited set of data locations.
Field Summary | |
Nothing to report |
Field Summary | |
any |
getData(string
dataset, string
type, boolean
cache)
no hint |
any |
init(rhino
refRhino)
no hint |
any |
cacheObject(any
objIncoming, string
sName)
allows for data objects to be pushed onto the cache stack for this request some more complete caching |
any |
useMapping(string
appMapping, string
rhinoMapping)
no hint |
any |
getObject(string
objectName, string
type, boolean
cache)
objectName - Name of the component to be returned, provide path relative to components directory using dots as separatorscache - specify whether to use a previous cached instance and whether to store this instance in cache Used to obtain a reference to an instantiated instance of the specified object. If the object has already been instantiated in this request and caching was not explicitly rejected, a cached instance of the object will be returned. If the object is not within cache, the object will be instantiated and cached (or not) as requested. the duration of the cache is for the duration of the request. |
boolean |
dataDefined(string
sDataset)
no hint |
Method Details |
no hint
no hint
allows for data objects to be pushed onto the cache stack for this request some more complete caching
no hint
Used to obtain a reference to an instantiated instance of the specified object. If the object has already been instantiated in this request and caching was not explicitly rejected, a cached instance of the object will be returned. If the object is not within cache, the object will be instantiated and cached (or not) as requested. the duration of the cache is for the duration of the request.
objectName - Name of the component to be returned, provide path relative to components directory using dots as separators
cache - specify whether to use a previous cached instance and whether to store this instance in cache
no hint