lib/rfm/utilities/sax/fmresultset.yml in ginjo-rfm-3.0.4 vs lib/rfm/utilities/sax/fmresultset.yml in ginjo-rfm-3.0.5
- old
+ new
@@ -14,70 +14,76 @@
- name: fmresultset
attach: none
- name: product
- name: error
attach: none
- before_close: 'check_for_errors'
+ before_close: :check_for_errors
attributes:
- name: code
as_name: error
- name: datasource
attach: none
+ before_close: [object, end_datasource_element_callback, self]
attributes:
- name: total_count
accessor: none
- before_close: :end_datasource_element_callback
- name: metadata
attach: none
- name: field_definition
- handler: [object.meta, handle_new_field, _attributes]
- before_close: :main_callback
+ # These two steps can be used to create the attachment to resultset-meta automatically,
+ # but the field-mapping translation won't happen.
+ # attach: [_meta, 'Rfm::Metadata::Field', allocate]
+ # as_name: field_meta
+ attach: [cursor, 'Rfm::Metadata::Field', ':allocate']
+ delimiter: name
+ attach_attributes: private
+ before_close: [object, field_definition_element_close_callback, self]
- name: relatedset_definition
delimiter: table
as_name: portal_meta
attach_attributes: private
elements:
- name: field_definition
- class: Rfm::Metadata::Field
- attach: cursor
+ attach: [cursor, 'Rfm::Metadata::Field', ':allocate']
delimiter: name
as_name: field_meta
attach_attributes: private
- before_close: :portal_callback
+ before_close: [object, relatedset_field_definition_element_close_callback, self]
- name: resultset
attach: none
attributes:
- name: count
accessor: none
- name: fetch_size
accessor: none
- name: record
- handler: [object, handle_new_record, _attributes]
+ #attach: [cursor, object, handle_new_record, _attributes]
+ #attach_attributes: none
+ attach: [array, 'Rfm::Record', new, object]
+ attach_attributes: private
before_close: '@loaded=true'
elements:
- name: field
- class: Rfm::Metadata::Datum
- compact: true
- attach: cursor
- before_close: :handler_callback
+ attach: [cursor, 'Rfm::Metadata::Datum', ':allocate']
+ compact: false
+ before_close: [object, field_element_close_callback, self]
- name: relatedset
- class: Array
+ attach: [private, Array, ':allocate']
as_name: portals
- attach: private
attach_attributes: private
create_accessors: all
delimiter: table
elements:
- name: record
- class: Rfm::Record
+ #class: Rfm::Record
+ attach: [default, 'Rfm::Record', ':allocate']
attach_attributes: private
before_close: '@loaded=true'
elements:
- name: field
compact: true
- class: Rfm::Metadata::Datum
- attach: cursor
- before_close: :portal_callback
+ attach: [cursor, 'Rfm::Metadata::Datum', ':allocate']
+ before_close: [object, portal_field_element_close_callback, self]
# Works - doesn't use Handler methods.
# ---