| Package | Description |
|---|---|
| de.caluga.morphium | |
| de.caluga.morphium.aggregation | |
| de.caluga.morphium.cache | |
| de.caluga.morphium.query | |
| de.caluga.morphium.validation |
| 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,
int amount) |
void |
Morphium.dec(Query<?> query,
Enum field,
int amount,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.dec(Query<?> query,
String field,
int amount) |
void |
Morphium.dec(Query<?> query,
String field,
int amount,
boolean insertIfNotExist,
boolean multiple) |
void |
WriterImpl.delete(Query q)
deletes all objects matching the given query
|
void |
Writer.delete(Query q)
deletes all objects matching the given query
|
void |
Morphium.delete(Query o) |
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) |
String |
Morphium.getCacheKey(Query q)
create unique cache key for queries, also honoring skip & limit and sorting
|
com.mongodb.DBObject |
Morphium.group(Query q,
Map<String,Object> initial,
String jsReduce,
String jsFinalize,
String... keys) |
void |
Morphium.inc(Query<?> query,
Enum field,
int amount) |
void |
Morphium.inc(Query<?> query,
Enum field,
int amount,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.inc(Query<?> query,
String field,
int amount) |
void |
WriterImpl.inc(Query<?> query,
String field,
int amount,
boolean insertIfNotExist,
boolean multiple) |
void |
Writer.inc(Query<?> query,
String field,
int amount,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.inc(Query<?> query,
String name,
int amount,
boolean insertIfNotExist,
boolean multiple) |
void |
StorageAdapter.postRemove(Query<T> q) |
void |
MorphiumStorageListener.postRemove(Query<T> q) |
void |
StorageAdapter.preRemove(Query<T> q) |
void |
MorphiumStorageListener.preRemove(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) |
void |
Morphium.pull(Query<?> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
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) |
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) |
void |
Morphium.push(Query<?> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
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) |
void |
WriterImpl.pushPull(boolean push,
Query<?> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
void |
Writer.pushPull(boolean push,
Query<?> query,
String field,
Object value,
boolean insertIfNotExist,
boolean multiple) |
void |
WriterImpl.pushPullAll(boolean push,
Query<?> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple) |
void |
Writer.pushPullAll(boolean push,
Query<?> query,
String field,
List<?> value,
boolean insertIfNotExist,
boolean multiple) |
void |
ProfilingListener.readAccess(Query query,
long time,
ReadAccessType t) |
void |
Morphium.set(Query<?> query,
Enum field,
Object val) |
void |
WriterImpl.set(Query<?> query,
Map<String,Object> values,
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!
|
void |
Writer.set(Query<?> query,
Map<String,Object> values,
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!
|
void |
Morphium.set(Query<?> query,
Map<String,Object> map,
boolean insertIfNotExist,
boolean multiple) |
void |
Morphium.set(Query<?> query,
String field,
Object val) |
void |
Morphium.set(Query<?> 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!
|
void |
Morphium.setEnum(Query<?> query,
Map<Enum,Object> values,
boolean insertIfNotExist,
boolean multiple) |
| 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 |
CacheSynchronizer.postRemove(Query q) |
void |
CacheSynchronizer.preRemove(Query 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> |
MongoFieldImpl.notExists() |
Query<T> |
MongoField.notExists() |
Query<T> |
QueryImpl.order(Map<String,Integer> n) |
Query<T> |
Query.order(Map<String,Integer> n)
Deprecated.
|
Query<T> |
QueryImpl.order(String... prefixedString) |
Query<T> |
Query.order(String... prefixedString)
Deprecated.
|
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> |
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,Integer> n)
this does not check for existence of the Field!
|
Query<T> |
Query.sort(Map<String,Integer> 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> |
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 |
|---|---|
void |
QueryImpl.nor(Query<T>... qs) |
void |
Query.nor(Query<T>... q)
not or
|
void |
QueryImpl.or(Query<T>... qs) |
void |
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 |
|---|---|
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 |
|---|---|
void |
JavaxValidationStorageListener.postRemove(Query<Object> q) |
void |
JavaxValidationStorageListener.preRemove(Query<Object> q) |
Copyright © 2013. All Rights Reserved.