private BaseClassificationRecords(RecordServices recordServices) throws RecordServicesException { this.recordServices = recordServices; Transaction transaction = new Transaction(); records.add(category_A = createCategory(transaction, "category_A", null)); records.add(category_A_1 = createCategory(transaction, "category_A_1", category_A)); records.add(category_A_2 = createCategory(transaction, "category_A_2", category_A)); records.add(category_B = createCategory(transaction, "category_B", null)); records.add(category_B_1 = createCategory(transaction, "category_B_1", category_B)); records.add(category_B_11 = createCategory(transaction, "category_B_11", category_B_1)); records.add(category_B_12 = createCategory(transaction, "category_B_12", category_B_1)); records.add(category_C = createCategory(transaction, "category_C", null)); recordServices.execute(transaction); }
private BaseClassificationComplexRecords(RecordServices recordServices) throws RecordServicesException { this.recordServices = recordServices; Transaction transaction = new Transaction(); records.add(category_A = createCategory(transaction, "category_A", null)); records.add( subCategory_SA1 = createSubCategory(transaction, "subCategory_SA1", category_A, null)); records.add( subCategory_SA2 = createSubCategory(transaction, "subCategory_SA2", category_A, null)); records.add( subCategory_SA2_1 = createSubCategory(transaction, "subCategory_SA2_1", null, subCategory_SA2)); records.add(category_A_1 = createCategory(transaction, "category_A_1", category_A)); records.add(category_A_2 = createCategory(transaction, "category_A_2", category_A)); records.add(category_B = createCategory(transaction, "category_B", null)); records.add(category_B_1 = createCategory(transaction, "category_B_1", category_B)); records.add(category_C = createCategory(transaction, "category_C", null)); recordServices.execute(transaction); }