I have to complete a javaSE program that I need to read the data from the config file. The required data is extracted from an unknown table and unknown fields - unknown to the program-.I also have a condition as input data.
My solution for writing the program was to ask the user SQL SELECT string as a configuration line of file :
<?xml version="1.0" encoding="UTF-8"?><config><line1><!--Enter SELECT string without 'WHERE PrimaryKey=...'--> SELECT unknownField1,unknownField2 FROM unknownTable </line1></config>
Is this the right solution?