Hi team.
Can you explain or correct this.
I don’t understand Bold Statement.
<![CDATA[
import groovy.sql.Sql;
import net.sf.json.JSONObject;
import com.helicalinsight.adhoc.metadata.GroovyUsersSession;
public JSONObject evalCondition() {
JSONObject responseJson = new JSONObject();
String orgName = GroovyUsersSession.getValue('${org}.name');
orgName = orgName.replaceAll("'","");
**sql=Sql.newInstance('jdbc:mysql://localhost:3306/details', 'hiuser', 'hiuser', 'com.mysql.jdbc.Driver');**
sql.eachRow( 'select * from details' ) {
if(orgName.equalsIgnoreCase(it.organization)){
responseJson.put("driver",it.driver);
responseJson.put("url",it.url);
responseJson.put("user",it.user);
responseJson.put("password",it.password);
}
}
return responseJson;
}
]]>
</Condition>