shown here is a method that is for inserting values into columns of an SQLite database. I have never worked with a database with this many columns before. and there are over 15 tables in this database. I did not design the database, someone else did.
how do I refactor this android method if possible to make it better or less verbose, it looks like i can't use a collections object like ArrayList because all of the arguments are not one type, there are multiple types like String, Float, and int.
so this would require making a custom java function, however that does not look like it is worth the effort. and there are 15 different tables that would require 15 custom objects.
some of what is general knowledge would suggest that too many arguments in a method is more than 4 or 5. Not sure why that is the common accepted way of thinking. If that is true that my java method needs a haircut real bad. or worse an enema.
any ideas?
public void insertNewRowInspectionPlan(int testOneInput, String testTwoInput,
int testThreeInput, float testFourInput, int TestFiveInput, int testSixInput,
int testSevenInput, int testEightInput, int TestNineInput, float testTenInput,
int testElevenInput, String testTwelveInput){
ContentValues contentValues = new ContentValues();
contentValues.put(COLUMN_1, testOneInput);
contentValues.put(COLUMN_2, testTwoInput);
contentValues.put(COLUMN_3, testTheeInput);
contentValues.put(COLUMN_4, testFourInput);
contentValues.put(COLUMN_5, testFiveInput);
contentValues.put(COLUMN_6, testSixInput);
contentValues.put(COLUMN_7, testSevenInput);
contentValues.put(COLUMN_8, testEightInput);
contentValues.put(COLUMN_9, testNineInput);
contentValues.put(COLUMN_10, testTenInput);
contentValues.put(COLUMN_11, testElevenInput);
contentValues.put(COLUMN_12, testTwelveInput);
sqLiteDatabase.insert(INSPECTION_PLAN_TRANSACTION, null, contentValues);
}