Class HiLoGeneratorInitialiserOnSiteRestore
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.HiLoGeneratorInitialiserOnSiteRestore
-
public class HiLoGeneratorInitialiserOnSiteRestore extends Object
Sets proper current ids for all tables, based on the information from entities.xml- Since:
- 8.3.0
-
-
Constructor Summary
Constructors Constructor Description HiLoGeneratorInitialiserOnSiteRestore(com.atlassian.event.api.EventPublisher eventPublisher, org.hibernate.SessionFactory sessionFactory, RestoreDao restoreDao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Long
convertToLongIfItHasNumericValue(Object value)
Converts to long the input value if the value is Long or BigDecimallong
getMaxId()
void
registerNewId(Object id)
void
updateHiLoIdGenerator()
-
-
-
Constructor Detail
-
HiLoGeneratorInitialiserOnSiteRestore
public HiLoGeneratorInitialiserOnSiteRestore(com.atlassian.event.api.EventPublisher eventPublisher, org.hibernate.SessionFactory sessionFactory, RestoreDao restoreDao)
-
-
Method Detail
-
registerNewId
public void registerNewId(Object id)
-
updateHiLoIdGenerator
public void updateHiLoIdGenerator() throws BackupRestoreException
- Throws:
BackupRestoreException
-
convertToLongIfItHasNumericValue
public static Long convertToLongIfItHasNumericValue(Object value)
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()
-
-