private void insertLineitems(int numInserts, int firstOrderNode,
			int numOrders, int firstPartsuppNode, int numPartsupps) {
		for (int i = 0; i < numInserts; i++) {
			ArrayList<Integer> pk;
			int orderNode, linenumber;
			do {
				pk = new ArrayList<Integer>(2);
				orderNode = firstOrderNode + r.nextInt(numOrders);
				linenumber = RandomUtils.randomInt();
				pk.add(orderNode);
				pk.add(linenumber);
			} while (lineItemPK.contains(pk));
			lineItemPK.add(pk);
			Node order = database.getNodeById(orderNode);
			int partsuppNode = firstPartsuppNode + r.nextInt(numPartsupps);
			Node partsupp = database.getNodeById(partsuppNode);
			Node node = database.createNode();
			node.createRelationshipTo(order, RelTypes.MEMBER_OF_ORDER);
			node.createRelationshipTo(partsupp, RelTypes.HAS_PARTSUPP);
			node.setProperty("L_LineNumber", linenumber);
			node.setProperty("L_Quantity", RandomUtils.randomInt());
			node.setProperty("L_ExtendedPrice", RandomUtils.randomDouble(6, 2));
			node.setProperty("L_Discount", RandomUtils.randomDouble(6, 2));
			node.setProperty("L_Tax", RandomUtils.randomDouble(6, 2));
			node.setProperty("L_ReturnFlag", RandomUtils.randomString(32));
			node.setProperty("L_LineStatus", RandomUtils.randomString(32));
			node.setProperty("L_ShipDate", RandomUtils.randomDate());
			node.setProperty("L_CommitDate", RandomUtils.randomDate());
			node.setProperty("L_ReceiptDate", RandomUtils.randomDate());
			node.setProperty("L_ShipInstruct", RandomUtils.randomString(32));
			node.setProperty("L_ShipMode", RandomUtils.randomString(32));
			node.setProperty("L_Comment", RandomUtils.randomString(32));
			node.setProperty("skip", RandomUtils.randomString(32));
			Label myLabel = DynamicLabel.label("Lineitem");
			node.addLabel(myLabel);
		}
	}