File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =' 1.0' ?>
2
2
<project name =" MongoDB Java Driver" default =" compile" basedir =" ." >
3
3
4
- <property name =" version" value =" 0.11 " />
4
+ <property name =" version" value =" 1.0 " />
5
5
<property name =" targetdir" location =" target" />
6
6
<property name =" testdir" location =" ${ targetdir } /test" />
7
7
Original file line number Diff line number Diff line change 37
37
*/
38
38
public class Mongo {
39
39
40
+ public static final int MAJOR_VERSION = 1 ;
41
+ public static final int MINOR_VERSION = 0 ;
42
+
43
+
40
44
public Mongo ()
41
45
throws UnknownHostException , MongoException {
42
46
this ( new DBAddress ( "test" ) );
@@ -131,6 +135,10 @@ public void dropDatabase(String dbName)
131
135
getDB ( dbName ).dropDatabase ();
132
136
}
133
137
138
+ public String getVersion (){
139
+ return MAJOR_VERSION + "." + MINOR_VERSION ;
140
+ }
141
+
134
142
final DBAddress _addr ;
135
143
final List <DBAddress > _addrs ;
136
144
}
You can’t perform that action at this time.
0 commit comments