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

org.mongodb.morphia.DAO Maven / Gradle / Ivy

package org.mongodb.morphia;


import com.mongodb.MongoClient;
import org.mongodb.morphia.dao.BasicDAO;


/**
 * Provides a basic DAO for use in applications
 *
 * @param  the entity type
 * @param  the key type
 * @deprecated use org.mongodb.morphia.dao.BasicDAO
 */
@Deprecated
public class DAO extends BasicDAO {
    /**
     * @param entityClass the type to use with this DAO
     * @param mongoClient the client to use to talk to the database
     * @param morphia     the morphia instance to use
     * @param dbName      the database to connect to
     */
    public DAO(final Class entityClass, final MongoClient mongoClient, final Morphia morphia, final String dbName) {
        super(entityClass, mongoClient, morphia, dbName);
    }

    /**
     * @param entityClass the type to use with this DAO
     * @param ds          the datastore to use
     */
    public DAO(final Class entityClass, final Datastore ds) {
        super(entityClass, ds);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy