com.brettonw.db.BagDbInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bag-mongo Show documentation
Show all versions of bag-mongo Show documentation
Bag Mongo provides an interface for putting and fetching bags directly in MongoDB.
package com.brettonw.db;
import com.brettonw.bag.BagArray;
import com.brettonw.bag.BagObject;
public interface BagDbInterface extends AutoCloseable {
/**
*
* @param bagObject
* @return
*/
BagDbInterface put (BagObject bagObject);
/**
*
* @param bagArray
* @return
*/
BagDbInterface putMany (BagArray bagArray);
/**
*
* @param queryJson
* @return
*/
BagObject get (String queryJson);
/**
*
* @param queryJson
* @return
*/
BagArray getMany (String queryJson);
/**
*
* @return
*/
BagArray getAll ();
/**
*
* @param queryJson
* @return
*/
BagDbInterface delete (String queryJson);
/**
*
* @param queryJson
* @return
*/
BagDbInterface deleteMany (String queryJson);
/**
*
* @return
*/
BagDbInterface deleteAll ();
/**
*
*/
void drop () throws Exception;
/**
*
* @return
*/
long getCount ();
/**
*
* @return
*/
String getName ();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy