public class

DateType

extends AbstractSingleColumnStandardBasicType<T>
implements IdentifierType<T> LiteralType<T>
java.lang.Object
   ↳ org.hibernate.type.AbstractStandardBasicType<T>
     ↳ org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
       ↳ org.hibernate.type.DateType

Class Overview

A type that maps between DATE and java.sql.Date

Summary

Fields
public static final DateType INSTANCE
Public Constructors
DateType()
Public Methods
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.
String objectToSQLString(Date value, Dialect dialect)
Date stringToObject(String xml)
Convert the value from the mapping file to a Java object.
[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.IdentifierType
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.XmlRepresentableType

Fields

public static final DateType INSTANCE

Public Constructors

public DateType ()

Public Methods

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 String objectToSQLString (Date value, Dialect dialect)

Throws
Exception

public Date stringToObject (String xml)

Convert the value from the mapping file to a Java object.

Parameters
xml the value of discriminator-value or unsaved-value attribute
Returns
  • The converted value of the string representation.