01: /*
02: * Copyright 2002 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: DatabaseProperties.java,v 1.2 2002/10/17 21:00:51 pierreg0 Exp $
09: */
10:
11: package com.triactive.jdo;
12:
13: /**
14: * The system properties used to define the database connection.
15: *
16: * @author <a href="mailto:kgrizzle@triactive.com">Kelly Grizzle</a>
17: * @version $Revision: 1.2 $
18: */
19:
20: public interface DatabaseProperties {
21: /**
22: * The system property containing the name of the JDBC driver class to use
23: * for all tests.
24: */
25: public static final String DRIVER_PROPERTY = "database.driver";
26:
27: /**
28: * The system property containing the JDBC driver URL to use for all tests.
29: */
30: public static final String URL_PROPERTY = "database.url";
31:
32: /**
33: * The system property containing the database user name to use for the
34: * test.
35: */
36: public static final String USER_PROPERTY = "database.user";
37:
38: /**
39: * The system property containing the database password to use for all
40: * tests.
41: */
42: public static final String PASSWORD_PROPERTY = "database.password";
43:
44: /** The name of the JDBC driver class to use for all tests. */
45: public static final String dbDriver = System
46: .getProperty(DRIVER_PROPERTY);
47:
48: /** The JDBC driver URL to use for all tests. */
49: public static final String dbURL = System.getProperty(URL_PROPERTY);
50:
51: /** The database user name to use for all tests. */
52: public static final String dbUser = System
53: .getProperty(USER_PROPERTY);
54:
55: /** The database password to use for all tests. */
56: public static final String dbPassword = System
57: .getProperty(PASSWORD_PROPERTY);
58: }
|