Class: CqlRuby::CqlRelation

Inherits:
CqlNode
  • Object
show all
Defined in:
lib/cql_ruby/cql_nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CqlNode

#check_xml, #getResultSetName, #render_prefixes, #render_sortkeys

Constructor Details

#initialize(base) ⇒ CqlRelation

Returns a new instance of CqlRelation.



273
274
275
276
# File 'lib/cql_ruby/cql_nodes.rb', line 273

def initialize( base )
  super()
  @modifier_set = ModifierSet.new( base )
end

Instance Attribute Details

#modifier_setObject

Returns the value of attribute modifier_set.



271
272
273
# File 'lib/cql_ruby/cql_nodes.rb', line 271

def modifier_set
  @modifier_set
end

Instance Method Details

#set_modifiers(ms) ⇒ Object



278
279
280
# File 'lib/cql_ruby/cql_nodes.rb', line 278

def set_modifiers( ms )
  @modifier_set = ms
end

#to_cqlObject



288
289
290
# File 'lib/cql_ruby/cql_nodes.rb', line 288

def to_cql
  @modifier_set.to_cql()
end

#to_xcql(xml = nil, prefixes = nil, sortkeys = nil) ⇒ Object

Raises:



282
283
284
285
286
# File 'lib/cql_ruby/cql_nodes.rb', line 282

def to_xcql( xml=nil, prefixes=nil, sortkeys=nil )
  raise CqlException,  "CqlRelation.to_xcql called with no relation" if sortkeys 
  xml = check_xml( xml )
  @modifier_set.to_xcql( xml, "relation" )
end