public class DatabaseMapper extends GenericMapper
Modifier and Type | Class and Description |
---|---|
protected class |
DatabaseMapper.AttributeMapper |
protected class |
DatabaseMapper.EntityIdentifier |
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
Modifier and Type | Field and Description |
---|---|
protected org.springframework.jdbc.core.JdbcOperations |
jdbcTemplate |
protected LegacyTableQueries |
legacyTableQueries |
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX
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) |
Date |
getDateFromDatabase(String dateString) |
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate) |
void |
setLegacyTableQueries(LegacyTableQueries legacyTableQueries) |
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
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 © 2020 Atlassian. All rights reserved.