lib/framework/rhom/rhom_object_factory.rb in rhodes-3.2.3 vs lib/framework/rhom/rhom_object_factory.rb in rhodes-3.3.0.beta.1

- old
+ new

@@ -114,10 +114,16 @@ Rho::RhoController.cached_metadata[src_name] = nil end Rho::RhoController.cached_metadata[src_name] end + + def metadata=(metadata_doc) + src_name = get_source_name + db = ::Rho::RHO.get_src_db(src_name) + db.execute_sql("UPDATE sources set metadata=? where name=?", metadata_doc, src_name) + end def count db = ::Rho::RHO.get_src_db(get_source_name) if is_schema_source() @@ -169,11 +175,11 @@ Rho::RhoConfig.sources[get_source_name]['source_id'].to_i end def convertOpToStr(val_op, value) res = "" - if val_op.upcase == 'IN' + if val_op.upcase == 'IN' || val_op.upcase == 'NOT IN' if value.is_a?(String) value = value.split(",") value.each do |item| item.strip! @@ -398,10 +404,10 @@ sql << " AND object " end end - if val_op == 'IN' or val_op == 'in' + if val_op.upcase == 'IN' || val_op.upcase == 'NOT IN' if value.is_a?(String) value = value.split(",") value.each do |item| item.strip! \ No newline at end of file