Module: MarkLogic::Persistence

Extended by:
ActiveSupport::Concern
Includes:
Loggable
Included in:
AppServer, Application, Database, Forest
Defined in:
lib/marklogic/persistence.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from Loggable

#default_logger, #logger, #logger=, #rails_logger

Instance Method Details

#admin_connectionObject


44
45
46
# File 'lib/marklogic/persistence.rb', line 44

def admin_connection
  @admin_connection ||= MarkLogic::Connection.admin_connection
end

#admin_connection=(admin_conn) ⇒ Object


40
41
42
# File 'lib/marklogic/persistence.rb', line 40

def admin_connection=(admin_conn)
  @admin_connection = admin_conn if admin_conn
end

#connectionObject


28
29
30
# File 'lib/marklogic/persistence.rb', line 28

def connection
  @connection
end

#connection=(conn) ⇒ Object


24
25
26
# File 'lib/marklogic/persistence.rb', line 24

def connection=(conn)
  @connection = conn if conn
end

#manage_connectionObject


36
37
38
# File 'lib/marklogic/persistence.rb', line 36

def manage_connection
  @manage_connection ||= MarkLogic::Connection.manage_connection
end

#manage_connection=(manage_conn) ⇒ Object


32
33
34
# File 'lib/marklogic/persistence.rb', line 32

def manage_connection=(manage_conn)
  @manage_connection = manage_conn if manage_conn
end