Class: Lafcadio::BinaryField

Inherits:
ObjectField show all
Defined in:
lib/lafcadio/objectField.rb

Overview

BinaryField stores a string value and expects to store its value in a binary field in the database.

Instance Attribute Summary

Attributes inherited from ObjectField

#db_field_name, #domain_class, #mock_value, #name, #not_nil

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ObjectField

#<=>, create_from_xml, create_with_args, creation_parameters, #db_column, #db_will_automatically_write?, #default_mock_value, #initialize, #prev_value, #process_before_verify, #value_from_sql, #verify, #verify_non_nil_value

Constructor Details

This class inherits a constructor from Lafcadio::ObjectField

Class Method Details

.value_typeObject

:nodoc:



154
155
156
# File 'lib/lafcadio/objectField.rb', line 154

def self.value_type #:nodoc:
	String
end

Instance Method Details

#bind_write?Boolean

:nodoc:

Returns:

  • (Boolean)


158
# File 'lib/lafcadio/objectField.rb', line 158

def bind_write?; true; end

#value_for_sql(value) ⇒ Object



160
# File 'lib/lafcadio/objectField.rb', line 160

def value_for_sql(value); "?"; end