org.jadira.usertype.spi.shared
Interface Seed<T>
- All Known Implementing Classes:
- DbTimestampSeed, JvmTimestampSeed
public interface Seed<T>
|
Method Summary |
T |
getNextTimestamp(T current,
org.hibernate.engine.spi.SessionImplementor session)
Increment the version value. |
T |
getTimestamp(org.hibernate.engine.spi.SessionImplementor session)
Generate an initial version value. |
getTimestamp
T getTimestamp(org.hibernate.engine.spi.SessionImplementor session)
- Generate an initial version value.
- Parameters:
session - The session from which this request originates.
- Returns:
- an instance of the type
getNextTimestamp
T getNextTimestamp(T current,
org.hibernate.engine.spi.SessionImplementor session)
- Increment the version value.
- Parameters:
session - The session from which this request originates.current - the current version value
- Returns:
- an instance of the type T
Copyright © 2010-2012 Jadira Systems. All Rights Reserved.