Module: ArJdbc::Abstract::ConnectionManagement

Instance Method Summary collapse

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/arjdbc/abstract/connection_management.rb', line 8

def active?
  return unless @connection
  @connection.active?
end

#disconnect!Object



25
26
27
28
29
# File 'lib/arjdbc/abstract/connection_management.rb', line 25

def disconnect!
  super # clear_cache! && reset_transaction
  return unless @connection
  @connection.disconnect!
end

#really_valid?Boolean

Returns:

  • (Boolean)


13
14
15
16
# File 'lib/arjdbc/abstract/connection_management.rb', line 13

def really_valid?
  return unless @connection
  @connection.really_valid?
end

#reconnect!Object



19
20
21
22
# File 'lib/arjdbc/abstract/connection_management.rb', line 19

def reconnect!
  super # clear_cache! && reset_transaction
  @connection.reconnect! # handles adapter.configure_connection
end