Package de.caluga.morphium.query
Class MongoFieldImpl<T>
- java.lang.Object
-
- de.caluga.morphium.query.MongoFieldImpl<T>
-
- All Implemented Interfaces:
MongoField<T>
public class MongoFieldImpl<T> extends Object implements MongoField<T>
User: Stpehan Bösebeck Date: 26.03.12 Time: 15:18 default implementation of a MongoField- See Also:
MongoField
-
-
Constructor Summary
Constructors Constructor Description MongoFieldImpl()MongoFieldImpl(Query<T> q, MorphiumObjectMapper map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query<T>all(Object... val)Query<T>all(List<Object> val)Query<T>bitsAllClear(int... b)Query<T>bitsAllClear(long bitmask)Query<T>bitsAllSet(int... b)Query<T>bitsAllSet(long bitmask)Query<T>bitsAnyClear(int... b)Query<T>bitsAnyClear(long bitmask)Query<T>bitsAnySet(int... b)Query<T>bitsAnySet(long bitmask)Query<T>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 cornerQuery<T>center(double x, double y, double r)Query<T>centerSphere(double x, double y, double r)Query<T>elemMatch(Query<?> q)Query<T>elemMatch(Map<String,Object> q)Query<T>eq(Object val)Query<T>exists()Query<T>geoIntersects(Geo shape)Query<T>geoWithin(Geo shape)Query<T>geoWithinBox(Double x1, Double y1, Double x2, Double y2)StringgetFieldString()MorphiumObjectMappergetMapper()Query<T>getQuery()Query<T>gt(Object val)Query<T>gte(Object val)Query<T>in(Collection<?> vals)Query<T>lt(Object val)Query<T>lte(Object val)Query<T>matches(String ptrn)Query<T>matches(String ptrn, String options)Query<T>matches(Pattern p)Query<T>mod(int base, int val)Query<T>ne(Object val)Query<T>near(double x, double y)Query<T>near(double x, double y, double maxDistance)Query<T>near(Point point, double minDistance, double maxDistance)Query<T>nearSpere(Point point, double minDistance, double maxDistance)Query<T>nearSphere(double x, double y)Query<T>nearSphere(double x, double y, double maxDistance)Query<T>nearSphere(double x, double y, double minDistance, double maxDistance)Query<T>nin(Collection<?> vals)Query<T>not()Query<T>notExists()Query<T>polygon(double... p)Query<T>polygon(Polygon p)voidsetFieldString(String fldStr)voidsetMapper(MorphiumObjectMapper mapper)voidsetQuery(Query<T> q)Query<T>size(int val)Query<T>type(MongoType t)
-
-
-
Constructor Detail
-
MongoFieldImpl
public MongoFieldImpl()
-
MongoFieldImpl
public MongoFieldImpl(Query<T> q, MorphiumObjectMapper map)
-
-
Method Detail
-
not
public Query<T> not()
- Specified by:
notin interfaceMongoField<T>
-
getFieldString
public String getFieldString()
- Specified by:
getFieldStringin interfaceMongoField<T>
-
setFieldString
public void setFieldString(String fldStr)
- Specified by:
setFieldStringin interfaceMongoField<T>
-
getMapper
public MorphiumObjectMapper getMapper()
- Specified by:
getMapperin interfaceMongoField<T>
-
setMapper
public void setMapper(MorphiumObjectMapper mapper)
- Specified by:
setMapperin interfaceMongoField<T>
-
size
public Query<T> size(int val)
- Specified by:
sizein interfaceMongoField<T>
-
exists
public Query<T> exists()
- Specified by:
existsin interfaceMongoField<T>
-
notExists
public Query<T> notExists()
- Specified by:
notExistsin interfaceMongoField<T>
-
mod
public Query<T> mod(int base, int val)
- Specified by:
modin interfaceMongoField<T>
-
matches
public Query<T> matches(String ptrn, String options)
- Specified by:
matchesin interfaceMongoField<T>
-
in
public Query<T> in(Collection<?> vals)
- Specified by:
inin interfaceMongoField<T>
-
nin
public Query<T> nin(Collection<?> vals)
- Specified by:
ninin interfaceMongoField<T>
-
polygon
public Query<T> polygon(double... p)
- Specified by:
polygonin interfaceMongoField<T>
-
geoWithinBox
public Query<T> geoWithinBox(Double x1, Double y1, Double x2, Double y2)
- Specified by:
geoWithinBoxin interfaceMongoField<T>
-
getQuery
public Query<T> getQuery()
- Specified by:
getQueryin interfaceMongoField<T>
-
setQuery
public void setQuery(Query<T> q)
- Specified by:
setQueryin interfaceMongoField<T>
-
bitsAllClear
public Query<T> bitsAllClear(int... b)
- Specified by:
bitsAllClearin interfaceMongoField<T>
-
bitsAllSet
public Query<T> bitsAllSet(int... b)
- Specified by:
bitsAllSetin interfaceMongoField<T>
-
bitsAnyClear
public Query<T> bitsAnyClear(int... b)
- Specified by:
bitsAnyClearin interfaceMongoField<T>
-
bitsAnySet
public Query<T> bitsAnySet(int... b)
- Specified by:
bitsAnySetin interfaceMongoField<T>
-
bitsAllClear
public Query<T> bitsAllClear(long bitmask)
- Specified by:
bitsAllClearin interfaceMongoField<T>
-
bitsAllSet
public Query<T> bitsAllSet(long bitmask)
- Specified by:
bitsAllSetin interfaceMongoField<T>
-
bitsAnyClear
public Query<T> bitsAnyClear(long bitmask)
- Specified by:
bitsAnyClearin interfaceMongoField<T>
-
bitsAnySet
public Query<T> bitsAnySet(long bitmask)
- Specified by:
bitsAnySetin interfaceMongoField<T>
-
elemMatch
public Query<T> elemMatch(Map<String,Object> q)
- Specified by:
elemMatchin interfaceMongoField<T>
-
near
public Query<T> near(double x, double y)
- Specified by:
nearin interfaceMongoField<T>
-
nearSphere
public Query<T> nearSphere(double x, double y)
- Specified by:
nearSpherein interfaceMongoField<T>
-
box
public Query<T> box(double x, double y, double x2, double y2)
Description copied from interface:MongoFieldsearch for entries with geo coordinates wihtin the given rectancle - x,y upper left, x2,y2 lower right corner- Specified by:
boxin interfaceMongoField<T>
-
center
public Query<T> center(double x, double y, double r)
- Specified by:
centerin interfaceMongoField<T>
-
centerSphere
public Query<T> centerSphere(double x, double y, double r)
- Specified by:
centerSpherein interfaceMongoField<T>
-
nearSphere
public Query<T> nearSphere(double x, double y, double maxDistance)
- Specified by:
nearSpherein interfaceMongoField<T>
-
nearSphere
public Query<T> nearSphere(double x, double y, double minDistance, double maxDistance)
- Specified by:
nearSpherein interfaceMongoField<T>
-
nearSpere
public Query<T> nearSpere(Point point, double minDistance, double maxDistance)
- Specified by:
nearSperein interfaceMongoField<T>
-
near
public Query<T> near(double x, double y, double maxDistance)
- Specified by:
nearin interfaceMongoField<T>
-
near
public Query<T> near(Point point, double minDistance, double maxDistance)
- Specified by:
nearin interfaceMongoField<T>
-
geoIntersects
public Query<T> geoIntersects(Geo shape)
- Specified by:
geoIntersectsin interfaceMongoField<T>
-
-