com.khubla.pragmatach.plugin.mongodb.db
Class DBCollectionFactory

java.lang.Object
  extended by com.khubla.pragmatach.plugin.mongodb.db.DBCollectionFactory

public class DBCollectionFactory
extends Object

Author:
tom

Method Summary
 void dropDB()
          drop the DB, for testing purposes
<T> com.mongodb.DBCollection
getDBCollection(Class<T> clazz)
          get the DBCollection
static DBCollectionFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.