Class: Lafcadio::TimeStampField

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

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from ObjectField

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

Instance Method Summary collapse

Methods inherited from DateTimeField

mock_value, #value_for_sql, #value_from_sql

Methods inherited from ObjectField

#<=>, #bind_write?, create_from_xml, create_with_args, creation_parameters, #db_column, #default_mock_value, #prev_value, #process_before_verify, #value_for_sql, #value_from_sql, value_type, #verify, #verify_non_nil_value

Constructor Details

#initialize(domain_class, name = 'timeStamp') ⇒ TimeStampField

Returns a new instance of TimeStampField.



576
577
578
579
# File 'lib/lafcadio/objectField.rb', line 576

def initialize( domain_class, name = 'timeStamp' )
	super( domain_class, name )
	@not_nil = false
end

Instance Method Details

#db_will_automatically_write?Boolean

Returns:

  • (Boolean)


581
582
583
# File 'lib/lafcadio/objectField.rb', line 581

def db_will_automatically_write?
	true
end