Class AtlassianXMLDatabinder
- java.lang.Object
-
- com.atlassian.confluence.impl.hibernate.extras.XMLDatabinder
-
- com.atlassian.confluence.importexport.impl.AtlassianXMLDatabinder
-
public class AtlassianXMLDatabinder extends XMLDatabinder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.confluence.impl.hibernate.extras.XMLDatabinder
XMLDatabinder.FieldWithType
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_BUCKET_CLOB_STRING_TYPEstatic StringNAME_CRYPTOGRAPHIC_KEY_TYPEstatic StringNAME_CUSTOM_CLOB_TYPEstatic StringNAME_INSTANT_TYPEstatic StringNAME_NAMESPACE_USER_TYPEstatic StringNAME_SPOOLING_BLOB_INPUT_STREAM_TYPEstatic StringNAME_USER_KEY_TYPE-
Fields inherited from class com.atlassian.confluence.impl.hibernate.extras.XMLDatabinder
bucketHandles, CARRIAGE_RETURN, CONST_CLOSE_CDATA, CONST_OPEN_CDATA, encoding, END_TAG_CARRIAGE_RETURN, excludedHandles, handles, ISO_DATE_FORMAT, ISO_TIMESTAMP_FORMAT, LEFT_CHEVRON, nextHandles, processedHandles, RIGHT_CHEVRON, START_CLOSE_TAG, translator
-
-
Constructor Summary
Constructors Constructor Description AtlassianXMLDatabinder(org.hibernate.engine.spi.SessionFactoryImplementor factory, String encoding, HibernateObjectHandleTranslator translator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectmaybeInitializeIfProxy(Object object)If the given object is a Hibernate proxy, then unwrap the proxy and return the underlying initialized entity.booleanparseCustomType(Writer writer, org.hibernate.type.Type type, Object value, String xmlValue)You will need to insert code here everytime you add a custom type.voidtoGenericXML(Writer writer, ExportProgress progressMeter)-
Methods inherited from class com.atlassian.confluence.impl.hibernate.extras.XMLDatabinder
addClass, associatedObjectFound, bind, bindAll, commit, excludeClass, excludeClassFromEntityExport, excludeClassFromReferenceExport, getExportableFields, getPersister, incrementProgress, incrementProgressTotal, isExcludedAsProperty, isExcludedOrProcessed, objectWritten, renderComponentType, renderEntityType, renderEnumType, renderOtherType, renderProperty, unbind, unbindAll, writeObject, writeObjects
-
-
-
-
Field Detail
-
NAME_BUCKET_CLOB_STRING_TYPE
public static final String NAME_BUCKET_CLOB_STRING_TYPE
-
NAME_CUSTOM_CLOB_TYPE
public static final String NAME_CUSTOM_CLOB_TYPE
-
NAME_NAMESPACE_USER_TYPE
public static final String NAME_NAMESPACE_USER_TYPE
-
NAME_CRYPTOGRAPHIC_KEY_TYPE
public static final String NAME_CRYPTOGRAPHIC_KEY_TYPE
-
NAME_SPOOLING_BLOB_INPUT_STREAM_TYPE
public static final String NAME_SPOOLING_BLOB_INPUT_STREAM_TYPE
-
NAME_USER_KEY_TYPE
public static final String NAME_USER_KEY_TYPE
-
NAME_INSTANT_TYPE
public static final String NAME_INSTANT_TYPE
-
-
Constructor Detail
-
AtlassianXMLDatabinder
public AtlassianXMLDatabinder(org.hibernate.engine.spi.SessionFactoryImplementor factory, String encoding, HibernateObjectHandleTranslator translator)
-
-
Method Detail
-
toGenericXML
public void toGenericXML(Writer writer, ExportProgress progressMeter) throws IOException, org.hibernate.HibernateException
- Overrides:
toGenericXMLin classXMLDatabinder- Throws:
IOExceptionorg.hibernate.HibernateException
-
parseCustomType
public boolean parseCustomType(Writer writer, org.hibernate.type.Type type, Object value, String xmlValue) throws IOException
You will need to insert code here everytime you add a custom type. See alsoAbstractObjectPersister#getPrimitivePropertyValue(ClassPersister, PrimitiveProperty).- Specified by:
parseCustomTypein classXMLDatabinder- Throws:
IOException
-
maybeInitializeIfProxy
protected Object maybeInitializeIfProxy(Object object)
If the given object is a Hibernate proxy, then unwrap the proxy and return the underlying initialized entity.Note that the superclass implemention of this method looks for and unwraps Hibernate2 proxies, which we no longer use, so delegating to the super impl is unnecessary.
- Overrides:
maybeInitializeIfProxyin classXMLDatabinder- Since:
- 7.14
-
-