public class

StringType

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

Class Overview

A type that maps between VARCHAR and String

Summary

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

Public Constructors

public StringType ()

Public Methods

public String getName ()

Returns the abbreviated name of the type.

Returns
  • String the Hibernate type name

public String objectToSQLString (String value, Dialect dialect)

Throws
Exception

public String 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 (String 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 ()