| java.lang.Object simpleorm.examples.ADemo
ADemo | public class ADemo implements SConstants(Code) | | START HERE -- this class provides basic examples of the
main SimpleORM features. It demonstrates simple record
manipulations including non-identifying foreign keys.
|
Method Summary | |
static void | assertTrue(boolean cond) | static void | deptTest() Basic examples/tests not involving foreign keys. | static void | empTest() Examples non identifying foreign key relationship
from Employee to Department, and from Employee to
Employee.Manager. | public static void | main(String[] argv) | static void | selectDepartments(int total) Query all the departments with Budget > 10000 and check that the
total budget == total. | static void | testInit() Prepare for tests, Delete old data. |
assertTrue | static void assertTrue(boolean cond)(Code) | | |
deptTest | static void deptTest() throws Exception(Code) | | Basic examples/tests not involving foreign keys.
|
empTest | static void empTest()(Code) | | Examples non identifying foreign key relationship
from Employee to Department, and from Employee to
Employee.Manager.
|
selectDepartments | static void selectDepartments(int total)(Code) | | Query all the departments with Budget > 10000 and check that the
total budget == total.
|
testInit | static void testInit() throws Exception(Code) | | Prepare for tests, Delete old data.
|
|
|