@native_database_types - setup properly by adapter= versus set_native_database_types.
This contains type information for the adapter. Individual adapters can make tweaks by defined modify_types
@native_types - This is the default type settings sans any modifications by the individual adapter. My guess is that if we loaded two adapters of different types then this is used as a base to be tweaked by each adapter to create @native_database_types
# File lib/arjdbc/jdbc/connection.rb, line 15 def initialize(config) self.config = config @connection = nil @jndi_connection = false configure_connection # ConfigHelper#configure_connection connection # force the connection to load (@see RubyJDbcConnection.connection) set_native_database_types @stmts = {} # AR compatibility - statement cache not used rescue ::ActiveRecord::ActiveRecordError raise rescue Java::JavaSql::SQLException => e e = e.cause if defined?(NativeException) && e.is_a?(NativeException) # JRuby-1.6.8 error = e.getMessage || e.getSQLState error = error ? "#{e.java_class.name}: #{error}" : e.java_class.name error = ::ActiveRecord::JDBCError.new("The driver encountered an unknown error: #{error}") error.errno = e.getErrorCode error.sql_exception = e raise error end
# File lib/arjdbc/jdbc/connection.rb, line 39 def active? !! @connection end
Generated with the Darkfish Rdoc Generator 2.