1 | /* |
2 | * Copyright 2013 the original author or authors. |
3 | * |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | * you may not use this file except in compliance with the License. |
6 | * You may obtain a copy of the License at |
7 | * |
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | * |
10 | * Unless required by applicable law or agreed to in writing, software |
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. |
15 | */ |
16 | |
17 | package org.springframework.data.elasticsearch.core.query; |
18 | |
19 | /** |
20 | * IndexQuery |
21 | * |
22 | * @author Rizwan Idrees |
23 | * @author Mohsin Husen |
24 | */ |
25 | |
26 | public class IndexQuery{ |
27 | |
28 | private String id; |
29 | private Object object; |
30 | private Long version; |
31 | private String indexName; |
32 | private String type; |
33 | |
34 | public String getId() { |
35 | return id; |
36 | } |
37 | |
38 | public void setId(String id) { |
39 | this.id = id; |
40 | } |
41 | |
42 | public Object getObject() { |
43 | return object; |
44 | } |
45 | |
46 | public void setObject(Object object) { |
47 | this.object = object; |
48 | } |
49 | |
50 | public Long getVersion() { |
51 | return version; |
52 | } |
53 | |
54 | public void setVersion(Long version) { |
55 | this.version = version; |
56 | } |
57 | |
58 | public String getIndexName() { |
59 | return indexName; |
60 | } |
61 | |
62 | public void setIndexName(String indexName) { |
63 | this.indexName = indexName; |
64 | } |
65 | |
66 | public String getType() { |
67 | return type; |
68 | } |
69 | |
70 | public void setType(String type) { |
71 | this.type = type; |
72 | } |
73 | } |