Class Content2ContentRelationEntityDataConverter
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.backup.exporters.converters.AbstractDatabaseDataConverter
-
- com.atlassian.confluence.impl.backuprestore.backup.exporters.converters.Content2ContentRelationEntityDataConverter
-
- All Implemented Interfaces:
Converter
public class Content2ContentRelationEntityDataConverter 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 Content2ContentRelationEntityDataConverter(ExportableEntityInfo entityInfo, HibernateMetadataHelper hibernateMetadataHelper, StatisticsCollector statisticsCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addExternalReferenceToObject(Map<String,Object> dbObjectProperties, EntityObjectReadyForExport object, org.hibernate.type.ManyToOneType type, String columnName, String propertyName)
Converts reference property into exportable format and adds it to the exportable objectprotected 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
calculateReferencedClass, convertToBoolean, convertToInteger, convertToLong, convertToObjectReadyForSerialisationImpl, convertToObjectsReadyForSerialisation, getContentClassByContentType, getEntityInfo, getEntityInfo
-
-
-
-
Constructor Detail
-
Content2ContentRelationEntityDataConverter
public Content2ContentRelationEntityDataConverter(ExportableEntityInfo entityInfo, HibernateMetadataHelper hibernateMetadataHelper, StatisticsCollector statisticsCollector)
-
-
Method Detail
-
getHibernateEntityClass
protected Class<?> getHibernateEntityClass(Map<String,Object> objectProperties)
- Specified by:
getHibernateEntityClass
in classAbstractDatabaseDataConverter
- Returns:
- the java class associated with the entity
-
addExternalReferenceToObject
protected void addExternalReferenceToObject(Map<String,Object> dbObjectProperties, EntityObjectReadyForExport object, org.hibernate.type.ManyToOneType type, String columnName, String propertyName) throws DataConversionException
Description copied from class:AbstractDatabaseDataConverter
Converts reference property into exportable format and adds it to the exportable object- Overrides:
addExternalReferenceToObject
in classAbstractDatabaseDataConverter
- Parameters:
dbObjectProperties
- Map of object propertiesobject
- Object in exportable format to which reference will be addedtype
- Type of the columncolumnName
- Column name in DBpropertyName
- Property name- 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
-
-