JADE is an advanced software platform that has an integrated software development environment, a language, an object manager, and a high performance database.

JadeScript to Add Books

       

Instructions

  1. Select the code on the left by clicking and dragging.
  2. Copy the code to the clipboard (CTRL-C).
  3. Select all the code in the code window (CTRL-A).
  4. Paste the code from the clipboard (CTRL-V).
  5. Select the Methods | Compile Method command.
    The status line in the Class Browser displays
    «Compilation complete - no errors»
  6. Select the Jade | Execute it menu command.
    The status line will then display the message
    «Execution complete»

Troubleshooting

If your code did not compile, an error message displays on the status line. Click an error message below for help.

Error 6050 - Cannot change name

Error 6090 - Cannot access protected property or method

Browse the Books?

The message «Execution complete» implies there are now two Book objects in the database.

Next you will examine the Book objects by inspecting the database.

createBooks();

vars
    bk : Book;  // bk is a variable of type Book
                // lowercase first letter for variable name
                // uppercase first letter for class name

begin
    beginTransaction;   // required for database changes

    // create a Book object and set its properties
    create bk;
    bk.author := "Bevan J Clarke";
    bk.isbn := "1877267066";
    bk.title := "An introduction to object-oriented"
                & " systems development with JADE";

    // create another Book object and set its properties
    create bk;
    bk.author := "David A Taylor";
    bk.isbn := "0201309947";
    bk.title := "Object Technology: A Manager's Guide";

    commitTransaction;  // confirm update and release locks
end;

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Contents
 

For maximum reliability, security and performance of your JADE solution, JADE Care24 is our fully comprehensive systems management offering.