com.khubla.pragmatach.plugin.mongodb.db
Class DBCollectionFactory
java.lang.Object
com.khubla.pragmatach.plugin.mongodb.db.DBCollectionFactory
public class DBCollectionFactory
- extends Object
- Author:
- tom
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static DBCollectionFactory getInstance()
dropDB
public void dropDB()
throws PragmatachException
- drop the DB, for testing purposes
- Throws:
PragmatachException
getDBCollection
public <T> com.mongodb.DBCollection getDBCollection(Class<T> clazz)
- get the DBCollection
Copyright © 2014 khubla.com. All rights reserved.