# File vapor/persistencemgr.rb, line 96 def get_object( oid ) raise TypeError unless oid.is_a? Integer ## check Object Cache first if @object_cache.include?( oid ) then return @object_cache[ oid ] end ## retrieve from backend attributes = @backend.get_tuple( oid ) if attributes.nil? then # object with oid not found return nil end ## determinde obj's klass klass = attributes['_type'] obj = klass.new ## save in Object Cache @object_cache[ oid ] = obj ## give it it's content load_object( obj, attributes ) obj.vapor_post_commit return obj end