return contentVersion;
}
public ContentVersionVO getLatestContentVersionVO(Integer languageId, Database db) throws SystemException, Bug, Exception
{
SmallContentVersionImpl contentVersion = null;
OQLQuery oql = db.getOQLQuery( "SELECT cv FROM org.infoglue.cms.entities.content.impl.simple.SmallContentVersionImpl cv WHERE cv.languageId = $1 ORDER BY cv.contentVersionId desc");
oql.bind(languageId);
QueryResults results = oql.execute(Database.READONLY);
if (results.hasMore())
{
contentVersion = (SmallContentVersionImpl)results.next();
}
results.close();
oql.close();
return (contentVersion != null ? contentVersion.getValueObject() : null);
}