| Package | Description |
|---|---|
| de.caluga.morphium | |
| de.caluga.morphium.aggregation | |
| de.caluga.morphium.async | |
| de.caluga.morphium.bulk | |
| de.caluga.morphium.cache | |
| de.caluga.morphium.query | |
| de.caluga.morphium.writer |
| Modifier and Type | Method and Description |
|---|---|
<T> Query<T> |
Morphium.createQueryFor(Class<? extends T> type) |
Query<T> |
DAO.getQuery() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Query> |
MorphiumConfig.getQueryClass() |
| Modifier and Type | Method and Description |
|---|---|
void |
Morphium.dec(Query<?> query,
Enum field,
double amount) |
void |
Morphium.dec(Query<?> query,
Enum field,
double amount,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.dec(Query<?> query,
String field,
double amount) |
void |
Morphium.dec(Query<?> query,
String field,
double amount,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.delete(Query<T> o) |
<T> void |
Morphium.delete(Query<T> o,
AsyncOperationCallback<T> callback) |
List<Object> |
Morphium.distinct(Enum key,
Query q)
returns a distinct list of values of the given collection
Attention: these values are not unmarshalled, you might get MongoDBObjects
|
List<Object> |
Morphium.distinct(String key,
Query q)
returns a distinct list of values of the given collection
Attention: these values are not unmarshalled, you might get MongoDBObjects
|
<T> List<T> |
Morphium.find(Query<T> q) |
void |
Morphium.firePostRemoveEvent(Query q) |
void |
Morphium.firePreRemoveEvent(Query q) |
void |
Morphium.fireProfilingReadEvent(Query q,
long time,
ReadAccessType t) |
com.mongodb.DBObject |
Morphium.group(Query q,
Map<String,Object> initial,
String jsReduce,
String jsFinalize,
String... keys) |
void |
Morphium.inc(Query<?> query,
Enum field,
double amount) |
void |
Morphium.inc(Query<?> query,
Enum field,
double amount,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.inc(Query<?> query,
String field,
double amount) |
void |
Morphium.inc(Query<?> query,
String name,
double amount,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.inc(Query<T> query,
Map<String,Double> toUptad,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
Morphium.inc(Query<T> query,
String name,
double amount,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
void |
MorphiumReadListener.postRead(Query<T> q,
List<T> result,
boolean fromCache) |
void |
MorphiumStorageListener.postRemove(Morphium m,
Query<T> q) |
void |
MorphiumStorageAdapter.postRemove(Morphium m,
Query<T> q) |
void |
MorphiumReadListener.preRead(Query<T> q) |
void |
MorphiumStorageListener.preRemove(Morphium m,
Query<T> q) |
void |
MorphiumStorageAdapter.preRemove(Morphium m,
Query<T> q) |
void |
Morphium.pull(Query<?> query,
Enum field,
Object value) |
void |
Morphium.pull(Query<?> query,
Enum field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.pull(Query<?> query,
String field,
Object value) |
<T> void |
Morphium.pull(Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.pull(Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback)
Asynchronous call to pulll
|
void |
Morphium.pullAll(Query<?> query,
Enum field,
List<Object> value,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.pullAll(Query<?> query,
String field,
List<Object> value,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.pullAll(Query<T> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
void |
Morphium.push(Query<?> query,
Enum field,
Object value) |
void |
Morphium.push(Query<?> query,
Enum field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.push(Query<?> query,
String field,
Object value) |
<T> void |
Morphium.push(Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.push(Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback)
asynchronous call to callback
|
void |
Morphium.pushAll(Query<?> query,
Enum field,
List<Object> value,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.pushAll(Query<?> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.pushAll(Query<T> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
Morphium.pushPull(boolean push,
Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
Morphium.pushPullAll(boolean push,
Query<T> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
void |
ProfilingListener.readAccess(Query query,
long time,
ReadAccessType t) |
void |
Morphium.set(Query<?> query,
Map<String,Object> map,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.set(Query<T> query,
Enum field,
Object val) |
<T> void |
Morphium.set(Query<T> query,
Enum field,
Object val,
AsyncOperationCallback<T> callback) |
<T> void |
Morphium.set(Query<T> query,
Map<String,Object> map,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
Morphium.set(Query<T> query,
String field,
Object val) |
<T> void |
Morphium.set(Query<T> query,
String field,
Object val,
AsyncOperationCallback<T> callback) |
<T> void |
Morphium.set(Query<T> query,
String field,
Object val,
boolean insertIfNotExist,
boolean multiple)
will change an entry in mongodb-collection corresponding to given class object
if query is too complex, upsert might not work!
|
<T> void |
Morphium.set(Query<T> query,
String field,
Object val,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
void |
Morphium.setEnum(Query<?> query,
Map<Enum,Object> values,
boolean insertIfNotExist,
boolean multiple) |
<T> void |
Morphium.unsetQ(Query<T> q,
AsyncOperationCallback<T> cb,
boolean multiple,
String... field) |
<T> void |
Morphium.unsetQ(Query<T> q,
AsyncOperationCallback<T> cb,
Enum... field) |
<T> void |
Morphium.unsetQ(Query<T> q,
AsyncOperationCallback<T> cb,
String... field) |
<T> void |
Morphium.unsetQ(Query<T> q,
boolean multiple,
AsyncOperationCallback<T> cb,
Enum... field) |
<T> void |
Morphium.unsetQ(Query<T> q,
boolean multiple,
Enum... field) |
<T> void |
Morphium.unsetQ(Query<T> q,
boolean multiple,
String... field) |
<T> void |
Morphium.unsetQ(Query<T> q,
Enum... field) |
<T> void |
Morphium.unsetQ(Query<T> q,
String... field) |
| Modifier and Type | Method and Description |
|---|---|
void |
MorphiumConfig.setQueryClass(Class<Query> queryClass) |
| Modifier and Type | Method and Description |
|---|---|
Aggregator<T,R> |
AggregatorImpl.match(Query<T> q) |
Aggregator<T,R> |
Aggregator.match(Query<T> q) |
| Modifier and Type | Method and Description |
|---|---|
void |
AsyncOperationCallback.onOperationError(AsyncOperationType type,
Query<T> q,
long duration,
String error,
Throwable t,
T entity,
Object... param)
callback for insuccesfull operations
|
void |
AsyncOperationCallback.onOperationSucceeded(AsyncOperationType type,
Query<T> q,
long duration,
List<T> result,
T entity,
Object... param) |
| Modifier and Type | Method and Description |
|---|---|
Query |
BulkRequestWrapper.getQuery() |
| Modifier and Type | Method and Description |
|---|---|
<T> BulkRequestWrapper |
BulkOperationContext.addFind(Query<T> q) |
| Constructor and Description |
|---|
BulkRequestWrapper(com.mongodb.BulkWriteRequestBuilder b,
Morphium m,
BulkOperationContext bulk,
Query q) |
| Modifier and Type | Method and Description |
|---|---|
String |
MorphiumCacheImpl.getCacheKey(Query q)
create unique cache key for queries, also honoring skip & limit and sorting
|
String |
MorphiumCache.getCacheKey(Query q) |
void |
CacheSynchronizer.postRemove(Morphium m,
Query q) |
void |
CacheSynchronizer.preRemove(Morphium m,
Query<Object> q) |
| Modifier and Type | Class and Description |
|---|---|
class |
QueryImpl<T>
User: Stpehan Bösebeck
Date: 26.03.12
Time: 22:14
|
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
MongoFieldImpl.all(List<Object> val) |
Query<T> |
MongoField.all(List<Object> val) |
Query<T> |
MongoFieldImpl.box(double x,
double y,
double x2,
double y2) |
Query<T> |
MongoField.box(double x,
double y,
double x2,
double y2)
search for entries with geo coordinates wihtin the given rectancle - x,y upper left, x2,y2 lower right corner
|
Query<T> |
MongoFieldImpl.center(double x,
double y,
double r) |
Query<T> |
MongoField.center(double x,
double y,
double r) |
Query<T> |
MongoFieldImpl.centerSphere(double x,
double y,
double r) |
Query<T> |
MongoField.centerSphere(double x,
double y,
double r)
same as center() but uses spherical geometry for distance calc.
|
Query<T> |
QueryImpl.clone() |
Query<T> |
Query.clone() |
<T> Query<T> |
QueryFactoryImpl.createQuery(Morphium m,
Class<? extends T> type) |
<T> Query<T> |
QueryFactory.createQuery(Morphium m,
Class<? extends T> type) |
Query<T> |
MongoFieldImpl.eq(Object val) |
Query<T> |
MongoField.eq(Object val) |
Query<T> |
MongoFieldImpl.exists() |
Query<T> |
MongoField.exists() |
Query<T> |
MorphiumIteratorImpl.getQuery() |
Query<T> |
MorphiumIterator.getQuery() |
Query<T> |
MongoFieldImpl.getQuery() |
Query<T> |
MongoField.getQuery() |
Query<T> |
MongoFieldImpl.gt(Object val) |
Query<T> |
MongoField.gt(Object val) |
Query<T> |
MongoFieldImpl.gte(Object val) |
Query<T> |
MongoField.gte(Object val) |
Query<T> |
MongoFieldImpl.in(Collection<?> vals) |
Query<T> |
MongoField.in(Collection<?> vals) |
Query<T> |
QueryImpl.limit(int i) |
Query<T> |
Query.limit(int i)
limit the number of entries in result
|
Query<T> |
MongoFieldImpl.lt(Object val) |
Query<T> |
MongoField.lt(Object val) |
Query<T> |
MongoFieldImpl.lte(Object val) |
Query<T> |
MongoField.lte(Object val) |
Query<T> |
MongoFieldImpl.matches(Pattern p) |
Query<T> |
MongoField.matches(Pattern p) |
Query<T> |
MongoFieldImpl.matches(String ptrn) |
Query<T> |
MongoField.matches(String ptrn) |
Query<T> |
MongoFieldImpl.mod(int base,
int val) |
Query<T> |
MongoField.mod(int base,
int val) |
Query<T> |
MongoFieldImpl.ne(Object val) |
Query<T> |
MongoField.ne(Object val) |
Query<T> |
MongoFieldImpl.near(double x,
double y) |
Query<T> |
MongoField.near(double x,
double y)
return a sorted list of elements around point x,y
|
Query<T> |
MongoFieldImpl.near(double x,
double y,
double maxDistance) |
Query<T> |
MongoField.near(double x,
double y,
double maxDistance)
return a sorted list of elements around point x,y
|
Query<T> |
MongoFieldImpl.nearSphere(double x,
double y) |
Query<T> |
MongoField.nearSphere(double x,
double y)
return a sorted list of elements around point x,y
spherical distance calculation
|
Query<T> |
MongoFieldImpl.nearSphere(double x,
double y,
double maxDistance) |
Query<T> |
MongoField.nearSphere(double x,
double y,
double maxDistance)
return a sorted list of elements around point x,y
spherical distance calculation
|
Query<T> |
MongoFieldImpl.nin(Collection<?> vals) |
Query<T> |
MongoField.nin(Collection<?> vals) |
Query<T> |
QueryImpl.nor(Query<T>... qs) |
Query<T> |
Query.nor(Query<T>... q)
not or
|
Query<T> |
MongoFieldImpl.notExists() |
Query<T> |
MongoField.notExists() |
Query<T> |
QueryImpl.or(List<Query<T>> qs) |
Query<T> |
Query.or(List<Query<T>> q)
concatenate those queries with or
|
Query<T> |
QueryImpl.or(Query<T>... qs) |
Query<T> |
Query.or(Query<T>... q)
concatenate those queries with or
|
Query<T> |
MongoFieldImpl.polygon(double... p) |
Query<T> |
MongoField.polygon(double... p) |
Query<T> |
QueryImpl.q() |
Query<T> |
Query.q()
create a new empty query for the same type using the same mapper as this
|
Query<T> |
MongoFieldImpl.size(int val) |
Query<T> |
MongoField.size(int val) |
Query<T> |
QueryImpl.skip(int i) |
Query<T> |
Query.skip(int i)
skip the first entries in result
|
Query<T> |
QueryImpl.sort(Enum... naturalOrder) |
Query<T> |
Query.sort(Enum... naturalOrder) |
Query<T> |
QueryImpl.sort(Map<String,Object> n)
this does not check for existence of the Field!
|
Query<T> |
Query.sort(Map<String,Object> n)
set an order - Key: FieldName (java or Mongo-Name), Value: Integer: -1 reverse, 1 standard
|
Query<T> |
QueryImpl.sort(String... prefixedString) |
Query<T> |
Query.sort(String... prefixedString)
set order by prefixing field names with - for reverse ordering (+ or nothing default)
|
Query<T> |
QueryImpl.text(Query.TextSearchLanguages lang,
String... text) |
Query<T> |
Query.text(Query.TextSearchLanguages lang,
String... text) |
Query<T> |
QueryImpl.text(String... text) |
Query<T> |
Query.text(String... text) |
Query<T> |
QueryImpl.text(String metaScoreField,
Query.TextSearchLanguages lang,
String... text) |
Query<T> |
Query.text(String metaScoreField,
Query.TextSearchLanguages lang,
String... text) |
Query<T> |
MongoFieldImpl.type(MongoType t) |
Query<T> |
MongoField.type(MongoType t) |
Query<T> |
QueryImpl.where(String wh) |
Query<T> |
Query.where(String wh)
set the where string for this query - where-String needs to be valid java script!
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Query> |
QueryFactoryImpl.getQueryImpl() |
Class<? extends Query> |
QueryFactory.getQueryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
QueryImpl.nor(Query<T>... qs) |
Query<T> |
Query.nor(Query<T>... q)
not or
|
Query<T> |
QueryImpl.or(Query<T>... qs) |
Query<T> |
Query.or(Query<T>... q)
concatenate those queries with or
|
void |
MorphiumIteratorImpl.setQuery(Query<T> q) |
void |
MorphiumIterator.setQuery(Query<T> q) |
void |
MongoFieldImpl.setQuery(Query<T> q) |
void |
MongoField.setQuery(Query<T> q) |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
QueryImpl.or(List<Query<T>> qs) |
Query<T> |
Query.or(List<Query<T>> q)
concatenate those queries with or
|
void |
QueryFactoryImpl.setQueryImpl(Class<? extends Query> queryImpl) |
void |
QueryFactory.setQueryImpl(Class<? extends Query> queryImpl) |
| Constructor and Description |
|---|
MongoFieldImpl(Query<T> q,
ObjectMapper map) |
| Constructor and Description |
|---|
QueryFactoryImpl(Class<? extends Query> qi) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
MorphiumWriterImpl.inc(Query<T> query,
Map<String,Double> fieldsToInc,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
MorphiumWriter.inc(Query<T> query,
Map<String,Double> fieldsToInc,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
BufferedMorphiumWriterImpl.inc(Query<T> query,
Map<String,Double> fieldsToInc,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> c) |
<T> void |
MorphiumWriterImpl.inc(Query<T> query,
String field,
double amount,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
MorphiumWriter.inc(Query<T> query,
String field,
double amount,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
BufferedMorphiumWriterImpl.inc(Query<T> query,
String field,
double amount,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> c) |
<T> void |
MorphiumWriterImpl.pushPull(boolean push,
Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
MorphiumWriter.pushPull(boolean push,
Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
BufferedMorphiumWriterImpl.pushPull(boolean push,
Query<T> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> c) |
<T> void |
MorphiumWriterImpl.pushPullAll(boolean push,
Query<T> query,
String f,
List<?> v,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
MorphiumWriter.pushPullAll(boolean push,
Query<T> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
BufferedMorphiumWriterImpl.pushPullAll(boolean push,
Query<T> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> c) |
<T> void |
MorphiumWriterImpl.remove(Query<T> q,
AsyncOperationCallback<T> callback)
deletes all objects matching the given query
|
<T> void |
MorphiumWriter.remove(Query<T> q,
AsyncOperationCallback<T> callback)
deletes all objects matching the given query
|
<T> void |
BufferedMorphiumWriterImpl.remove(Query<T> q,
AsyncOperationCallback<T> c) |
<T> void |
MorphiumWriterImpl.set(Query<T> query,
Map<String,Object> values,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback)
will change an entry in mongodb-collection corresponding to given class object
if query is too complex, upsert might not work!
|
<T> void |
MorphiumWriter.set(Query<T> query,
Map<String,Object> values,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> callback)
will change an entry in mongodb-collection corresponding to given class object
if query is too complex, upsert might not work!
|
<T> void |
BufferedMorphiumWriterImpl.set(Query<T> query,
Map<String,Object> values,
boolean insertIfNotExist,
boolean multiple,
AsyncOperationCallback<T> c) |
<T> void |
MorphiumWriterImpl.unset(Query<T> query,
AsyncOperationCallback<T> callback,
boolean multiple,
Enum... fields) |
<T> void |
MorphiumWriter.unset(Query<T> query,
AsyncOperationCallback<T> callback,
boolean multiple,
Enum... fields) |
<T> void |
BufferedMorphiumWriterImpl.unset(Query<T> query,
AsyncOperationCallback<T> c,
boolean multiple,
Enum... fields) |
<T> void |
MorphiumWriterImpl.unset(Query<T> query,
AsyncOperationCallback<T> callback,
boolean multiple,
String... fields) |
<T> void |
MorphiumWriter.unset(Query<T> query,
AsyncOperationCallback<T> callback,
boolean multiple,
String... fields) |
<T> void |
BufferedMorphiumWriterImpl.unset(Query<T> query,
AsyncOperationCallback<T> c,
boolean multiple,
String... fields) |
<T> void |
MorphiumWriterImpl.unset(Query<T> query,
String field,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
MorphiumWriter.unset(Query<T> query,
String field,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
BufferedMorphiumWriterImpl.unset(Query<T> query,
String field,
boolean multiple,
AsyncOperationCallback<T> c) |
Copyright © 2014. All Rights Reserved.