Package dev.morphia

Class DAO<T,​K>

  • Type Parameters:
    T - the entity type
    K - the key type
    All Implemented Interfaces:
    DAO<T,​K>

    @Deprecated
    public class DAO<T,​K>
    extends BasicDAO<T,​K>
    Deprecated.
    use dev.morphia.dao.BasicDAO
    Provides a basic DAO for use in applications
    • Constructor Detail

      • DAO

        public DAO​(java.lang.Class<T> entityClass,
                   com.mongodb.MongoClient mongoClient,
                   Morphia morphia,
                   java.lang.String dbName)
        Deprecated.
        Parameters:
        entityClass - the type to use with this DAO
        mongoClient - the client to use to talk to the database
        morphia - the morphia instance to use
        dbName - the database to connect to
      • DAO

        public DAO​(java.lang.Class<T> entityClass,
                   Datastore ds)
        Deprecated.
        Parameters:
        entityClass - the type to use with this DAO
        ds - the datastore to use