module Sequel::JDBC::AS400::DatabaseMethods
Instance methods for AS400
Database objects accessed via JDBC
.
Constants
- TRANSACTION_BEGIN
- TRANSACTION_COMMIT
- TRANSACTION_ROLLBACK
Public Instance Methods
database_type()
click to toggle source
AS400
uses the :as400 database type.
# File lib/sequel/jdbc/as400.rb, line 32 def database_type :as400 end
last_insert_id(_conn, _opts = OPTS)
click to toggle source
TODO: Fix for AS400
# File lib/sequel/jdbc/as400.rb, line 37 def last_insert_id(_conn, _opts = OPTS) nil end
supports_transaction_isolation_levels?()
click to toggle source
AS400
supports transaction isolation levels
# File lib/sequel/jdbc/as400.rb, line 42 def supports_transaction_isolation_levels? true end
Private Instance Methods
begin_transaction(conn, opts = OPTS)
click to toggle source
Use JDBC
connection's setAutoCommit to false to start transactions
Calls superclass method
# File lib/sequel/jdbc/as400.rb, line 53 def begin_transaction(conn, opts = OPTS) set_transaction_isolation(conn, opts) super end
disconnect_error?(exception, opts)
click to toggle source
Calls superclass method
# File lib/sequel/jdbc/as400.rb, line 48 def disconnect_error?(exception, opts) super || exception.message =~ /\A(The connection does not exist|Communication link failure)\./ end