Permalink
Browse files

BUMP 1.0

  • Loading branch information...
1 parent 624b506 commit 888db1e9560a8f406cbb8baac2a8d73c4e1c2ef0 @erh erh committed Nov 6, 2009
Showing with 9 additions and 1 deletion.
  1. +1 −1 build.xml
  2. +8 −0 src/main/com/mongodb/Mongo.java
View
@@ -1,7 +1,7 @@
<?xml version='1.0'?>
<project name="MongoDB Java Driver" default="compile" basedir=".">
- <property name="version" value="0.11"/>
+ <property name="version" value="1.0"/>
<property name="targetdir" location="target"/>
<property name="testdir" location="${targetdir}/test"/>
@@ -37,6 +37,10 @@
*/
public class Mongo {
+ public static final int MAJOR_VERSION = 1;
+ public static final int MINOR_VERSION = 0;
+
+
public Mongo()
throws UnknownHostException , MongoException {
this( new DBAddress( "test" ) );
@@ -131,6 +135,10 @@ public void dropDatabase(String dbName)
getDB( dbName ).dropDatabase();
}
+ public String getVersion(){
+ return MAJOR_VERSION + "." + MINOR_VERSION;
+ }
+
final DBAddress _addr;
final List<DBAddress> _addrs;
}

0 comments on commit 888db1e

Please sign in to comment.