public class JvmTimestampSeed extends Object implements Seed<Timestamp>, Serializable
Constructor and Description |
---|
JvmTimestampSeed() |
Modifier and Type | Method and Description |
---|---|
Timestamp |
getNextTimestamp(Timestamp current,
org.hibernate.engine.spi.SharedSessionContractImplementor session)
Increment the version value.
|
Timestamp |
getTimestamp(org.hibernate.engine.spi.SharedSessionContractImplementor session)
Generate an initial version value.
|
public JvmTimestampSeed()
public Timestamp getTimestamp(org.hibernate.engine.spi.SharedSessionContractImplementor session)
Seed
getTimestamp
in interface Seed<Timestamp>
session
- The session from which this request originates.public Timestamp getNextTimestamp(Timestamp current, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Seed
getNextTimestamp
in interface Seed<Timestamp>
current
- the current version valuesession
- The session from which this request originates.Copyright © 2010–2018 Jadira Systems. All rights reserved.