All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.brettonw.db.BagDbInterface Maven / Gradle / Ivy

Go to download

Bag Mongo provides an interface for putting and fetching bags directly in MongoDB.

There is a newer version: 2.1.0
Show newest version
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