View Javadoc

1   /***
2    * Copyright 2009 ATG DUST Project Licensed under the Apache License, Version
3    * 2.0 (the "License"); you may not use this file except in compliance with the
4    * License. You may obtain a copy of the License at
5    * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
6    * or agreed to in writing, software distributed under the License is
7    * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8    * KIND, either express or implied. See the License for the specific language
9    * governing permissions and limitations under the License.
10   */
11  
12  package atg.service.jdbc;
13  
14  
15  /***
16   * Base class for InitializingDataSource's common functionaliy.
17   * 
18   * @author adamb
19   * @version $Id:$
20   */
21  
22  public class InitializingDataSourceBase extends FakeXADataSource {
23  
24  	public String mDatabaseName = "testdb";
25  
26  	/***
27  	   * Returns the name of the database to use with HSQLDB. The defaut name is
28  	   * "testdb"
29  	   * 
30  	   * @return
31  	   */
32  	public String getDatabaseName() {
33  	    return mDatabaseName;
34  	  }
35  
36  	/***
37  	   * Sets the name of the database to be used with HSQLDB
38  	   * 
39  	   * @param pName
40  	   *          The name of the HSQLDB database to be created when this datasource
41  	   *          starts up.
42  	   */
43  	public void setDatabaseName(String pName) {
44  	    mDatabaseName = pName;
45  	  }
46  
47  }