View Javadoc

1   package org.apache.onami.configuration;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import javax.inject.Inject;
23  import javax.inject.Named;
24  
25  /**
26   *
27   */
28  public final class JDBCConfiguration
29  {
30  
31      @Inject
32      @Named( "JDBC.driver" )
33      private String driver;
34  
35      @Inject
36      @Named( "JDBC.url" )
37      private String url;
38  
39      @Inject
40      @Named( "JDBC.username" )
41      private String username;
42  
43      @Inject
44      @Named( "JDBC.password" )
45      private String password;
46  
47      @Inject
48      @Named( "JDBC.autoCommit" )
49      private boolean autoCommit;
50  
51      public String getDriver()
52      {
53          return driver;
54      }
55  
56      public void setDriver( String driver )
57      {
58          this.driver = driver;
59      }
60  
61      public String getUrl()
62      {
63          return url;
64      }
65  
66      public void setUrl( String url )
67      {
68          this.url = url;
69      }
70  
71      public String getUsername()
72      {
73          return username;
74      }
75  
76      public void setUsername( String username )
77      {
78          this.username = username;
79      }
80  
81      public String getPassword()
82      {
83          return password;
84      }
85  
86      public void setPassword( String password )
87      {
88          this.password = password;
89      }
90  
91      public boolean isAutoCommit()
92      {
93          return autoCommit;
94      }
95  
96      public void setAutoCommit( boolean autoCommit )
97      {
98          this.autoCommit = autoCommit;
99      }
100 
101 }