simpleorm.examples |
SimpleORM examples and test cases. The ant task
ant testall
runs all the regression tests except the SwingTest and the J2EE tests.
Start with ADemo, and then look at the other examples as you need to.
|
Java Source File Name | Type | Comment |
ADemo.java | Class | START HERE -- this class provides basic examples of the
main SimpleORM features. |
ATestAll.java | Class | Just runs all the other tests, one after the other. |
BasicTests.java | Class | Similar to ADemo tests, but with more assertions. |
Benchmarks.java | Class | Basic benchmarks that compare SimpleORM performance to raw JDBC.
No significant degedation has been found. |
ColumnCacheTest.java | Class | Tests and demonstrates selective column queries, locking and
flushing details as well as derived columns and joins. |
CreateDBTest.java | Class | Creates the createdb.sql script (Not necessary to run tests).
This test creates temp/createdb.sql which contains DROP and CREATE
TABLE statments that can recreate the tables in the given
database. |
DataTypesTest.java | Class | This test class uses all data types including Dates and Times. |
Department.java | Class | |
Employee.java | Class | |
GeneratedKeyTest.java | Class | Demonstrated Generated Keys. |
IdentFKeysTest.java | Class | Tests and demonstrates Identifying Foreign Keys. |
LongTransactionTest.java | Class | Demonstrates Cache/locking issues, in particular a long, user interaction
transaction (optimistic locking), thread test.
An Employee record is read, and then detatched. |
Payroll.java | Class | This test class defines the Payroll tables as static inner tables
which demonstrate identifying foreign keys. |
Project.java | Class | This test class defines the Project table. |
ReferenceTest.java | Class | This provides a basic test of foreign key references and in
particular identifying foreign keys. |
SwingTest.java | Class | Demo of SimpleORM in a Swing Environment. |
TestUte.java | Class | Utilities used by all the test cases. |
ValidationTest.java | Class | Tests validation, OnFieldValidate etc. |