Class: Rfm::Metadata::ResultsetMeta

Inherits:
CaseInsensitiveHash show all
Defined in:
lib/rfm/metadata/resultset_meta.rb

Instance Method Summary collapse

Methods inherited from CaseInsensitiveHash

#[], #[]=

Methods inherited from Hash

#_create_accessor, #_merge_object!, #rfm_filter, #rfm_only, #to_cih

Instance Method Details

#attach_layout_object_from_cursor(cursor) ⇒ Object


68
69
70
71
# File 'lib/rfm/metadata/resultset_meta.rb', line 68

def attach_layout_object_from_cursor(cursor)
	self['layout_object'] = cursor.top.object.layout	#puts ["\nRESULTSET_META#metadata_element_close_callback", self['layout_object']]

end

#date_formatObject


13
14
15
# File 'lib/rfm/metadata/resultset_meta.rb', line 13

def date_format
	self['date_format']
end

#errorObject


41
42
43
# File 'lib/rfm/metadata/resultset_meta.rb', line 41

def error
	self['error']
end

#fetch_sizeObject


33
34
35
# File 'lib/rfm/metadata/resultset_meta.rb', line 33

def fetch_size
	self['fetch_size'].to_i
end

#field_keysObject


49
50
51
# File 'lib/rfm/metadata/resultset_meta.rb', line 49

def field_keys
 	field_meta ? field_meta.keys : []
end

#field_metaObject


5
6
7
# File 'lib/rfm/metadata/resultset_meta.rb', line 5

def field_meta
	self['field_meta'] ||= CaseInsensitiveHash.new
end

#field_namesObject


45
46
47
# File 'lib/rfm/metadata/resultset_meta.rb', line 45

def field_names
 	field_meta ? field_meta.values.collect{|v| v.name} : []
end

#foundset_countObject


29
30
31
# File 'lib/rfm/metadata/resultset_meta.rb', line 29

def foundset_count
	self['count'].to_i
end

#layout_objectObject

def handle_new_field(attributes) f = Field.new(attributes) # TODO: Re-enable these when you stop using the before_close callback. # name = attributes # self = f end


64
65
66
# File 'lib/rfm/metadata/resultset_meta.rb', line 64

def layout_object
	self['layout_object']
end

#portal_metaObject


9
10
11
# File 'lib/rfm/metadata/resultset_meta.rb', line 9

def portal_meta
	self['portal_meta'] ||= CaseInsensitiveHash.new
end

#portal_namesObject


53
54
55
# File 'lib/rfm/metadata/resultset_meta.rb', line 53

def portal_names
	portal_meta ? portal_meta.keys : []
end

#tableObject


37
38
39
# File 'lib/rfm/metadata/resultset_meta.rb', line 37

def table
	self['table']
end

#time_formatObject


17
18
19
# File 'lib/rfm/metadata/resultset_meta.rb', line 17

def time_format
	self['time_format']
end

#timestamp_formatObject


21
22
23
# File 'lib/rfm/metadata/resultset_meta.rb', line 21

def timestamp_format
	self['timestamp_format']
end

#total_countObject


25
26
27
# File 'lib/rfm/metadata/resultset_meta.rb', line 25

def total_count
	self['total_count'].to_i
end