Package dev.morphia.query
Class LegacyQueryFactory
- java.lang.Object
-
- dev.morphia.query.LegacyQueryFactory
-
- All Implemented Interfaces:
QueryFactory
@Deprecated public class LegacyQueryFactory extends Object implements QueryFactory
Deprecated.A implementation ofQueryFactory
to createLegacyQuery
instances.
-
-
Constructor Summary
Constructors Constructor Description LegacyQueryFactory()
Deprecated.Logs a message stating this (obscured/hidden) class is going away and to read the website for steps on how to migrate away from it.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> Query<T>
createQuery(Datastore datastore, Class<T> type, Document seed)
Deprecated.Creates and returns aQuery
for the given arguments.<T> Query<T>
createQuery(Datastore datastore, String collection, Class<T> type)
Deprecated.Creates and returns aQuery
for the given arguments.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.morphia.query.QueryFactory
createQuery, createQuery
-
-
-
-
Method Detail
-
createQuery
public <T> Query<T> createQuery(Datastore datastore, Class<T> type, @Nullable Document seed)
Deprecated.Description copied from interface:QueryFactory
Creates and returns aQuery
for the given arguments. The last argument is optional and may benull
.- Specified by:
createQuery
in interfaceQueryFactory
- Type Parameters:
T
- the type of the result- Parameters:
datastore
- the Datastore to usetype
- the type of the resultseed
- the Document containing the query structure- Returns:
- the query
-
createQuery
public <T> Query<T> createQuery(Datastore datastore, String collection, Class<T> type)
Deprecated.Description copied from interface:QueryFactory
Creates and returns aQuery
for the given arguments. Default implementations of this method will simply delegate toQueryFactory.createQuery(Datastore, Class)
with the last argument beingnull
.- Specified by:
createQuery
in interfaceQueryFactory
- Type Parameters:
T
- the type of the result- Parameters:
datastore
- the Datastore to usecollection
- the actual collection to query. This overrides any mapped on collection on type.type
- the type of the result- Returns:
- the query
- See Also:
QueryFactory.createQuery(Datastore, Class)
-
-