Example usage for org.hibernate.usertype EnhancedUserType interface-usage

List of usage examples for org.hibernate.usertype EnhancedUserType interface-usage

Introduction

In this page you can find the example usage for org.hibernate.usertype EnhancedUserType interface-usage.

Usage

From source file org.motechproject.mobile.core.util.StringEnumUserType.java

/**
 * A generic UserType that handles String-based JDK 5.0 Enums.
 *
 * @author Gavin King
 */
public class StringEnumUserType implements EnhancedUserType, ParameterizedType {

From source file org.n52.server.ses.hibernate.EnumType.java

/**
 * The Class EnumType.
 * 
 * @author <a href="mailto:j.schulte@52north.de">Jan Schulte</a>
 */
public class EnumType implements EnhancedUserType, ParameterizedType {

From source file org.onebusaway.container.hibernate.EnumUserType.java

/**
 * A custom Hibernate {@link EnhancedUserType} for mapping a Java enum to an SQL
 * varchar in the database as opposed to the default behavior of an int.
 * 
 * @author bdferris
 * 

From source file org.openmrs.module.metadatasharing.api.db.hibernate.EnumType.java

/**
 * Enum type mapper Try and find the appropriate SQL type depending on column metadata
 * <p/>
 * TODO implements readobject/writeobject to recalculate the enumclasses
 * 
 * @author Emmanuel Bernard

From source file org.openxma.dsl.platform.hibernate.type.GenericEnumUserType.java

/**
 * Enum type mapper
 * Try and find the appropriate SQL type depending on column metadata
 * <p/>
 * TODO implements readobject/writeobject to recalculate the enumclasses
 *

From source file org.paxle.data.db.impl.EnumUserType.java

/**
 * @author Gavin King
 * @see <a href="http://swanbear.blogspot.com/2006/09/enum-type-in-hibernate-mapping.html">Enum type in Hibernate mapping</a>
 */
public class EnumUserType implements EnhancedUserType, ParameterizedType {

From source file org.paxle.data.db.impl.FieldTypeUserType.java

public class FieldTypeUserType implements EnhancedUserType {

    private static final String[] PROP_NAMES = new String[] { "name", "clazz", "isIndex", "isSavePlain",
            "isTokenize" };

    private static final int[] PROP_TYPES = new int[] { Types.VARCHAR, Types.VARCHAR, Types.BIT, Types.BIT,

From source file org.paxle.data.db.impl.URIUserType.java

public class URIUserType implements EnhancedUserType {

    public Object fromXMLString(String xmlValue) {
        return URI.create(xmlValue);
    }

From source file org.smallmind.persistence.orm.hibernate.EnumUserType.java

public class EnumUserType implements ParameterizedType, EnhancedUserType {

    private Class<Enum> enumClass;

    public void setParameterValues(Properties parameters) {

From source file org.teragrid.portal.filebrowser.server.servlet.persistence.enumerators.StringEnumUserType.java

/**
 * A generic UserType that handles String-based JDK 5.0 Enums.
 *
 * @author Gavin King
 */
@SuppressWarnings("unchecked")