package me.hfox.morphix.connector;

import me.hfox.morphix.query.Query;

/**
 * Created by Harry on 27/11/2017.
 *
 * Connector interface used by the API to perform queries on the database
 */
public interface MorphixConnector {

    void connect();

    void disconnect();

    <T> Query<T> createQuery(Class<T> cls);

    <T> Query<T> createQuery(Class<T> cls, String collection);

}

@@ -231,93 +231,759 @@
     
-void connect();%0A%0A    void disconnect();%0A%0A    %3CT%3E Query%3CT%3E createQuery(Class%3CT%3E cls);%0A
+/**%0A     * Connect to the database%0A     */%0A    void connect();%0A%0A    /**%0A     * Disconnect from the database%0A     */%0A    void disconnect();%0A%0A    /**%0A     * Query the database using the specified class as a collection and result reference%0A     * @param cls The expected resulting class, also used to find the collection%0A     * @param %3CT%3E The expected resulting type%0A     * @return A query based on the given class%0A     */%0A    %3CT%3E Query%3CT%3E createQuery(Class%3CT%3E cls);%0A%0A    /**%0A     * Query the given collection with the specified class as an expected result%0A     * @param cls The expected resulting class%0A     * @param collection The collection to query%0A     * @param %3CT%3E The expected resulting type%0A     * @return A query based on the given class%0A     */
 %0A   

Add documentation to MorphixConnector