com.atlassian.confluence.importexport.xmlimport.persister
Class PersisterOperations

java.lang.Object
  extended by com.atlassian.confluence.importexport.xmlimport.persister.PersisterOperations

public class PersisterOperations
extends Object

Common operations used by various persisters.


Constructor Summary
PersisterOperations()
           
 
Method Summary
 Class getClassForElement(String className, String packageName)
           
 Object getPrimitivePropertyValue(net.sf.hibernate.persister.ClassPersister entityPersister, PrimitiveProperty property)
           
 boolean isPropertyNullable(Class<?> classToPersist, String propertyName, ImportProcessorContext context)
           
 Object literalTypeFromString(net.sf.hibernate.type.Type type, String str)
           
 TransientHibernateHandle readId(Class clazz, String idString, net.sf.hibernate.persister.ClassPersister persister)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersisterOperations

public PersisterOperations()
Method Detail

getPrimitivePropertyValue

public Object getPrimitivePropertyValue(net.sf.hibernate.persister.ClassPersister entityPersister,
                                        PrimitiveProperty property)
                                 throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

literalTypeFromString

public Object literalTypeFromString(net.sf.hibernate.type.Type type,
                                    String str)
                             throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

isPropertyNullable

public boolean isPropertyNullable(Class<?> classToPersist,
                                  String propertyName,
                                  ImportProcessorContext context)
                           throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

getClassForElement

public Class getClassForElement(String className,
                                String packageName)
                         throws ClassNotFoundException
Throws:
ClassNotFoundException

readId

public TransientHibernateHandle readId(Class clazz,
                                       String idString,
                                       net.sf.hibernate.persister.ClassPersister persister)
                                throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException


Copyright © 2003-2011 Atlassian. All Rights Reserved.