Module: ODDB::Persistence

Includes:
ODBA::Persistable, PersistenceMethods
Included in:
ActiveAgentCommon, AddressSuggestion, AmbiguousPatinfo, Analysis::DetailInfo, Analysis::Group, Analysis::Position, AtcClass::DDD, Company, Composition, Config, CyP450, CyP450Connection, Doctor, Fachinfo, FachinfoDocument, Feedback, GenericGroup, Hospital, Invoice, InvoiceItem, Log, LogGroup, Narcotic, PackageCommon, Part, Patent, RegistrationCommon, SequenceCommon, SimpleLanguage, SlEntry, Slate, Sponsor, State::Drugs::TestActiveAgentState::StubActiveAgent, StubPersistenceDiffable, StubPersistenceNoOid, StubPersistenceOid, StubPersistenceOtherOid, StubPointerBar, StubPointerFap, Substance, TestGalenicForm::StubSequence, TestGalenicGroup::StubForm, TestUpdater::StubLog, Text::Chapter, View::Drugs::TestGalenicGroupSelect::StubGalenicGroup, TestPatinfo::StubSequence
Defined in:
src/util/persistence.rb,
test/test_util/oddbapp.rb,
test/test_util/persistence.rb,
test/test_model/registration.rb

Defined Under Namespace

Classes: CreateItem, InvalidPathError, PathError, Pointer, UninitializedPathError

Constant Summary

ODBA_PREDEFINE_SERIALIZABLE =
['@data_origins']

Instance Method Summary (collapse)

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #pointer_descr, #structural_ancestors, #undiffable?, #update_values

Instance Method Details

- (Persistence) initialize(*args)

A new instance of Persistence



103
104
105
106
107
# File 'src/util/persistence.rb', line 103

def initialize(*args)
  @revision = Time.now
  super
  set_oid()
end