Class HiLoGeneratorInitialiserOnSiteRestore
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.HiLoGeneratorInitialiserOnSiteRestore
Sets proper current ids for all tables, based on the information from entities.xml
- Since:
- 8.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionHiLoGeneratorInitialiserOnSiteRestore
(com.atlassian.event.api.EventPublisher eventPublisher, org.hibernate.SessionFactory sessionFactory, RestoreDao restoreDao) -
Method Summary
Modifier and TypeMethodDescriptionstatic Long
Converts to long the input value if the value is Long or BigDecimallong
getMaxId()
void
registerNewId
(Object id) void
-
Constructor Details
-
HiLoGeneratorInitialiserOnSiteRestore
public HiLoGeneratorInitialiserOnSiteRestore(com.atlassian.event.api.EventPublisher eventPublisher, org.hibernate.SessionFactory sessionFactory, RestoreDao restoreDao)
-
-
Method Details
-
registerNewId
-
updateHiLoIdGenerator
- Throws:
BackupRestoreException
-
convertToLongIfItHasNumericValue
Converts to long the input value if the value is Long or BigDecimal- Returns:
- long value or null if the value is not Long or BigDecimal
-
getMaxId
public long getMaxId()
-