Thanks for explaining - so yeah let's pass in the Type you actually need via the Factory finder, you may have a bit of fun testing TemporalAttributeType after the fact. Jody > Expression doesn't save me, actually its kind of the problem. When I > take a literal from a filter ( stored as just a string ), the attribute > type class binding is used to convert into a real object, and then the > object is passed off to the sql encoder. > > What i really need is to pull the thing into a java.sql.Date ( which is > not unreasonable since that is the type the datastore originally mapped > the attribute to ) and then pass it off to the sql encoder. > > You are right, i could get around it by going straight to AttributeType. > But that would require hacking to AttributeTypeFactory which would > undoubtedly do more damage then the change i am proposing now. > > -Justin > > Jody Garnett wrote: > >> What does TemporalAttributeType offer you that you cannot now accomplish >> with your changes to Expression? Can you not just set up an >> AttributeType for java.sql.Date and work from there? >> >> Jody >> >>> Hi all, >>> >>> During my battle with wfs1.1 cite tests, one of the largest problems has >>> been handling dates properly. One of my major problems is that >>> TemporalAttributeType hard codes its class binding to a java.util.Date. >>> >>> I need it to maintain the actually class passed in by whomever creating >>> the attribute. For instance, java.sql.Date, java.sql.Timestamp are used >>> to format dates so that they are jdbc friendly. Without them a normal >>> date will blow up. >>> >>> So, I would like to add an additional constructor to >>> TemporalAttributeType to take the actual class of the type bindings. As >>> far as I can tell with just running the geotools tests this does not >>> impact much except for mif datastore. I have created a jira task with >>> the necessary patches. >>> >>> http://jira.codehaus.org/browse/GEOT-1075 >>> >>> -Justin >>> >>> >>> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Geotools-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geotools-devel >> >> !DSPAM:1004,45871656134051804284693! >> >> > > >
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
