node.setRelativePath(relPath); } else if (literal.getType() == QueryConstants.TYPE_DATE) { SimpleDateFormat format = new SimpleDateFormat(DATE_PATTERN); Date date = format.parse(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setDateValue(date); } else if (literal.getType() == QueryConstants.TYPE_DOUBLE) { double d = Double.parseDouble(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setDoubleValue(d); } else if (literal.getType() == QueryConstants.TYPE_LONG) { long l = Long.parseLong(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setLongValue(l); } else if (literal.getType() == QueryConstants.TYPE_STRING) { node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setStringValue(literal.getValue()); } else if (literal.getType() == QueryConstants.TYPE_TIMESTAMP) { Calendar c = ISO8601.parse(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setDateValue(c.getTime());
node.setRelativePath(relPath); } else if (literal.getType() == QueryConstants.TYPE_DATE) { SimpleDateFormat format = new SimpleDateFormat(DATE_PATTERN); Date date = format.parse(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setDateValue(date); } else if (literal.getType() == QueryConstants.TYPE_DOUBLE) { double d = Double.parseDouble(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setDoubleValue(d); } else if (literal.getType() == QueryConstants.TYPE_LONG) { long l = Long.parseLong(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setLongValue(l); } else if (literal.getType() == QueryConstants.TYPE_STRING) { node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setStringValue(literal.getValue()); } else if (literal.getType() == QueryConstants.TYPE_TIMESTAMP) { Calendar c = ISO8601.parse(literal.getValue()); node = factory.createRelationQueryNode(parent, operationType); node.setRelativePath(relPath); node.setDateValue(c.getTime());