Class: Lafcadio::Query::Not

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

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Condition

#dbFieldName, #getField, #not, #primaryKeyField?, searchTermType

Constructor Details

#initialize(unCondition) ⇒ Not

Returns a new instance of Not.



6
7
8
# File 'lib/lafcadio/query/Not.rb', line 6

def initialize(unCondition)
	@unCondition = unCondition
end

Instance Method Details

#objectMeets(obj) ⇒ Object



14
15
16
# File 'lib/lafcadio/query/Not.rb', line 14

def objectMeets(obj)
	!@unCondition.objectMeets(obj)
end

#objectTypeObject



18
# File 'lib/lafcadio/query/Not.rb', line 18

def objectType; @unCondition.objectType; end

#toSqlObject



10
11
12
# File 'lib/lafcadio/query/Not.rb', line 10

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