org.ow2.orchestra.pvm.internal.hibernate
Class ConverterType

java.lang.Object
  extended by org.hibernate.type.AbstractType
      extended by org.hibernate.type.NullableType
          extended by org.hibernate.type.ImmutableType
              extended by org.ow2.orchestra.pvm.internal.hibernate.ConverterType
All Implemented Interfaces:
Serializable, org.hibernate.type.Type, org.hibernate.usertype.ParameterizedType

public class ConverterType
extends org.hibernate.type.ImmutableType
implements org.hibernate.usertype.ParameterizedType

Author:
Tom Baeyens
See Also:
Serialized Form

Constructor Summary
ConverterType()
           
 
Method Summary
 Object fromStringValue(String arg0)
           
 Object get(ResultSet resultSet, String name)
           
 String getName()
           
 Class<?> getReturnedClass()
           
 void set(PreparedStatement stmt, Object value, int index)
           
 void setParameterValues(Properties properties)
           
 int sqlType()
           
 String toString(Object arg0)
           
 
Methods inherited from class org.hibernate.type.ImmutableType
deepCopy, isMutable, replace
 
Methods inherited from class org.hibernate.type.NullableType
fromXMLNode, fromXMLString, getColumnSpan, isDirty, isEqual, isEqual, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeToString, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString, toXMLString
 
Methods inherited from class org.hibernate.type.AbstractType
assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterType

public ConverterType()
Method Detail

fromStringValue

public Object fromStringValue(String arg0)
Specified by:
fromStringValue in class org.hibernate.type.NullableType

get

public Object get(ResultSet resultSet,
                  String name)
           throws SQLException
Specified by:
get in class org.hibernate.type.NullableType
Throws:
SQLException

set

public void set(PreparedStatement stmt,
                Object value,
                int index)
         throws SQLException
Specified by:
set in class org.hibernate.type.NullableType
Throws:
SQLException

sqlType

public int sqlType()
Specified by:
sqlType in class org.hibernate.type.NullableType

toString

public String toString(Object arg0)
Specified by:
toString in class org.hibernate.type.NullableType

getName

public String getName()
Specified by:
getName in interface org.hibernate.type.Type

getReturnedClass

public Class<?> getReturnedClass()
Specified by:
getReturnedClass in interface org.hibernate.type.Type

setParameterValues

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


Copyright © 2011 OW2 Consortium. All Rights Reserved.