Module: DataObjects

### Home Classes Methods

### In Files

- lib/data_objects/command.rb
- lib/data_objects/connection.rb
- lib/data_objects/error.rb
- lib/data_objects/error/connection_error.rb
- lib/data_objects/error/data_error.rb
- lib/data_objects/error/integrity_error.rb
- lib/data_objects/error/sql_error.rb
- lib/data_objects/error/syntax_error.rb
- lib/data_objects/error/transaction_error.rb
- lib/data_objects/extension.rb
- lib/data_objects/logger.rb
- lib/data_objects/pooling.rb
- lib/data_objects/quoting.rb
- lib/data_objects/reader.rb
- lib/data_objects/result.rb
- lib/data_objects/transaction.rb
- lib/data_objects/uri.rb
- lib/data_objects/utilities.rb
- lib/data_objects/version.rb

### Namespace

- MODULE DataObjects::Logging
- MODULE DataObjects::Pooling
- MODULE DataObjects::Quoting
- MODULE DataObjects::Spec
- CLASS DataObjects::Command
- CLASS DataObjects::Connection
- CLASS DataObjects::ConnectionError
- CLASS DataObjects::DataError
- CLASS DataObjects::Error
- CLASS DataObjects::Extension
- CLASS DataObjects::IntegrityError
- CLASS DataObjects::Logger
- CLASS DataObjects::Reader
- CLASS DataObjects::Result
- CLASS DataObjects::SQLError
- CLASS DataObjects::SavePoint
- CLASS DataObjects::SyntaxError
- CLASS DataObjects::Transaction
- CLASS DataObjects::TransactionError
- CLASS DataObjects::URI

### Methods

- ::exiting
- ::exiting=
- ::full_const_get

### Class/Module Index

Quicksearch

- DataObjects
- DataObjects::Command
- DataObjects::Connection
- DataObjects::ConnectionError
- DataObjects::DataError
- DataObjects::Error
- DataObjects::Extension
- DataObjects::IntegrityError
- DataObjects::Logger
- DataObjects::Logging
- DataObjects::Pooling
- DataObjects::Pooling::InvalidResourceError
- DataObjects::Pooling::Pool
- DataObjects::Quoting
- DataObjects::Reader
- DataObjects::Result
- DataObjects::SQLError
- DataObjects::SavePoint
- DataObjects::Spec
- DataObjects::Spec::PendingHelpers
- DataObjects::SyntaxError
- DataObjects::Transaction
- DataObjects::TransactionError
- DataObjects::URI
- Extlib
- Extlib::ByteArray
- CustomTextType
- MyString
- Object
- SSLHelpers

No matching classes.

# DataObjects

This is here to remove DataObject's dependency on Extlib.

### Constants

VERSION

### Attributes

logger[RW]

The global logger for DataObjects

### Public Class Methods

exiting() click to toggle source

    # File lib/data_objects/pooling.rb, line 15
    def self.exiting
      return @exiting if defined?(@exiting)
      @exiting = false
    end

exiting=(bool) click to toggle source

    # File lib/data_objects/pooling.rb, line 6
    def self.exiting= bool
      if bool && DataObjects.const_defined?('Pooling')
        if DataObjects::Pooling.scavenger?
          DataObjects::Pooling.scavenger.wakeup
        end
      end
      @exiting = true
    end

full_const_get(name) click to toggle source

@param name<String> The name of the constant to get, e.g. "Merb::Router".

@return <Object> The constant corresponding to the name.

    # File lib/data_objects/utilities.rb, line 7
    def self.full_const_get(name)
      list = name.split("::")
      list.shift if list.first.nil? || list.first.strip.empty?
      obj = ::Object
      list.each do |x|
        # This is required because const_get tries to look for constants in the
        # ancestor chain, but we only want constants that are HERE
        obj = obj.const_defined?(x) ? obj.const_get(x) : obj.const_missing(x)
      end
      obj
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.