KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > tools > mapping > reversedb2 > Main


1 package org.apache.ojb.tools.mapping.reversedb2;
2
3 import org.apache.ojb.tools.mapping.reversedb2.gui.*;
4
5 /* Copyright 2002-2005 The Apache Software Foundation
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */

19
20 /**
21  *
22  * @author <a HREF="mailto:bfl@florianbruckner.com">Florian Bruckner</a>
23  * @version $Id: Main.java,v 1.1.2.1 2005/12/21 22:32:04 tomdz Exp $
24  */

25 public class Main
26 {
27     public static final String JavaDoc PROPERTY_JDBCDRIVER = "JDBCDriver";
28     public static final String JavaDoc PROPERTY_JDBCURL = "JDBCUrl";
29     public static final String JavaDoc PROPERTY_JDBCUSER = "JDBCUser";
30     public static final String JavaDoc PROPERTY_MAINFRAME_WIDTH = "MainframeWidth";
31     public static final String JavaDoc PROPERTY_MAINFRAME_HEIGHT = "MainframeHeight";
32     public static final String JavaDoc PROPERTY_MAINFRAME_POSX = "MainframePosX";
33     public static final String JavaDoc PROPERTY_MAINFRAME_POSY = "MainframePosY";
34     
35     private ExtendedProperties reverseDbProperties = new ExtendedProperties("ReverseDb2.properties");
36     
37     private static Main singleton = new Main();
38     
39     public static ExtendedProperties getProperties()
40     {
41         return singleton.reverseDbProperties;
42     }
43     
44     /**
45      * @param args the command line arguments
46      */

47     public static void main(String JavaDoc[] args)
48     {
49         new JFrmMain().show();
50     }
51     
52     /** Creates a new instance of Main */
53     private Main()
54     {
55     }
56     
57 }
58
Popular Tags