User 7c5047cd7b
12-04-2006 10:09:00
Hello,
I would like to know whether you have any bug report about setFilterQuery. It doesn't work in my tool.
The following is my code.
I would appreciate your advice.
-------------------------------------------------
con = getConnection();
conHandler = new ConnectionHandler();
searcher = new JChemSearch();
JChemSearch.clearCache();
conHandler.setConnection(con);
searcher.setConnectionHandler(conHandler);
String structureTableName = "SC_MOL_SA";
if(editBean.getDbID() != null)
{
String filterSQL = "select cd_id from " + structureTableName + " where cd_link_id = " + editBean.getDbID() ;
searcher.setFilterQuery(filterSQL);
}
else
{
return CHECK_OK;
}
searcher.setQueryStructure(editBean.getSaMol());
searcher.setSearchType(JChemSearch.EXACT);
searcher.setStructureTable(structureTableName);
searcher.setReturnsNonHits(false);
searcher.setWaitingForResult(true);
searcher.run();
----------------------------------------------------------------
My Jchem is 3.1.6
My DB is MySQL 4.1.3
I would like to know whether you have any bug report about setFilterQuery. It doesn't work in my tool.
The following is my code.
I would appreciate your advice.
-------------------------------------------------
con = getConnection();
conHandler = new ConnectionHandler();
searcher = new JChemSearch();
JChemSearch.clearCache();
conHandler.setConnection(con);
searcher.setConnectionHandler(conHandler);
String structureTableName = "SC_MOL_SA";
if(editBean.getDbID() != null)
{
String filterSQL = "select cd_id from " + structureTableName + " where cd_link_id = " + editBean.getDbID() ;
searcher.setFilterQuery(filterSQL);
}
else
{
return CHECK_OK;
}
searcher.setQueryStructure(editBean.getSaMol());
searcher.setSearchType(JChemSearch.EXACT);
searcher.setStructureTable(structureTableName);
searcher.setReturnsNonHits(false);
searcher.setWaitingForResult(true);
searcher.run();
----------------------------------------------------------------
My Jchem is 3.1.6
My DB is MySQL 4.1.3