Package de.nava.informa.impl.hibernate

Examples of de.nava.informa.impl.hibernate.Channel


    List<?> groups = getHibernateTemplate().find("from ChannelGroup"); //  group order by group.title");
    return groups.toArray(new ChannelGroupIF[groups.size()]);
  }

  public ChannelIF createChannel(String title, URL location) throws PersistenceManagerException {
    ChannelIF channel = new Channel(title, location);
    getHibernateTemplate().save(channel);
    return channel;
  }
View Full Code Here


   */
  public ChannelIF createChannel(String title, URL location)
    throws PersistenceManagerException {

    // Create channel object and perform some initialization and save
    final ChannelIF channel = new Channel(title);
    channel.setLocation(location);
    HibernateUtil.saveObject(channel);

    return channel;
  }
View Full Code Here

  public void performUpdates() {
    logger.debug("Starting channel updates loop for " + mgr.getChannelGroup().getTitle());
    mgr.notifyPolling(true);
    Iterator iter = mgr.channelIterator();

    Channel nextChan;
    while (iter.hasNext()) {
      nextChan = (Channel) iter.next();
      logger.info("processing: " + nextChan);
     
// Catch all Exceptions coming out of handleChannel and continue iterating to the next one.
View Full Code Here

TOP

Related Classes of de.nava.informa.impl.hibernate.Channel

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.