Class: JDBCHelper::SQL::NotNullExpression

Inherits:
Expression
  • Object
show all
Defined in:
lib/jdbc-helper/sql/expression.rb

Overview

Since:

  • 0.7.0

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Expression

#==, #eql?, #hash

Constructor Details

#initializeNotNullExpression

Returns a new instance of NotNullExpression.

Since:

  • 0.7.0



116
117
# File 'lib/jdbc-helper/sql/expression.rb', line 116

def initialize
end

Class Method Details

.singletonObject

Since:

  • 0.7.0



112
113
114
# File 'lib/jdbc-helper/sql/expression.rb', line 112

def self.singleton
  @@singleton ||= NotNullExpression.new
end

Instance Method Details

#to_bindObject

Since:

  • 0.7.0



123
124
125
# File 'lib/jdbc-helper/sql/expression.rb', line 123

def to_bind
  ["is not null", []]
end

#to_sObject

Since:

  • 0.7.0



119
120
121
# File 'lib/jdbc-helper/sql/expression.rb', line 119

def to_s
  "is not null"
end