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 String
NAME_BUCKET_CLOB_STRING_TYPE
static String
NAME_CRYPTOGRAPHIC_KEY_TYPE
static String
NAME_CUSTOM_CLOB_TYPE
static String
NAME_INSTANT_TYPE
static String
NAME_NAMESPACE_USER_TYPE
static String
NAME_SPOOLING_BLOB_INPUT_STREAM_TYPE
static String
NAME_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 Object
maybeInitializeIfProxy(Object object)
If the given object is a Hibernate proxy, then unwrap the proxy and return the underlying initialized entity.boolean
parseCustomType(Writer writer, org.hibernate.type.Type type, Object value, String xmlValue)
You will need to insert code here everytime you add a custom type.void
toGenericXML(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:
toGenericXML
in classXMLDatabinder
- Throws:
IOException
org.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:
parseCustomType
in 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:
maybeInitializeIfProxy
in classXMLDatabinder
- Since:
- 7.14
-
-