Skip to content

Commit 888db1e

Browse files
committed
BUMP 1.0
1 parent 624b506 commit 888db1e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version='1.0'?>
22
<project name="MongoDB Java Driver" default="compile" basedir=".">
33

4-
<property name="version" value="0.11"/>
4+
<property name="version" value="1.0"/>
55
<property name="targetdir" location="target"/>
66
<property name="testdir" location="${targetdir}/test"/>
77

src/main/com/mongodb/Mongo.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
*/
3838
public class Mongo {
3939

40+
public static final int MAJOR_VERSION = 1;
41+
public static final int MINOR_VERSION = 0;
42+
43+
4044
public Mongo()
4145
throws UnknownHostException , MongoException {
4246
this( new DBAddress( "test" ) );
@@ -131,6 +135,10 @@ public void dropDatabase(String dbName)
131135
getDB( dbName ).dropDatabase();
132136
}
133137

138+
public String getVersion(){
139+
return MAJOR_VERSION + "." + MINOR_VERSION;
140+
}
141+
134142
final DBAddress _addr;
135143
final List<DBAddress> _addrs;
136144
}

0 commit comments

Comments
 (0)