Package org.infoglue.cms.entities.content.impl.simple

Examples of org.infoglue.cms.entities.content.impl.simple.SmallContentVersionImpl


       
        QueryResults results = oql.execute(Database.READONLY);
     
      if (results.hasMore())
          {
        SmallContentVersionImpl contentVersion = (SmallContentVersionImpl)results.next();
        contentVersionVO = contentVersion.getValueObject();
          }

      results.close();
      oql.close();
View Full Code Here


    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);
    }
View Full Code Here

     
      QueryResults results = oql.execute(Database.READONLY);
   
    while (results.hasMore())
        {
          SmallContentVersionImpl contentVersion = (SmallContentVersionImpl)results.next();
          contentVersionVOList.add(contentVersion.getValueObject());
        }
   
    results.close();
    oql.close();
           
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.content.impl.simple.SmallContentVersionImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.