com.atlassian.confluence.importexport.impl
Class HibernateObjectHandleTranslator

java.lang.Object
  extended by com.atlassian.confluence.importexport.impl.HibernateObjectHandleTranslator
All Implemented Interfaces:
com.atlassian.hibernate.extras.HibernateTranslator

public class HibernateObjectHandleTranslator
extends java.lang.Object
implements com.atlassian.hibernate.extras.HibernateTranslator

Creates TransientHibernateHandles to represent Hibernate objects


Constructor Summary
HibernateObjectHandleTranslator(net.sf.hibernate.Session session)
           
 
Method Summary
 java.lang.Object handleToObject(com.atlassian.hibernate.extras.ExportHibernateHandle handle)
           
 java.lang.Object handleToObject(TransientHibernateHandle handle)
          Deprecated. since 5.0. Use Object handleToObject(ExportHibernateHandle) instead
<T> com.google.common.base.Function<T,TransientHibernateHandle>
idToHandle(java.lang.Class<?> clazz)
           
 com.google.common.base.Function<java.lang.Long,TransientHibernateHandle> idToHandleFunction(java.lang.Class<Notification> notificationClass)
          Deprecated. Since 5.3. Use idToHandle(Class)
 TransientHibernateHandle objectOrHandleToHandle(java.lang.Object object)
           
 java.lang.Object objectOrHandleToObject(java.lang.Object object)
           
 com.google.common.base.Function<java.lang.Object,TransientHibernateHandle> objectToHandle()
           
 TransientHibernateHandle objectToHandle(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateObjectHandleTranslator

public HibernateObjectHandleTranslator(net.sf.hibernate.Session session)
Method Detail

objectOrHandleToHandle

public TransientHibernateHandle objectOrHandleToHandle(java.lang.Object object)
Specified by:
objectOrHandleToHandle in interface com.atlassian.hibernate.extras.HibernateTranslator

objectOrHandleToObject

public java.lang.Object objectOrHandleToObject(java.lang.Object object)
Specified by:
objectOrHandleToObject in interface com.atlassian.hibernate.extras.HibernateTranslator

objectToHandle

public TransientHibernateHandle objectToHandle(java.lang.Object object)
Specified by:
objectToHandle in interface com.atlassian.hibernate.extras.HibernateTranslator

objectToHandle

public com.google.common.base.Function<java.lang.Object,TransientHibernateHandle> objectToHandle()

handleToObject

public java.lang.Object handleToObject(com.atlassian.hibernate.extras.ExportHibernateHandle handle)
Specified by:
handleToObject in interface com.atlassian.hibernate.extras.HibernateTranslator

handleToObject

@Deprecated
public java.lang.Object handleToObject(TransientHibernateHandle handle)
Deprecated. since 5.0. Use Object handleToObject(ExportHibernateHandle) instead


idToHandleFunction

@Deprecated
public com.google.common.base.Function<java.lang.Long,TransientHibernateHandle> idToHandleFunction(java.lang.Class<Notification> notificationClass)
Deprecated. Since 5.3. Use idToHandle(Class)


idToHandle

public <T> com.google.common.base.Function<T,TransientHibernateHandle> idToHandle(java.lang.Class<?> clazz)
Since:
5.3


Copyright © 2003-2014 Atlassian. All Rights Reserved.