net.mlw.vlh.adapter.jdbc.util.setter
Class Hibernate20CalendarSetter
java.lang.Object
net.mlw.vlh.adapter.jdbc.util.setter.AbstractSetter
net.mlw.vlh.adapter.jdbc.util.setter.Hibernate20CalendarSetter
- All Implemented Interfaces:
- Setter
- public class Hibernate20CalendarSetter
- extends AbstractSetter
Sets a Calendar
using a java.sql.Timestamp
on a
Query
. This could be usefull when you are using hibernate
mapping and accesing directly via jdbc.
- Version:
- $Revision: 1.3 $ $Date: 2005/12/19 10:56:41 $
- Author:
- Andrej Zachar
Method Summary |
int |
set(PreparedStatement query,
int index,
Object value)
If filter value is instance of the Calendar, it will set it directly
to PreparedStatement query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hibernate20CalendarSetter
public Hibernate20CalendarSetter()
set
public int set(PreparedStatement query,
int index,
Object value)
throws SQLException,
ParseException
- If filter value is instance of the Calendar, it will set it directly
to
PreparedStatement
query.
- Otherwise it will set new Timestamp(with actual time) to query for
key.
- Parameters:
query
- The PreparedStatement.index
- The name of the argumentvalue
- The value to be set
- Throws:
ParseException
- If an error occurs.
SQLException
- If an error occurs.- See Also:
net.mlw.util.sql.StatementBuilder.Setter#set(java.sql.PreparedStatement,
int, java.lang.Object)
Copyright © 2003-2006 mlavilson. All Rights Reserved.