KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > DatabaseProperties


1 /*
2  * Copyright 2002 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: DatabaseProperties.java,v 1.2 2002/10/17 21:00:51 pierreg0 Exp $
9  */

10
11 package com.triactive.jdo;
12
13
14 /**
15  * The system properties used to define the database connection.
16  *
17  * @author <a HREF="mailto:kgrizzle@triactive.com">Kelly Grizzle</a>
18  * @version $Revision: 1.2 $
19  */

20
21 public interface DatabaseProperties
22 {
23     /**
24      * The system property containing the name of the JDBC driver class to use
25      * for all tests.
26      */

27     public static final String JavaDoc DRIVER_PROPERTY = "database.driver";
28
29     /**
30      * The system property containing the JDBC driver URL to use for all tests.
31      */

32     public static final String JavaDoc URL_PROPERTY = "database.url";
33
34     /**
35      * The system property containing the database user name to use for the
36      * test.
37      */

38     public static final String JavaDoc USER_PROPERTY = "database.user";
39
40     /**
41      * The system property containing the database password to use for all
42      * tests.
43      */

44     public static final String JavaDoc PASSWORD_PROPERTY = "database.password";
45
46
47     /** The name of the JDBC driver class to use for all tests. */
48     public static final String JavaDoc dbDriver = System.getProperty(DRIVER_PROPERTY);
49
50     /** The JDBC driver URL to use for all tests. */
51     public static final String JavaDoc dbURL = System.getProperty(URL_PROPERTY);
52
53     /** The database user name to use for all tests. */
54     public static final String JavaDoc dbUser = System.getProperty(USER_PROPERTY);
55
56     /** The database password to use for all tests. */
57     public static final String JavaDoc dbPassword = System.getProperty(PASSWORD_PROPERTY);
58 }
59
Popular Tags