setValue("FIELD", new CSpDatetime()) ?
In NetD, if a data object had a date field, you could set it with
setValue("FIELD", new CSpDatetime())
What is passed in for Jato's version? The arguments are
setValue(String, Object) . So what Object is expected here?
A Date? A Calendar? A String representing the date?
Thanks.
[346 byte] By [
Guest] at [2007-11-25 9:26:00]

See TypeConverter class for all types which JATO normally deals with
including the JDBC SQL based date/time types. For setValue you pass in the
java.sql.Date for a SQL Model field which is of type DATE
matt
> --Original Message--
> From: <a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026 098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026 098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a>]
> Sent: Wednesday, September 05, 2001 3:54 PM
> Subject: [iPlanet-JATO] setValue("FIELD", new CSpDatetime()) ?
>
>
> In NetD, if a data object had a date field, you could set it with
> setValue("FIELD", new CSpDatetime())
>
> What is passed in for Jato's version? The arguments are
> setValue(String, Object) . So what Object is expected here?
> A Date? A Calendar? A String representing the date?
>
> Thanks.
>
>
>
> <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
>
>
>
>
>
>
Guest at 2007-7-1 16:30:05 >

One note: if you try to pass another tyoe into QueryModel.setValue() where
the field type is set to date, the TypeConverter will attempt to coerce the
type to java.sql.Date. Therefore, you should be able to use the
well-documented sql.Date String representation format as an alternative (see
Javadoc for java.sql.Date). In fact, this was the real reason behind our
choice to use java.sql.Date over java.util.Date, since the latter has no
firm string mapping (it is based on locale, and used only for output
representation).
Todd
-- Original Message --
From: "Matthew Stevens" <<a href="/group/SunONE-JATO/post?protectID=029166114165042198028082000056130080177 026031196061123241150194211220076086020224">matthew.stevens@e...</a>> ;
Sent: Wednesday, September 05, 2001 1:33 PM
Subject: RE: [iPlanet-JATO] setValue("FIELD", new CSpDatetime()) ?
> See TypeConverter class for all types which JATO normally deals with
> including the JDBC SQL based date/time types. For setValue you pass in
the
> java.sql.Date for a SQL Model field which is of type DATE
>
> matt
>
> > --Original Message--
> > From: <a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026 098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a> [mailto:<a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026 098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a>]
> > Sent: Wednesday, September 05, 2001 3:54 PM
> > Subject: [iPlanet-JATO] setValue("FIELD", new CSpDatetime()) ?
> >
> >
> > In NetD, if a data object had a date field, you could set it with
> > setValue("FIELD", new CSpDatetime())
> >
> > What is passed in for Jato's version? The arguments are
> > setValue(String, Object) . So what Object is expected here?
> > A Date? A Calendar? A String representing the date?
> >
> > Thanks.
> >
> >
> >
> > <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
> >
> >
> >
> >
> >
> >
>
>
>
> <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
>
>
>
>
>
>
Guest at 2007-7-1 16:30:05 >
