| Package | Description |
|---|---|
| de.caluga.morphium | |
| de.caluga.morphium.cache | |
| de.caluga.morphium.validation |
| 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> |
QueryImpl.clone() |
Query<T> |
Query.clone() |
<T> Query<T> |
Morphium.createQueryFor(Class<T> type) |
Query<T> |
MongoFieldImpl.eq(Object val) |
Query<T> |
MongoField.eq(Object val) |
Query<T> |
MongoFieldImpl.exists() |
Query<T> |
MongoField.exists() |
Query<T> |
MongoFieldImpl.getQuery() |
Query<T> |
MongoField.getQuery() |
Query<T> |
DAO.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) |
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> |
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 |
|---|---|
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) |
<T> void |
Morphium.delete(Query<T> q)
deletes all objects matching the given query
|
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.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 |
Morphium.inc(Query<?> query,
String field,
int amount,
boolean insertIfNotExist,
boolean multiple) |
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 |
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<Object> value,
boolean insertIfNotExist,
boolean multiple) |
void |
ProfilingListener.readAccess(Query query,
long time,
ReadAccessType t) |
void |
Morphium.set(Query<?> query,
Enum field,
Object val) |
void |
Morphium.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,
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) |
void |
MongoFieldImpl.setQuery(Query<T> q) |
void |
MongoField.setQuery(Query<T> q) |
| Constructor and Description |
|---|
MongoFieldImpl(Query<T> q,
ObjectMapper map) |
| Modifier and Type | Method and Description |
|---|---|
void |
CacheSynchronizer.postRemove(Query q) |
void |
CacheSynchronizer.preRemove(Query q) |
| Modifier and Type | Method and Description |
|---|---|
void |
JavaxValidationStorageListener.postRemove(Query<Object> q) |
void |
JavaxValidationStorageListener.preRemove(Query<Object> q) |
Copyright © 2012. All Rights Reserved.