Exporter: inaccuracy in API docs

User b8eed45673

02-10-2008 18:26:18

Quote:
setFieldList





public void setFieldList(java.lang.String fieldList)





The field names in the output file match the name of the table fields by default, can be overridden by setOutputFieldNames(String).
But method setOutputFieldNames works only when custom SQL statment applied by setSelectStatement(String).
Quote:
Only effective if a SELECT statement is specified by setSelectStatement(String).
So setOutputFieldNames can't be applied with setFieldList

ChemAxon 9c0afc9aaf

02-10-2008 18:49:07

Hi,





You are right, thank you for your comment, we have updated the API documentation so it will not be ambiguous from the next release.





Best regards,





Szilard

User b8eed45673

02-10-2008 18:56:07

ok, please give me advise how to set a custom fieldnames by using setFieldList

ChemAxon 9c0afc9aaf

02-10-2008 19:12:11

Hi,





You cannot set custom field names using setFieldList() at the moment.


I suggest using setSelectStatement(String) instead.





I agree that the latter a bit less convenient, but I believe it is not extremely complicated either.





We are considering that on the long run we should allow the same option for setFieldList() too.





Best regards,





Szilard