Example ObjectRepository loadRepository 001

 

 

Description

This example shows the loadRepository function load the defined Object Repository into RAM memory.

 

Details

(setq gor (new ObjectRepository: "myarchive.odb")) Returns: #<ObjectRepository 197815>
(setq gor["one"] "Hello World") Returns: #<ObjectRepository 197815>
(setq gor["two"] "Goodbye World") Returns: #<ObjectRepository 197815>
gor["one"] Returns: Hello World
gor["two"] Returns: Goodbye World

The contents of the Object Repository are cleared.

(setq memGor (loadRepository gor)) Returns: #<Directory 123456>
memGor["one"] Returns: Hello World
memGor["two"] Returns: Goodbye World

Notes and Hints

After the loadRepository is executed, the entire contents of the repository have been loaded off the disk and stored in memory. The Directory in memGor contains each retrieval key and its associated loaded object.

 

Related Examples

Here are examples of the loadRepository function at work.

ObjectRepository loadRepository 001

 

Function Links

Here is the link to the current function used in this example.

loadRepository

Here are a number of links to other related functions.

saveRepository(ObjectRepository)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

ObjectRepository Directory

Here are a number of links to examples having similar argument types.

Dictionary isDictionary 001 Directory addMethod 006 Directory cdr 004 Directory compare 005
Directory compareEQ 005 Directory compareGE 005 Directory compareGT 005 Directory compareLE 005
Directory compareLT 005 Directory compareNE 005 Directory comparison functions 005 Directory copy 003
Directory count 003 Directory defMethod 007 Directory delete 005 Directory delete 006
Directory insert 003 Directory inside 003 Directory isAtom 003 Directory isBound 003
Directory isDirectory 001 Directory isEqual 003 Directory isIdentical 003 Directory isObject 005
Directory isType 007 Directory length 006 Directory map 003 Directory mapc 003
Directory member 002 Directory member 003 Directory methodsOf 008 Directory new 005
Directory new 006 Directory objectToDirectory 001 Directory objectToDirectory 002 Directory objectToDirectory 003
Directory objectToDirectory 004 Directory ref 010 Directory ref 011 Directory ref 012
Directory refAttributes 003 Directory refValues 003 Directory remove 003 Directory resize 003
Directory send 005 Directory setAttributes 003 Directory setCdr 003 Directory setq 010
Directory setq 011 Directory sizeof 005 Directory sort 007 Directory sort 008
Directory sort 009 Directory type 008 Directory vectorDelete 001 ObjectRepository abortTransaction 001
ObjectRepository addMethod 026 ObjectRepository attachLibrarian 001 ObjectRepository beginTransaction 001 ObjectRepository checkPointTransaction 001
ObjectRepository clear 002 ObjectRepository commitTransaction 001 ObjectRepository compare 021 ObjectRepository compare 022
ObjectRepository compareEQ 021 ObjectRepository compareEQ 022 ObjectRepository compareGE 021 ObjectRepository compareGE 022
ObjectRepository compareGT 021 ObjectRepository compareGT 022 ObjectRepository compareLE 021 ObjectRepository compareLE 022
ObjectRepository compareLT 021 ObjectRepository compareLT 022 ObjectRepository compareNE 021 ObjectRepository compareNE 022
ObjectRepository comparison 021 ObjectRepository comparison 022 ObjectRepository defmethod 023 ObjectRepository delete 013
ObjectRepository detachLibrarian 001 ObjectRepository exportTab 001 ObjectRepository importTab 001 ObjectRepository inspect 002
ObjectRepository isIdentical 019 ObjectRepository isImmediate 001 ObjectRepository length 016 ObjectRepository loadRepository 001
ObjectRepository methodsOf 023 ObjectRepository new 014 ObjectRepository ref 030 ObjectRepository ref 031
ObjectRepository ref 032 ObjectRepository ref 033 ObjectRepository ref 034 ObjectRepository refLibrarian 001
ObjectRepository rename 001 ObjectRepository saveImmediate 001 ObjectRepository saveRepository 001 ObjectRepository send 026
ObjectRepository setf 001 ObjectRepository setf 002 ObjectRepository setq 027 ObjectRepository sizeof 027
ObjectRepository type 024 String isChar 001 String isCharAlphabetic 001 String isCharAlphanumeric 001
String isCharLowercase 001 String isCharName 001 String isCharNumeric 001 String isCharUppercase 001
String isCharWhitespace 001 String isEqual 001 String isEqual 002 String isObject 001
String isString 001 String isText 001 String isType 001 String isType 002
String isType 003 String parse 001 String sizeof 001 String type 001
Symbol isCharName 002 Symbol isCharNumeric 002 Symbol isObject 002 Symbol isSymbol 001
Symbol isType 004 Symbol sizeof 002 Symbol type 002

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.