org.hibernate.usertype.EnhancedUserType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.usertype;
/**
* A custom type that may function as an identifier or discriminator type
*
* @author Gavin King
*/
public interface EnhancedUserType extends UserType {
/**
* Return an SQL literal representation of the value
*/
String objectToSQLString(Object value);
/**
* Return a string representation of this value, as it should appear in an XML document
*
* @deprecated To be removed in 5. Implement {@link org.hibernate.type.StringRepresentableType#toString(Object)}
* instead. See HHH-7776 for details
*/
@Deprecated
String toXMLString(Object value);
/**
* Parse a string representation of this value, as it appears in an XML document
*
* @deprecated To be removed in 5. Implement
* {@link org.hibernate.type.StringRepresentableType#fromStringValue(String)} instead.
* See HHH-7776 for details
*/
@Deprecated
Object fromXMLString(String xmlValue);
}