Class ContentEntityDatabaseDataConverter
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.exporters.converters.AbstractDatabaseDataConverter
-
- com.atlassian.confluence.impl.backuprestore.backup.exporters.converters.ContentEntityDatabaseDataConverter
-
- All Implemented Interfaces:
Converter
public class ContentEntityDatabaseDataConverter extends AbstractDatabaseDataConverter
- Since:
- 7.20.0
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.impl.backuprestore.backup.exporters.converters.AbstractDatabaseDataConverter
hibernateMetadataHelper, statisticsCollector
-
-
Constructor Summary
Constructors Constructor Description ContentEntityDatabaseDataConverter(Collection<ExportableEntityInfo> entityInfos, HibernateMetadataHelper hibernateMetadataHelper, StatisticsCollector statisticsCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EntityObjectReadyForExport
convertToObjectReadyForSerialisation(DbRawObjectData dbObject)
Converts db object into object ready for serialisationprotected Class<?>
getHibernateEntityClass(Map<String,Object> objectProperties)
-
Methods inherited from class com.atlassian.confluence.impl.backuprestore.backup.exporters.converters.AbstractDatabaseDataConverter
addExternalReferenceToObject, calculateReferencedClass, convertToBoolean, convertToInteger, convertToLong, convertToObjectReadyForSerialisationImpl, convertToObjectsReadyForSerialisation, getContentClassByContentType, getEntityInfo, getEntityInfo
-
-
-
-
Constructor Detail
-
ContentEntityDatabaseDataConverter
public ContentEntityDatabaseDataConverter(Collection<ExportableEntityInfo> entityInfos, HibernateMetadataHelper hibernateMetadataHelper, StatisticsCollector statisticsCollector)
-
-
Method Detail
-
getHibernateEntityClass
protected Class<?> getHibernateEntityClass(Map<String,Object> objectProperties) throws DataConversionException
- Specified by:
getHibernateEntityClass
in classAbstractDatabaseDataConverter
- Returns:
- the java class associated with the entity
- Throws:
DataConversionException
- Overriding classes may throw this exception when they convert data into exportable format
-
convertToObjectReadyForSerialisation
protected EntityObjectReadyForExport convertToObjectReadyForSerialisation(DbRawObjectData dbObject) throws DataConversionException
Description copied from class:AbstractDatabaseDataConverter
Converts db object into object ready for serialisation- Specified by:
convertToObjectReadyForSerialisation
in classAbstractDatabaseDataConverter
- Parameters:
dbObject
- Raw db object data that should be converted- Returns:
- Object that is ready for export
- Throws:
DataConversionException
- Overriding classes may throw this exception when they convert data into exportable format
-
-