|
new
|
The new function creates a new Object Repository, associates the Object Repository
with a database archive file, and allows for Brick encryption and other options. The styles of Object Repository creation
are dependent upon the number and types of the arguments passed to the new function.
The new function is used to create an Object Repository and allows the user to specify creation options.
(new ObjectRepository: fileName clear: key: code buffer: count)
The newly created ObjectRepository, or the librarian Lambda.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ObjectRepository_new_014
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types ObjectRepository: Mandatory argument specifying the type of object to create: ObjectRepository. Symbol filename The name of the database archive file to be associated with the ObjectRepository.
If no such file exists, a new database archive file will be created. Text String clear: [Optional]. If the keyword clear: is present, the database archive file will be cleared immediately
before any further processing. If no such file exists, a new database archive file will
be created. Symbol key: code [Optional]. If the keyword key: is present and it is followed by a number, the number is treated
as an encryption code to use in record encrypting the database archive file. This same encryption key code must
be used in all future references to the ObjectRepository. If the keyword key: is followed
by the Boolean value true, the database archive file will be compressed when saved. If the
Boolean value false is present, the archive file will not be compressed. The same compression key code must be
used in all future references to the ObjectRepository. WARNING: If the ObjectRepository
is later opened with a different key value from was specified during file creation, as a
security measure, the ObjectRepository will be made unrecoverable. Symbol buffer: count [Optional]. If the key word buffer: is present, the numeric buffered object {count} must follow. The ObjectRepository will remember the
last {count} objects retrieved to minimize disk access when required. As same objects are retrieved, the buffered object is returned and
no disk access takes place. When a new object is retrieved, the oldest buffered object
is thrown away to make room for the newly retrieved object. Symbol
Returns:
Examples
Argument Types
How do I contact the AIS team?