@classes = $session->getClasses( )

The getClasses() function gets the list of classes present in the system.

The following code fragment displays the list of all instances of all classes in the database.

 foreach $class ($session->getClasses()) {
  foreach ($session->getClassInstances($class)) {
   print "${class}::$_\n”;
  }
 }