module ActiveRecord::ConnectionAdapters::Jdbc::ArelSupport

AREL support for the JDBC adapter. @see ActiveRecord::ConnectionAdapters::JdbcAdapter

Public Class Methods

included(base) click to toggle source
# File lib/arjdbc/jdbc/arel_support.rb, line 7
def self.included(base)
  base.extend ClassMethods
end

Public Instance Methods

bind_substitution(visitor) click to toggle source
# File lib/arjdbc/jdbc/arel_support.rb, line 113
def bind_substitution(visitor); self.class.bind_substitution(visitor); end
new_visitor() click to toggle source

Instantiates a new AREL visitor for this adapter. @note On `ActiveRecord` *2.3* this method won't be used.

# File lib/arjdbc/jdbc/arel_support.rb, line 107
def new_visitor
  visitor = self.class.resolve_visitor_type(config)
  ( prepared_statements? ? visitor : bind_substitution(visitor) ).new(self)
end
unprepared_visitor() click to toggle source

@override ActiveRecord's convention

# File lib/arjdbc/jdbc/arel_support.rb, line 117
def unprepared_visitor
  # super does self.class::BindSubstitution.new self
  # we do not require the BindSubstitution constant - auto-generated :
  visitor = self.class.resolve_visitor_type(config)
  bind_substitution(visitor).new(self)
end