org.jbpm.db.hibernate
Class LimitedTextType

java.lang.Object
  extended by org.hibernate.type.AbstractStandardBasicType<T>
      extended by org.hibernate.type.AbstractSingleColumnStandardBasicType<String>
          extended by org.hibernate.type.TextType
              extended by org.jbpm.db.hibernate.LimitedTextType
All Implemented Interfaces:
Serializable, org.hibernate.type.BasicType, org.hibernate.type.SingleColumnType<String>, org.hibernate.type.StringRepresentableType<String>, org.hibernate.type.Type, org.hibernate.type.XmlRepresentableType<String>, org.hibernate.usertype.ParameterizedType

public class LimitedTextType
extends org.hibernate.type.TextType
implements org.hibernate.usertype.ParameterizedType

Mapping between SQL clob and Java String that truncates parameter values to column size.

Author:
Alejandro Guizar
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.hibernate.type.TextType
INSTANCE
 
Constructor Summary
LimitedTextType()
           
 
Method Summary
 int getLimit()
           
 void set(PreparedStatement st, Object value, int index)
           
 void setParameterValues(Properties parameters)
           
 
Methods inherited from class org.hibernate.type.TextType
getName
 
Methods inherited from class org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
 
Methods inherited from class org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, fromString, fromStringValue, fromXMLNode, fromXMLString, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, registerUnderJavaType, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toString, toXMLString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set, toString
 
Methods inherited from interface org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString
 

Constructor Detail

LimitedTextType

public LimitedTextType()
Method Detail

getLimit

public int getLimit()

set

public void set(PreparedStatement st,
                Object value,
                int index)
         throws SQLException
Throws:
SQLException

setParameterValues

public void setParameterValues(Properties parameters)
Specified by:
setParameterValues in interface org.hibernate.usertype.ParameterizedType


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.