oql = db.getOQLQuery("CALL SQL SELECT c.contentId, c.name, c.publishDateTime, c.expireDateTime, c.isBranch, c.isProtected, c.isDeleted, c.creator, c.contentTypeDefinitionId, c.repositoryId, c.parentContentId FROM cmContent c where c.contentTypeDefinitionId IN(" + sb.toString() + ") AS org.infoglue.cms.entities.content.impl.simple.SmallContentImpl");
QueryResults results = oql.execute(Database.READONLY);
while(results.hasMore())
{
SmallContentImpl content = (SmallContentImpl)results.next();
contents.add(content.getValueObject());
}
results.close();
oql.close();