@private
@see ActiveRecord::ConnectionAdapters::Jdbc::ArelSupport
# File lib/arjdbc/db2/as400.rb, line 17 def self.arel_visitor_type(config = nil); DB2.arel_visitor_type(config); end
# File lib/arjdbc/db2/as400.rb, line 19 def self.column_selector [ /as400/, lambda { |config, column| column.extend(Column) } ] end
Boolean emulation can be disabled using :
ArJdbc::AS400.emulate_booleans = false
# File lib/arjdbc/db2/as400.rb, line 30 def self.emulate_booleans; DB2.emulate_booleans; end
# File lib/arjdbc/db2/as400.rb, line 31 def self.emulate_booleans=(emulate); DB2.emulate_booleans = emulate; end
@private
# File lib/arjdbc/db2/as400.rb, line 8 def self.extended(adapter); DB2.extended(adapter); end
@private
# File lib/arjdbc/db2/as400.rb, line 11 def self.initialize!; DB2.initialize!; end
@see ActiveRecord::ConnectionAdapters::JdbcAdapter#jdbc_connection_class
# File lib/arjdbc/db2/as400.rb, line 14 def self.jdbc_connection_class; DB2.jdbc_connection_class; end
# File lib/arjdbc/db2/as400.rb, line 35 def adapter_name ADAPTER_NAME end
@private @deprecated no longer used
# File lib/arjdbc/db2/as400.rb, line 102 def as400? true end
@override
# File lib/arjdbc/db2/as400.rb, line 55 def execute_table_change(sql, table_name, name = nil) execute_and_auto_confirm(sql, name) end
@override
# File lib/arjdbc/db2/as400.rb, line 40 def prefetch_primary_key?(table_name = nil) # TRUE if the table has no identity column names = table_name.upcase.split(".") sql = "SELECT 1 FROM SYSIBM.SQLPRIMARYKEYS WHERE " sql << "TABLE_SCHEM = '#{names.first}' AND " if names.size == 2 sql << "TABLE_NAME = '#{names.last}'" select_one(sql).nil? end
Generated with the Darkfish Rdoc Generator 2.