* getString() method is called on a LONG field on an Oracle database. Because of this,
* the object is loaded from liferay and DotConnect is not used
* http://jira.dotmarketing.net/browse/DOTCMS-1911
*/
for (int j = 0; j < l.size(); j++) {
Image im = (Image)l.get(j);
DotConnect dc = new DotConnect();
dc.setSQL("insert into image values (?,?)");
if(!UtilMethods.isSet(im.getImageId()) && DbConnectionFactory.isOracle()){
continue;
}
dc.addParam(im.getImageId());
dc.addParam(im.getText());
dc.getResults();
}
}else if(portlet){
for (int j = 0; j < l.size(); j++) {
HashMap<String, String> dcResults = (HashMap<String,String>)l.get(j);