net.mlw.vlh.adapter.hibernate3.util.setter
Class CalendarSetter
java.lang.Object
net.mlw.vlh.adapter.hibernate3.util.setter.AbstractSetter
net.mlw.vlh.adapter.hibernate3.util.setter.CalendarSetter
- All Implemented Interfaces:
- Setter
- public class CalendarSetter
- extends AbstractSetter
- Version:
- $Revision: 1.2 $ $Date: 2005/11/03 18:08:51 $
- Author:
- Stepan Marek
Method Summary |
void |
set(org.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 |
CalendarSetter
public CalendarSetter()
set
public void set(org.hibernate.Query query,
String key,
Object value)
throws org.hibernate.HibernateException,
ParseException
- If is filter value instance of the Calendar, it will set it directly
to query.
- If is filter value instance of String, it try to convert it it to long and set to Calendar instance
- If is filter value instance of Long, it try to convert it it to long and set to Calendar instance
- Otherwise it will set null to query for key.
- Parameters:
query
- The Hiberante Query.key
- The name of the argumentvalue
- The value to be set
- Throws:
ParseException
- If an error occurs.
org.hibernate.HibernateException
- See Also:
Setter.set(org.hibernate.Query,
java.lang.String, java.lang.Object)
Copyright © 2003-2006 mlavilson. All Rights Reserved.