Class: Lafcadio::Query::Link
- Defined in:
- lib/lafcadio/query/Link.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Condition
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Condition
#dbFieldName, #getField, #initialize, #not, #primaryKeyField?
Constructor Details
This class inherits a constructor from Lafcadio::Query::Condition
Class Method Details
.searchTermType ⇒ Object
6 7 8 |
# File 'lib/lafcadio/query/Link.rb', line 6 def Link.searchTermType DomainObject end |
Instance Method Details
#objectMeets(anObj) ⇒ Object
14 15 16 17 |
# File 'lib/lafcadio/query/Link.rb', line 14 def objectMeets(anObj) value = anObj.send @fieldName value ? value.pkId == @searchTerm.pkId : false end |
#toSql ⇒ Object
10 11 12 |
# File 'lib/lafcadio/query/Link.rb', line 10 def toSql "#{ dbFieldName } = #{ @searchTerm.pkId }" end |