net.mlw.vlh.adapter.hibernate.util.setter
Class CalendarSetter

java.lang.Object
  extended bynet.mlw.vlh.adapter.hibernate.util.setter.AbstractSetter
      extended bynet.mlw.vlh.adapter.hibernate.util.setter.CalendarSetter
All Implemented Interfaces:
Setter

public class CalendarSetter
extends AbstractSetter

Version:
$Revision: 1.5 $ $Date: 2005/09/26 09:25:09 $
Author:
Andrej Zachar

Constructor Summary
CalendarSetter()
           
 
Method Summary
 void set(net.sf.hibernate.Query query, String key, Object value)
           If is filter value instance of the Calendar, it will set it directly to query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarSetter

public CalendarSetter()
Method Detail

set

public void set(net.sf.hibernate.Query query,
                String key,
                Object value)
         throws net.sf.hibernate.HibernateException,
                ParseException
  1. If is filter value instance of the Calendar, it will set it directly to query.
  2. If is filter value instance of String, it try to convert it it to long and set to Calendar instance
  3. If is filter value instance of Long, it try to convert it it to long and set to Calendar instance
  4. Otherwise it will set null to query for key.

Parameters:
query - The Hiberante Query.
key - The name of the argument
value - The value to be set
Throws:
ParseException - If an error occurs.
net.sf.hibernate.HibernateException
See Also:
Setter.set(net.sf.hibernate.Query, java.lang.String, java.lang.Object)


Copyright © 2003-2006 mlavilson. All Rights Reserved.