Class: Lafcadio::Query::Not

Inherits:
Condition show all
Defined in:
lib/lafcadio/query.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Condition

#&, #db_field_name, #eql?, #field, #implies?, #not, #one_pk_id?, #primary_key_field?, #query, search_term_type, #to_condition, #|

Constructor Details

#initialize(unCondition) ⇒ Not

Returns a new instance of Not.



705
706
707
# File 'lib/lafcadio/query.rb', line 705

def initialize(unCondition)
	@unCondition = unCondition
end

Instance Method Details

#dobj_satisfies?(obj) ⇒ Boolean

Returns:

  • (Boolean)


709
710
711
# File 'lib/lafcadio/query.rb', line 709

def dobj_satisfies?(obj)
	!@unCondition.dobj_satisfies?(obj)
end

#domain_classObject



713
# File 'lib/lafcadio/query.rb', line 713

def domain_class; @unCondition.domain_class; end

#to_sqlObject



715
716
717
# File 'lib/lafcadio/query.rb', line 715

def to_sql
	"!(#{ @unCondition.to_sql })"
end