com.atlassian.crowd.util.persistence.hibernate
Class ResetableHiLoGeneratorHelper
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.ResetableHiLoGeneratorHelper
public class ResetableHiLoGeneratorHelper
- extends java.lang.Object
This class is used to set the hibernate_unique_key.next_hi value to the high bits of the highest id in the DB, +1
after an import (for now) to maintain state in the database. Please note, the bulk of this logic has been lifted from Confluence.
// TODO this must be refactored into a proper upgrade task, post 1.0
User: Justin
Date: 28/02/2007
Method Summary |
long |
getHiValue()
TODO delete this method once we have an upgrade process in place |
void |
setNextHiValue(java.util.List errors)
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HIBERNATE_UNIQUE_KEY_TABLE
public static final java.lang.String HIBERNATE_UNIQUE_KEY_TABLE
- See Also:
- Constant Field Values
HIBERNATE_UNIQUE_KEY_COLUMN
public static final java.lang.String HIBERNATE_UNIQUE_KEY_COLUMN
- See Also:
- Constant Field Values
ResetableHiLoGeneratorHelper
public ResetableHiLoGeneratorHelper()
getHiValue
public long getHiValue()
throws java.sql.SQLException
- TODO delete this method once we have an upgrade process in place
- Returns:
- long the next hi value
- Throws:
java.sql.SQLException
setNextHiValue
public void setNextHiValue(java.util.List errors)
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Copyright © 2010 Atlassian. All Rights Reserved.