public class

TimestampType

extends AbstractSingleColumnStandardBasicType<T>
implements LiteralType<T> VersionType<T>
java.lang.Object
   ↳ org.hibernate.type.AbstractStandardBasicType<T>
     ↳ org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
       ↳ org.hibernate.type.TimestampType
Known Direct Subclasses

Class Overview

A type that maps between TIMESTAMP and java.sql.Timestamp

Summary

Fields
public static final TimestampType INSTANCE
Public Constructors
TimestampType()
Public Methods
Date fromStringValue(String xml)
Consume the given string representation back into this types java form.
Comparator<Date> getComparator()
Get a comparator for version values.
String getName()
Returns the abbreviated name of the type.
String[] getRegistrationKeys()
Get the names under which this type should be registered in the type registry.
Date next(Date current, SessionImplementor session)
String objectToSQLString(Date value, Dialect dialect)
Date seed(SessionImplementor session)
Generate an initial version.
[Expand]
Inherited Methods
From class org.hibernate.type.AbstractSingleColumnStandardBasicType
From class org.hibernate.type.AbstractStandardBasicType
From class java.lang.Object
From interface org.hibernate.type.BasicType
From interface org.hibernate.type.LiteralType
From interface org.hibernate.type.SingleColumnType
From interface org.hibernate.type.StringRepresentableType
From interface org.hibernate.type.Type
From interface org.hibernate.type.VersionType
From interface org.hibernate.type.XmlRepresentableType

Fields

public static final TimestampType INSTANCE

Public Constructors

public TimestampType ()

Public Methods

public Date fromStringValue (String xml)

Consume the given string representation back into this types java form.

Parameters
xml The string representation to be consumed.
Returns
  • The java type representation

public Comparator<Date> getComparator ()

Get a comparator for version values.

Returns
  • The comparator to use to compare different version values.

public String getName ()

Returns the abbreviated name of the type.

Returns
  • String the Hibernate type name

public String[] getRegistrationKeys ()

Get the names under which this type should be registered in the type registry.

Returns
  • The keys under which to register this type.

public Date next (Date current, SessionImplementor session)

public String objectToSQLString (Date value, Dialect dialect)

Throws
Exception

public Date seed (SessionImplementor session)

Generate an initial version.

Parameters
session The session from which this request originates.
Returns
  • an instance of the type