Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 16ae2ef

Browse files
committed
#359 Added more properties to Database object
This should have it in sync with ML 9.0-9.1
1 parent eb0dacf commit 16ae2ef

26 files changed

+951
-85
lines changed

src/main/java/com/marklogic/mgmt/api/database/Database.java

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,64 @@ public class Database extends Resource implements Comparable<Database> {
234234
@XmlElement(name = "range-element-index")
235235
private List<ElementIndex> rangeElementIndex;
236236

237+
@XmlElementWrapper(name = "range-element-attribute-indexes")
238+
@XmlElement(name = "range-element-attribute-index")
239+
private List<ElementAttributeIndex> rangeElementAttributeIndex;
240+
241+
@XmlElementWrapper(name = "element-word-lexicons")
242+
@XmlElement(name = "element-word-lexicon")
243+
private List<ElementWordLexicon> elementWordLexicon;
244+
245+
@XmlElementWrapper(name = "element-attribute-word-lexicons")
246+
@XmlElement(name = "element-attribute-word-lexicon")
247+
private List<ElementAttributeWordLexicon> elementAttributeWordLexicon;
248+
249+
@XmlElementWrapper(name = "path-namespaces")
250+
@XmlElement(name = "path-namespace")
251+
private List<PathNamespace> pathNamespace;
252+
237253
@XmlElementWrapper(name = "fields")
238254
private List<Field> field;
239255

256+
@XmlElementWrapper(name = "range-field-indexes")
257+
@XmlElement(name = "range-field-index")
258+
private List<FieldIndex> rangeFieldIndex;
259+
260+
@XmlElementWrapper(name = "geospatial-element-indexes")
261+
@XmlElement(name = "geospatial-element-index")
262+
private List<GeospatialElementIndex> geospatialElementIndex;
263+
264+
@XmlElementWrapper(name = "geospatial-element-child-indexes")
265+
@XmlElement(name = "geospatial-element-child-index")
266+
private List<GeospatialElementChildIndex> geospatialElementChildIndex;
267+
268+
@XmlElementWrapper(name = "geospatial-element-pair-indexes")
269+
@XmlElement(name = "geospatial-element-pair-index")
270+
private List<GeospatialElementPairIndex> geospatialElementPairIndex;
271+
272+
@XmlElementWrapper(name = "geospatial-element-attribute-pair-indexes")
273+
@XmlElement(name = "geospatial-element-attribute-pair-index")
274+
private List<GeospatialElementPairIndex> geospatialElementAttributePairIndex;
275+
276+
@XmlElementWrapper(name = "geospatial-path-indexes")
277+
@XmlElement(name = "geospatial-path-index")
278+
private List<GeospatialPathIndex> geospatialPathIndex;
279+
280+
@XmlElementWrapper(name = "geospatial-region-path-indexes")
281+
@XmlElement(name = "geospatial-region-path-index")
282+
private List<GeospatialRegionPathIndex> geospatialRegionPathIndex;
283+
284+
@XmlElementWrapper(name = "default-rulesets")
285+
@XmlElement(name = "default-ruleset")
286+
private List<DefaultRuleset> defaultRuleset;
287+
288+
@XmlElement(name = "database-replication")
289+
private DatabaseReplication databaseReplication;
290+
291+
@XmlElementWrapper(name = "database-references")
292+
@XmlElement(name = "database-reference")
293+
private List<DatabaseReference> databaseReference;
294+
240295
@XmlElement(name = "rebalancer-enable")
241296
private Boolean rebalancerEnable;
242297

@@ -1015,4 +1070,116 @@ public AssignmentPolicy getAssignmentPolicy() {
10151070
public void setAssignmentPolicy(AssignmentPolicy assignmentPolicy) {
10161071
this.assignmentPolicy = assignmentPolicy;
10171072
}
1073+
1074+
public List<FieldIndex> getRangeFieldIndex() {
1075+
return rangeFieldIndex;
1076+
}
1077+
1078+
public void setRangeFieldIndex(List<FieldIndex> rangeFieldIndex) {
1079+
this.rangeFieldIndex = rangeFieldIndex;
1080+
}
1081+
1082+
public List<ElementAttributeIndex> getRangeElementAttributeIndex() {
1083+
return rangeElementAttributeIndex;
1084+
}
1085+
1086+
public void setRangeElementAttributeIndex(List<ElementAttributeIndex> rangeElementAttributeIndex) {
1087+
this.rangeElementAttributeIndex = rangeElementAttributeIndex;
1088+
}
1089+
1090+
public List<ElementWordLexicon> getElementWordLexicon() {
1091+
return elementWordLexicon;
1092+
}
1093+
1094+
public void setElementWordLexicon(List<ElementWordLexicon> elementWordLexicon) {
1095+
this.elementWordLexicon = elementWordLexicon;
1096+
}
1097+
1098+
public List<ElementAttributeWordLexicon> getElementAttributeWordLexicon() {
1099+
return elementAttributeWordLexicon;
1100+
}
1101+
1102+
public void setElementAttributeWordLexicon(List<ElementAttributeWordLexicon> elementAttributeWordLexicon) {
1103+
this.elementAttributeWordLexicon = elementAttributeWordLexicon;
1104+
}
1105+
1106+
public List<PathNamespace> getPathNamespace() {
1107+
return pathNamespace;
1108+
}
1109+
1110+
public void setPathNamespace(List<PathNamespace> pathNamespace) {
1111+
this.pathNamespace = pathNamespace;
1112+
}
1113+
1114+
public List<GeospatialElementIndex> getGeospatialElementIndex() {
1115+
return geospatialElementIndex;
1116+
}
1117+
1118+
public void setGeospatialElementIndex(List<GeospatialElementIndex> geospatialElementIndex) {
1119+
this.geospatialElementIndex = geospatialElementIndex;
1120+
}
1121+
1122+
public List<GeospatialElementChildIndex> getGeospatialElementChildIndex() {
1123+
return geospatialElementChildIndex;
1124+
}
1125+
1126+
public void setGeospatialElementChildIndex(List<GeospatialElementChildIndex> geospatialElementChildIndex) {
1127+
this.geospatialElementChildIndex = geospatialElementChildIndex;
1128+
}
1129+
1130+
public List<GeospatialElementPairIndex> getGeospatialElementPairIndex() {
1131+
return geospatialElementPairIndex;
1132+
}
1133+
1134+
public void setGeospatialElementPairIndex(List<GeospatialElementPairIndex> geospatialElementPairIndex) {
1135+
this.geospatialElementPairIndex = geospatialElementPairIndex;
1136+
}
1137+
1138+
public List<GeospatialElementPairIndex> getGeospatialElementAttributePairIndex() {
1139+
return geospatialElementAttributePairIndex;
1140+
}
1141+
1142+
public void setGeospatialElementAttributePairIndex(List<GeospatialElementPairIndex> geospatialElementAttributePairIndex) {
1143+
this.geospatialElementAttributePairIndex = geospatialElementAttributePairIndex;
1144+
}
1145+
1146+
public List<GeospatialPathIndex> getGeospatialPathIndex() {
1147+
return geospatialPathIndex;
1148+
}
1149+
1150+
public void setGeospatialPathIndex(List<GeospatialPathIndex> geospatialPathIndex) {
1151+
this.geospatialPathIndex = geospatialPathIndex;
1152+
}
1153+
1154+
public List<GeospatialRegionPathIndex> getGeospatialRegionPathIndex() {
1155+
return geospatialRegionPathIndex;
1156+
}
1157+
1158+
public void setGeospatialRegionPathIndex(List<GeospatialRegionPathIndex> geospatialRegionPathIndex) {
1159+
this.geospatialRegionPathIndex = geospatialRegionPathIndex;
1160+
}
1161+
1162+
public List<DefaultRuleset> getDefaultRuleset() {
1163+
return defaultRuleset;
1164+
}
1165+
1166+
public void setDefaultRuleset(List<DefaultRuleset> defaultRuleset) {
1167+
this.defaultRuleset = defaultRuleset;
1168+
}
1169+
1170+
public DatabaseReplication getDatabaseReplication() {
1171+
return databaseReplication;
1172+
}
1173+
1174+
public void setDatabaseReplication(DatabaseReplication databaseReplication) {
1175+
this.databaseReplication = databaseReplication;
1176+
}
1177+
1178+
public List<DatabaseReference> getDatabaseReference() {
1179+
return databaseReference;
1180+
}
1181+
1182+
public void setDatabaseReference(List<DatabaseReference> databaseReference) {
1183+
this.databaseReference = databaseReference;
1184+
}
10181185
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.marklogic.mgmt.api.database;
2+
3+
import javax.xml.bind.annotation.XmlAccessType;
4+
import javax.xml.bind.annotation.XmlAccessorType;
5+
import javax.xml.bind.annotation.XmlElement;
6+
7+
@XmlAccessorType(XmlAccessType.FIELD)
8+
public class DatabaseReference {
9+
10+
@XmlElement(name = "reference-cluster-name")
11+
private String referenceClusterName;
12+
13+
@XmlElement(name = "reference-database-name")
14+
private String referenceDatabaseName;
15+
16+
public String getReferenceClusterName() {
17+
return referenceClusterName;
18+
}
19+
20+
public void setReferenceClusterName(String referenceClusterName) {
21+
this.referenceClusterName = referenceClusterName;
22+
}
23+
24+
public String getReferenceDatabaseName() {
25+
return referenceDatabaseName;
26+
}
27+
28+
public void setReferenceDatabaseName(String referenceDatabaseName) {
29+
this.referenceDatabaseName = referenceDatabaseName;
30+
}
31+
}

src/main/java/com/marklogic/mgmt/api/database/DatabaseReplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class DatabaseReplication {
1414
private List<ForeignReplica> foreignReplica;
1515

1616
@XmlElement(name = "foreign-master")
17-
private ForeignReplica foreignMaster;
17+
private ForeignMaster foreignMaster;
1818

1919
public List<ForeignReplica> getForeignReplica() {
2020
return foreignReplica;
@@ -24,11 +24,11 @@ public void setForeignReplica(List<ForeignReplica> foreignReplica) {
2424
this.foreignReplica = foreignReplica;
2525
}
2626

27-
public ForeignReplica getForeignMaster() {
27+
public ForeignMaster getForeignMaster() {
2828
return foreignMaster;
2929
}
3030

31-
public void setForeignMaster(ForeignReplica foreignMaster) {
31+
public void setForeignMaster(ForeignMaster foreignMaster) {
3232
this.foreignMaster = foreignMaster;
3333
}
3434
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.marklogic.mgmt.api.database;
2+
3+
import javax.xml.bind.annotation.XmlAccessType;
4+
import javax.xml.bind.annotation.XmlAccessorType;
5+
6+
@XmlAccessorType(XmlAccessType.FIELD)
7+
public class DefaultRuleset {
8+
9+
private String location;
10+
11+
public String getLocation() {
12+
return location;
13+
}
14+
15+
public void setLocation(String location) {
16+
this.location = location;
17+
}
18+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.marklogic.mgmt.api.database;
2+
3+
import javax.xml.bind.annotation.XmlAccessType;
4+
import javax.xml.bind.annotation.XmlAccessorType;
5+
import javax.xml.bind.annotation.XmlElement;
6+
7+
@XmlAccessorType(XmlAccessType.FIELD)
8+
public class ElementAttributeIndex extends ElementIndex {
9+
10+
@XmlElement(name = "parent-namespace-uri")
11+
private String parentNamespaceUri;
12+
13+
@XmlElement(name = "parent-localname")
14+
private String parentLocalname;
15+
16+
public String getParentNamespaceUri() {
17+
return parentNamespaceUri;
18+
}
19+
20+
public void setParentNamespaceUri(String parentNamespaceUri) {
21+
this.parentNamespaceUri = parentNamespaceUri;
22+
}
23+
24+
public String getParentLocalname() {
25+
return parentLocalname;
26+
}
27+
28+
public void setParentLocalname(String parentLocalname) {
29+
this.parentLocalname = parentLocalname;
30+
}
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.marklogic.mgmt.api.database;
2+
3+
import javax.xml.bind.annotation.XmlAccessType;
4+
import javax.xml.bind.annotation.XmlAccessorType;
5+
import javax.xml.bind.annotation.XmlElement;
6+
7+
@XmlAccessorType(XmlAccessType.FIELD)
8+
public class ElementAttributeWordLexicon extends ElementWordLexicon {
9+
10+
@XmlElement(name = "parent-namespace-uri")
11+
private String parentNamespaceUri;
12+
13+
@XmlElement(name = "parent-localname")
14+
private String parentLocalname;
15+
16+
public String getParentNamespaceUri() {
17+
return parentNamespaceUri;
18+
}
19+
20+
public void setParentNamespaceUri(String parentNamespaceUri) {
21+
this.parentNamespaceUri = parentNamespaceUri;
22+
}
23+
24+
public String getParentLocalname() {
25+
return parentLocalname;
26+
}
27+
28+
public void setParentLocalname(String parentLocalname) {
29+
this.parentLocalname = parentLocalname;
30+
}
31+
}

src/main/java/com/marklogic/mgmt/api/database/ElementIndex.java

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,12 @@
55
import javax.xml.bind.annotation.XmlElement;
66

77
@XmlAccessorType(XmlAccessType.FIELD)
8-
public class ElementIndex {
9-
10-
@XmlElement(name = "scalar-type")
11-
private String scalarType;
8+
public class ElementIndex extends Index {
129

1310
@XmlElement(name = "namespace-uri")
1411
private String namespaceUri;
12+
1513
private String localname;
16-
private String collation;
17-
18-
@XmlElement(name = "range-value-positions")
19-
private Boolean rangeValuePositions;
20-
21-
@XmlElement(name = "invalid-values")
22-
private String invalidValues;
23-
24-
public String getScalarType() {
25-
return scalarType;
26-
}
27-
28-
public void setScalarType(String scalarType) {
29-
this.scalarType = scalarType;
30-
}
3114

3215
public String getNamespaceUri() {
3316
return namespaceUri;
@@ -44,28 +27,4 @@ public String getLocalname() {
4427
public void setLocalname(String localname) {
4528
this.localname = localname;
4629
}
47-
48-
public String getCollation() {
49-
return collation;
50-
}
51-
52-
public void setCollation(String collation) {
53-
this.collation = collation;
54-
}
55-
56-
public Boolean isRangeValuePositions() {
57-
return rangeValuePositions;
58-
}
59-
60-
public void setRangeValuePositions(Boolean rangeValuePositions) {
61-
this.rangeValuePositions = rangeValuePositions;
62-
}
63-
64-
public String getInvalidValues() {
65-
return invalidValues;
66-
}
67-
68-
public void setInvalidValues(String invalidValues) {
69-
this.invalidValues = invalidValues;
70-
}
7130
}

0 commit comments

Comments
 (0)