Class DatabaseMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.legacy.database.DatabaseMapper
- Direct Known Subclasses:
ApplicationMapper
,DirectoryMapper
,GroupMapper
,PropertyMapper
,RoleMapper
,SALPropertyMapper
,UserMapper
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
Nested classes/interfaces inherited from class com.atlassian.crowd.migration.GenericMapper
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.jdbc.core.JdbcOperations
protected LegacyTableQueries
Fields inherited from class com.atlassian.crowd.migration.GenericMapper
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX
-
Constructor Summary
ConstructorDescriptionDatabaseMapper
(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate) -
Method Summary
Modifier and TypeMethodDescriptionattributeListToMap
(List<Map<String, String>> attributes) attributeListToMultiAttributeMap
(List<Map<String, String>> attributes) protected InternalEntityTemplate
createInternalEntityTemplate
(Long id, String name, Date createDate, Date updatedDate, boolean active) getDateFromDatabase
(String dateString) void
setJdbcTemplate
(org.springframework.jdbc.core.JdbcOperations jdbcTemplate) void
setLegacyTableQueries
(LegacyTableQueries legacyTableQueries) Methods inherited from class com.atlassian.crowd.migration.GenericMapper
addEntities, addEntitiesViaMerge, addEntitiesViaReplicate, addEntity, addEntity, addEntityViaMerge, addEntityViaSave, clearSession, exportXml, getAttributeValue, getBoolean, getBoolean, getDateConverterForXml, getDateFromTimestamp, getDirectoryTypeFromLegacyCode, getLong, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getOptionalValue, getSessionFactory, getString, getValue, importXml, setCDATA, setText, setTimestamp
-
Field Details
-
jdbcTemplate
protected org.springframework.jdbc.core.JdbcOperations jdbcTemplate -
legacyTableQueries
-
-
Constructor Details
-
DatabaseMapper
public DatabaseMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
-
-
Method Details
-
createInternalEntityTemplate
protected InternalEntityTemplate createInternalEntityTemplate(Long id, String name, Date createDate, Date updatedDate, boolean active) -
attributeListToMap
-
attributeListToMultiAttributeMap
-
getDateFromDatabase
-
setJdbcTemplate
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate) -
setLegacyTableQueries
-