public class PropertyMapper extends DatabaseMapper implements DatabaseImporter
DatabaseMapper.AttributeMapper, DatabaseMapper.EntityIdentifierGenericMapper.Exporter<T>, GenericMapper.Importer<T>jdbcTemplate, legacyTableQueriesDATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX| Constructor and Description |
|---|
PropertyMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
org.springframework.jdbc.core.JdbcOperations jdbcTemplate,
PropertyDAOHibernate propertyDAO,
CrowdBootstrapManager bootstrapManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
importFromDatabase(LegacyImportDataHolder importData)
Migrates data from legacy Crowd database (pre 2.0) to current database (Crowd 2.0+) schema.
|
protected List<Property> |
importPropertiesFromDatabase() |
attributeListToMap, attributeListToMultiAttributeMap, createInternalEntityTemplate, getDateFromDatabase, setJdbcTemplate, setLegacyTableQueriesaddEntities, addEntitiesViaMerge, addEntitiesViaReplicate, addEntity, addEntity, addEntityViaMerge, addEntityViaSave, clearSession, exportXml, getAttributeValue, getBoolean, getBoolean, getDateConverterForXml, getDateFromTimestamp, getDirectoryTypeFromLegacyCode, getLong, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getOptionalValue, getSessionFactory, getString, getValue, importXml, setCDATA, setText, setTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetLegacyTableQueriespublic PropertyMapper(org.hibernate.SessionFactory sessionFactory,
BatchProcessor batchProcessor,
org.springframework.jdbc.core.JdbcOperations jdbcTemplate,
PropertyDAOHibernate propertyDAO,
CrowdBootstrapManager bootstrapManager)
public void importFromDatabase(LegacyImportDataHolder importData) throws ImportException
DatabaseImporterimportFromDatabase in interface DatabaseImporterimportData - stores significant import resultsImportExceptionprotected List<Property> importPropertiesFromDatabase() throws ImportException
ImportExceptionCopyright © 2022 Atlassian. All rights reserved.