Class: Lafcadio::BlobField

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

Overview

BlobField stores a string value and expects to store its value in a BLOB field in the database.

Instance Attribute Summary collapse

Attributes inherited from ObjectField

#dbFieldName, #default, #defaultFieldName, #hideDisplay, #hideLabel, #name, #notNull, #notUniqueMsg, #objectType, #unique, #writeOnce

Instance Method Summary collapse

Methods inherited from ObjectField

#<=>, #dbWillAutomaticallyWrite, #db_table_and_field_name, #englishName, #firstTime, #initialize, instantiateFromXml, instantiateWithParameters, instantiationParameters, #nameForSQL, #nullErrorMsg, #prevValue, #processBeforeVerify, #valueFromSQL, valueType, #verify, #verifyUniqueness

Constructor Details

This class inherits a constructor from Lafcadio::ObjectField

Instance Attribute Details

#sizeObject

Returns the value of attribute size.



8
9
10
# File 'lib/lafcadio/objectField.rb', line 8

def size
  @size
end

Instance Method Details

#bind_write?Boolean

:nodoc:

Returns:

  • (Boolean)


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

def bind_write?; true; end

#valueForSQL(value) ⇒ Object

:nodoc:



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

def valueForSQL(value); "?"; end