public class DbTimestampSeed extends JvmTimestampSeed
Constructor and Description |
---|
DbTimestampSeed() |
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 DbTimestampSeed()
public Timestamp getTimestamp(org.hibernate.engine.spi.SharedSessionContractImplementor session)
Seed
getTimestamp
in interface Seed<Timestamp>
getTimestamp
in class JvmTimestampSeed
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>
getNextTimestamp
in class JvmTimestampSeed
current
- the current version valuesession
- The session from which this request originates.Copyright © 2010–2018 Jadira Systems. All rights reserved.