Abstract base class for reading structured data from a data source and converting
+
Config Options
|
| fields : Array/ObjectConfig Options|
| fields : Array/ObjectEither an Array of Field definition objects (which
+will be passed to Ext.data.Record.create, or a Record
constructo... | DataReader | | messageProperty : String [undefined] Optional name of a property within a server-response that represents a user-feedback message. | DataReader |
Public Properties|
| buildExtractors : Object | DataReader | | extractData : Object | DataReader | | extractValues : Object | DataReader | | getId : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getMessage : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getRoot : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getSuccess : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getTotal : Object Abstract method created in extension's buildExtractors impl. | DataReader | | meta : Mixed This DataReader's configured metadata as passed to the constructor. | DataReader |
Public Methods|
| DataReader( Object meta , Array/Object recordType )
+constructor created from Ext.data.Record.create. | DataReader | | messageProperty : String [undefined] Optional name of a property within a server-response that represents a user-feedback message. | DataReader |
Public Properties|
| buildExtractors : Object | DataReader | | extractData : Object | DataReader | | extractValues : Object | DataReader | | getId : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getMessage : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getRoot : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getSuccess : Object Abstract method created in extension's buildExtractors impl. | DataReader | | getTotal : Object Abstract method created in extension's buildExtractors impl. | DataReader | | meta : Mixed This DataReader's configured metadata as passed to the constructor. | DataReader |
Public Methods|
| DataReader( Object meta , Array/Object recordType )
| DataReader | | isData( Object data )
- :
- BooleanReturns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key
+constructor created using Ext.data.Record.create. Returns: | DataReader | | isData( Object data )
+ :
+ BooleanReturns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key
corresponding to i... Returns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key
-corresponding to idProperty defined in your DataReader config containing non-empty pk. | DataReader | | realize( Record/Record[] record , Object/Object[] data )
- :
+corresponding to idProperty defined in your DataReader config containing non-empty pk. | DataReader | | realize( Record/Record[] record , Object/Object[] data )
+ :
voidUsed for un-phantoming a record after a successful database insert. Sets the records pk along with new data from ser... Used for un-phantoming a record after a successful database insert. Sets the records pk along with new data from server.
You must return at least the database pk using the idProperty defined in your DataReader configuration. The incoming
data from server will be merged with the data in the local record.
In addition, you must return record-data from the server in the same order received.
-Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be suppressed. | DataReader | | update( Record/Record[] rs , Object/Object[] data )
- :
- voidUsed for updating a non-phantom or "real" record's data with fresh data from server after remote-save.
+Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be suppressed. | DataReader | | update( Record/Record[] rs , Object/Object[] data )
+ :
+ voidUsed for updating a non-phantom or "real" record's data with fresh data from server after remote-save.
If returning ... Used for updating a non-phantom or "real" record's data with fresh data from server after remote-save.
If returning data from multiple-records after a batch-update, you must return record-data from the server in
the same order received. Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be
|
|