Skip to content

Commit

Permalink
BUMP 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Nov 6, 2009
1 parent 624b506 commit 888db1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.xml
@@ -1,7 +1,7 @@
<?xml version='1.0'?> <?xml version='1.0'?>
<project name="MongoDB Java Driver" default="compile" basedir="."> <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="targetdir" location="target"/>
<property name="testdir" location="${targetdir}/test"/> <property name="testdir" location="${targetdir}/test"/>


Expand Down
8 changes: 8 additions & 0 deletions src/main/com/mongodb/Mongo.java
Expand Up @@ -37,6 +37,10 @@
*/ */
public class Mongo { public class Mongo {


public static final int MAJOR_VERSION = 1;
public static final int MINOR_VERSION = 0;


public Mongo() public Mongo()
throws UnknownHostException , MongoException { throws UnknownHostException , MongoException {
this( new DBAddress( "test" ) ); this( new DBAddress( "test" ) );
Expand Down Expand Up @@ -131,6 +135,10 @@ public void dropDatabase(String dbName)
getDB( dbName ).dropDatabase(); getDB( dbName ).dropDatabase();
} }


public String getVersion(){
return MAJOR_VERSION + "." + MINOR_VERSION;
}

final DBAddress _addr; final DBAddress _addr;
final List<DBAddress> _addrs; final List<DBAddress> _addrs;
} }

0 comments on commit 888db1e

Please sign in to comment.