File tree 3 files changed +61
-0
lines changed
src/main/java/org/objectquery/mongodb
3 files changed +61
-0
lines changed Original file line number Diff line number Diff line change
1
+ target
2
+ .settings
3
+ .project
4
+ .classpath
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2
+ <modelVersion >4.0.0</modelVersion >
3
+ <groupId >org.objectquery</groupId >
4
+ <artifactId >objectquery-mongodb</artifactId >
5
+ <version >0.0.1-SNAPSHOT</version >
6
+ <dependencies >
7
+ <dependency >
8
+ <groupId >org.objectquery</groupId >
9
+ <artifactId >objectquery</artifactId >
10
+ <version >1.5.1-SNAPSHOT</version >
11
+ </dependency >
12
+ <dependency >
13
+ <groupId >org.mongodb</groupId >
14
+ <artifactId >mongo-java-driver</artifactId >
15
+ <version >2.11.1</version >
16
+ </dependency >
17
+ </dependencies >
18
+ </project >
Original file line number Diff line number Diff line change
1
+ package org .objectquery .mongodb ;
2
+
3
+ import java .util .List ;
4
+
5
+ import org .objectquery .DeleteQuery ;
6
+ import org .objectquery .InsertQuery ;
7
+ import org .objectquery .QueryEngine ;
8
+ import org .objectquery .SelectQuery ;
9
+ import org .objectquery .UpdateQuery ;
10
+
11
+ import com .mongodb .DBCollection ;
12
+
13
+ public class MongoDBObjectQuery extends QueryEngine <DBCollection > {
14
+
15
+ @ Override
16
+ public <RET extends List <?>> RET execute (SelectQuery <?> query , DBCollection engineSession ) {
17
+ // TODO Auto-generated method stub
18
+ return null ;
19
+ }
20
+
21
+ @ Override
22
+ public int execute (DeleteQuery <?> dq , DBCollection engineSession ) {
23
+ // TODO Auto-generated method stub
24
+ return 0 ;
25
+ }
26
+
27
+ @ Override
28
+ public boolean execute (InsertQuery <?> ip , DBCollection engineSession ) {
29
+ // TODO Auto-generated method stub
30
+ return false ;
31
+ }
32
+
33
+ @ Override
34
+ public int execute (UpdateQuery <?> query , DBCollection engineSession ) {
35
+ // TODO Auto-generated method stub
36
+ return 0 ;
37
+ }
38
+
39
+ }
You can’t perform that action at this time.
0 commit comments