KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > modfact > jmi > ps > TestPersistance


1 package org.objectweb.modfact.jmi.ps;
2 import java.sql.SQLException JavaDoc;
3
4 /**
5  * @author gregory
6  *
7  * Test basic features of the Persistant service
8  *
9  */

10 public class TestPersistance {
11
12     public static void main(String JavaDoc[] args) throws ClassNotFoundException JavaDoc, SQLException JavaDoc {
13         
14         PersistantService pms = new PersistantService();
15
16         
17
18         PersistantHelper.printFreeMemory("before programm");
19
20         PersistantHelper ph = new PersistantHelper();
21
22         //reading one meta model
23
pms.load("THEXMLMODEL");
24         PersistantHelper.printFreeMemory("after loadind the XML etamodel");
25         
26         //instanciation of this metamodel
27

28
29         //writing the XML metamodel
30
pms.store("THEXMLMODEL");
31         
32         PersistantHelper.printFreeMemory("after writing the metamodel XML MODEL");
33
34     }
35 }
36
Popular Tags