Apache JDO Project - Re: TCK : ResultClassRequirements.testNegative

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > November 2005 > Re: TCK : ResultClassRequirements.testNegative





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: TCK : ResultClassRequirements.testNegative
Andy Jefferson

2005-11-23, 5:45 pm

Hi Michael,

[vbcol=seagreen]
> The query has an INTO clause specifying a result class. For this
> reason, the constructor LongString(long, String) should not be chosen.


OK, your test is following the "rules" in the latest spec to the letter :-).
I prefer to look at it from a user viewpoint. "setResultClass" is the place
where the vast majority of people will specify the result class. The spec
seemingly isn't allowing a user to provide a result class with the correct
constructor parameters and use that to construct the object. This is a
limitation that I see no obvious reason for. Is there a reason ?

IMHO, the sequence should be
1. Use a constructor with the parameter positions/types.

or

2. Use a default constructor
2a. public fields matching name and type
2b. public set method matching name and type
2c. public put(Object, Object) method


--
Andy

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com