@@ -1297,6 +1297,25 @@ public static void setupAppServicesGeoConstraint(String dbName) throws Exception
12971297 public static void addElementRangeIndexTemporalAxis (String dbName , String axisName ,
12981298 String namespaceStart , String localnameStart , String namespaceEnd , String localnameEnd ) throws Exception
12991299 {
1300+ /**
1301+ {
1302+ "axis-name": "eri-json-system",
1303+ "axis-start": {
1304+ "element-reference": {
1305+ "namespace-uri": "",
1306+ "localname": "eri-system-start",
1307+ "scalar-type": "dateTime"
1308+ }
1309+ },
1310+ "axis-end": {
1311+ "element-reference": {
1312+ "namespace-uri": "",
1313+ "localname": "eri-system-end",
1314+ "scalar-type": "dateTime"
1315+ }
1316+ }
1317+ }
1318+ */
13001319 ObjectMapper mapper = new ObjectMapper ();
13011320 ObjectNode rootNode = mapper .createObjectNode ();
13021321
@@ -1324,38 +1343,6 @@ public static void addElementRangeIndexTemporalAxis(String dbName, String axisNa
13241343
13251344 System .out .println (rootNode .toString ());
13261345
1327-
1328- /***
1329- JSONObject rootNode = new JSONObject(jsonOrderedMap);
1330-
1331-
1332-
1333- JSONObject axisStart = new JSONObject();
1334- JSONObject elementReferenceStart = new JSONObject();
1335-
1336- elementReferenceStart.put("namespace-uri", namespaceStart);
1337- elementReferenceStart.put("localname", localnameStart);
1338- elementReferenceStart.put("scalar-type", "dateTime");
1339-
1340- axisStart.put("element-reference", elementReferenceStart);
1341-
1342- JSONObject axisEnd = new JSONObject();
1343- JSONObject elementReferenceEnd = new JSONObject();
1344-
1345- elementReferenceEnd.put("namespace-uri", namespaceEnd);
1346- elementReferenceEnd.put("localname", localnameEnd);
1347- elementReferenceEnd.put("scalar-type", "dateTime");
1348-
1349- axisEnd.put("element-reference", elementReferenceEnd);
1350-
1351- rootNode.put("axis-end", axisEnd);
1352- rootNode.put("axis-start", axisStart);
1353- rootNode.put( "axis-name", axisName);
1354-
1355- System.out.println(rootNode.toString());
1356- ***/
1357-
1358-
13591346 DefaultHttpClient client = new DefaultHttpClient ();
13601347 client .getCredentialsProvider ().setCredentials (
13611348 new AuthScope ("localhost" , 8002 ),
0 commit comments