public class DatabaseMapper extends GenericMapper
Modifier and Type | Class and Description |
---|---|
protected class |
DatabaseMapper.AttributeMapper |
protected class |
DatabaseMapper.EntityIdentifier |
Modifier and Type | Field and Description |
---|---|
protected org.springframework.jdbc.core.JdbcOperations |
jdbcTemplate |
protected LegacyTableQueries |
legacyTableQueries |
DATABASE_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX, XML_DATE_FORMAT
Constructor and Description |
---|
DatabaseMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
org.springframework.jdbc.core.JdbcOperations jdbcTemplate) |
Modifier and Type | Method and Description |
---|---|
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) |
addEntities, addEntity, addEntityViaMerge, addEntityViaSave, getAttributeValue, getDateAsFormattedString, getDateFromDatabase, getDateFromXml, getDirectoryTypeFromLegacyCode, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getSessionFactory
protected org.springframework.jdbc.core.JdbcOperations jdbcTemplate
protected LegacyTableQueries legacyTableQueries
public DatabaseMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
protected InternalEntityTemplate createInternalEntityTemplate(Long id, String name, Date createDate, Date updatedDate, boolean active)
public Map<String,String> attributeListToMap(List<Map<String,String>> attributes)
public Map<String,Set<String>> attributeListToMultiAttributeMap(List<Map<String,String>> attributes)
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
public void setLegacyTableQueries(LegacyTableQueries legacyTableQueries)
Copyright © 2016 Atlassian. All rights reserved.