org.norther.tammi.root.hbm.conversion
Class StringDate2StringConversion

java.lang.Object
  extended by org.norther.tammi.root.hbm.conversion.ImmutableObjectConversion
      extended by org.norther.tammi.root.hbm.conversion.StringDate2StringConversion
All Implemented Interfaces:
UserType

public class StringDate2StringConversion
extends ImmutableObjectConversion

Converts between StringDate instances and ISO-8601 format dates.

Version:
$Id: StringDate2StringConversion.java,v 1.2 2009/09/28 15:08:34 cvsimp Exp $
Author:
Ilkka Priha

Constructor Summary
StringDate2StringConversion()
          Constructs a new conversion.
 
Method Summary
 Object nullSafeGet(ResultSet resultSet, String[] names, Object owner)
           
 void nullSafeSet(PreparedStatement statement, Object value, int index)
           
 Class<?> returnedClass()
           
 int[] sqlTypes()
           
 
Methods inherited from class org.norther.tammi.root.hbm.conversion.ImmutableObjectConversion
assemble, deepCopy, disassemble, equals, hashCode, isMutable, replace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDate2StringConversion

public StringDate2StringConversion()
Constructs a new conversion.

Method Detail

sqlTypes

public int[] sqlTypes()

returnedClass

public Class<?> returnedClass()

nullSafeGet

public Object nullSafeGet(ResultSet resultSet,
                          String[] names,
                          Object owner)
                   throws HibernateException,
                          SQLException
Throws:
HibernateException
SQLException

nullSafeSet

public void nullSafeSet(PreparedStatement statement,
                        Object value,
                        int index)
                 throws HibernateException,
                        SQLException
Throws:
HibernateException
SQLException


Copyright © 2004 The Norther Organization. All rights reserved.