Ejemplo n.º 1
0
 protected DocumentDao(String collectionName) throws InvalidCollectionException {
   super(collectionName);
   collDao = CollectionDao.getInstance();
   try {
     if (!collDao.existsCollection(collectionName))
       throw new InvalidCollectionException(
           "The collection " + collectionName + " does not exists");
   } catch (SqlInjectionException e) {
     throw new InvalidCollectionException(e);
   }
 }