agave-realtime/realtime-core/src/main/java/org/iplantc/service/realtime/dao/RealtimeChannelDao.java
/**
	 * Merges the active {@link RealtimeChannel} back with the saved instance. Associations are
	 * not updated.
	 * @param tag
	 * @return
	 * @throws RealtimeChannelException
	 */
Merges the active  RealtimeChannel back with the saved instance. Associations are
not updated.
@param tag
@return
@throws RealtimeChannelException
Merges the active RealtimeChannel back with the saved instance . Associations are not updated . @param tag @return @throws RealtimeChannelException
public RealtimeChannel merge(RealtimeChannel tag) throws RealtimeChannelException
	{
		try
		{
			HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			RealtimeChannel mergedTag = (RealtimeChannel)session.merge(tag);
			return mergedTag;
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new RealtimeChannelException("Failed to merge tag", ex);
		}
		finally
		{
			try { HibernateUtil.commitTransaction(); } catch (Throwable e) {}
		}
	}
public RealtimeChannel merge ( RealtimeChannel tag ) throws RealtimeChannelException { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; RealtimeChannel mergedTag = ( RealtimeChannel ) session . merge ( tag ) ; return mergedTag ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new RealtimeChannelException ( "Failed to merge tag" , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Throwable e ) { } } }
Merges the active {@link RealtimeChannel} back with the saved instance.
Merges the active { @link RealtimeChannel } back with the saved instance .
//session.flush();