public class

UrlType

extends AbstractSingleColumnStandardBasicType<T>
implements DiscriminatorType<T>
java.lang.Object
   ↳ org.hibernate.type.AbstractStandardBasicType<T>
     ↳ org.hibernate.type.AbstractSingleColumnStandardBasicType<T>
       ↳ org.hibernate.type.UrlType

Class Overview

A type that maps between VARCHAR and URL

Summary

Fields
public static final UrlType INSTANCE
Public Constructors
UrlType()
Public Methods
String getName()
Returns the abbreviated name of the type.
String objectToSQLString(URL value, Dialect dialect)
URL stringToObject(String xml)
Convert the value from the mapping file to a Java object.
String toString(URL value)
Render the value to the string representation.
Protected Methods
boolean registerUnderJavaType()
[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 UrlType INSTANCE

Public Constructors

public UrlType ()

Public Methods

public String getName ()

Returns the abbreviated name of the type.

Returns
  • String the Hibernate type name

public String objectToSQLString (URL value, Dialect dialect)

Throws
Exception

public URL 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.
Throws
Exception

public String toString (URL value)

Render the value to the string representation.

Parameters
value The value to render to string.
Returns
  • The string representation

Protected Methods

protected boolean registerUnderJavaType ()