com.atlassian.crowd.migration.legacy.database
Class DatabaseMapper

java.lang.Object
  extended by com.atlassian.crowd.migration.GenericMapper
      extended by com.atlassian.crowd.migration.legacy.database.DatabaseMapper
Direct Known Subclasses:
ApplicationMapper, DirectoryMapper, GroupMapper, PropertyMapper, RoleMapper, SALPropertyMapper, UserMapper

public class DatabaseMapper
extends GenericMapper


Nested Class Summary
protected  class DatabaseMapper.AttributeMapper
           
protected  class DatabaseMapper.EntityIdentifier
           
 
Field Summary
protected  org.springframework.jdbc.core.JdbcOperations jdbcTemplate
           
protected  LegacyTableQueries legacyTableQueries
           
 
Fields inherited from class com.atlassian.crowd.migration.GenericMapper
DATABASE_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX, XML_DATE_FORMAT
 
Constructor Summary
DatabaseMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
           
 
Method Summary
 Map<String,String> attributeListToMap(List<Map<String,String>> attributes)
           
 Map<String,Set<String>> attributeListToMultiAttributeMap(List<Map<String,String>> attributes)
           
protected  InternalEntityTemplate createInternalEntityTemplate(Long id, String name, Date createDate, Date updatedDate, boolean active)
           
 void setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
           
 void setLegacyTableQueries(LegacyTableQueries legacyTableQueries)
           
 
Methods inherited from class com.atlassian.crowd.migration.GenericMapper
addEntities, addEntity, addEntityViaMerge, addEntityViaSave, getAttributeValue, getDateAsFormattedString, getDateFromDatabase, getDateFromXml, getDirectoryTypeFromLegacyCode, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdbcTemplate

protected org.springframework.jdbc.core.JdbcOperations jdbcTemplate

legacyTableQueries

protected LegacyTableQueries legacyTableQueries
Constructor Detail

DatabaseMapper

public DatabaseMapper(org.hibernate.SessionFactory sessionFactory,
                      BatchProcessor batchProcessor,
                      org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
Method Detail

createInternalEntityTemplate

protected InternalEntityTemplate createInternalEntityTemplate(Long id,
                                                              String name,
                                                              Date createDate,
                                                              Date updatedDate,
                                                              boolean active)

attributeListToMap

public Map<String,String> attributeListToMap(List<Map<String,String>> attributes)

attributeListToMultiAttributeMap

public Map<String,Set<String>> attributeListToMultiAttributeMap(List<Map<String,String>> attributes)

setJdbcTemplate

public void setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)

setLegacyTableQueries

public void setLegacyTableQueries(LegacyTableQueries legacyTableQueries)


Copyright © 2013 Atlassian. All Rights Reserved.