Class: Lafcadio::BlobField
- Inherits:
-
ObjectField
- Object
- ObjectField
- Lafcadio::BlobField
- 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
-
#size ⇒ Object
Returns the value of attribute size.
Attributes inherited from ObjectField
#dbFieldName, #default, #defaultFieldName, #hideDisplay, #hideLabel, #name, #notNull, #notUniqueMsg, #objectType, #unique, #writeOnce
Instance Method Summary collapse
-
#bind_write? ⇒ Boolean
:nodoc:.
-
#valueForSQL(value) ⇒ Object
:nodoc:.
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
#size ⇒ Object
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:
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 |