|
Home > Archive > Apache JDO Project > July 2005 > VOTE: Add ObjectIdentity to single field identity classes
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 |
VOTE: Add ObjectIdentity to single field identity classes
|
|
| Craig Russell 2005-07-05, 5:45 pm |
| | |
| Bin Sun 2005-07-06, 7:45 am |
| [X] approve, and better adding a constructor using
String key, and standardizing the format for each
actual type.
--- Craig Russell <Craig.Russell@Sun.COM> wrote:
> Javadogs,
>
> When specifying the single field identity classes,
> we overlooked the
> case of a single field of type Date, Locale,
> Currency, BigInteger, etc.
>
> Rather than adding a new class for each such type, I
> propose that we
> add a new single field identity class to cover all
> of these cases.
>
> <proposed>
> public class ObjectIdentity
> extends SingleFieldIdentity {
> public Object getKey();
> public ObjectIdentity(Class pcClass, Object
> key);
> }
> </proposed>
>
> [ ] approve
>
> [ ] disapprove. Why?
>
> Thanks,
>
> Craig
>
> Craig Russell
> Architect, Sun Java Enterprise System
> http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
>
________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
| |
| Michael Bouschen 2005-07-07, 5:45 pm |
| Hi Craig,
[x] approve
Regards Michael
> Javadogs,
>
> When specifying the single field identity classes, we overlooked the
> case of a single field of type Date, Locale, Currency, BigInteger, etc.
>
> Rather than adding a new class for each such type, I propose that we
> add a new single field identity class to cover all of these cases.
>
> <proposed>
> public class ObjectIdentity
> extends SingleFieldIdentity {
> public Object getKey();
> public ObjectIdentity(Class pcClass, Object key);
> }
> </proposed>
>
> [ ] approve
>
> [ ] disapprove. Why?
>
> Thanks,
>
> Craig
>
> Craig Russell
>
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>
> 408 276-5638 mailto:Craig.Russell@sun.com
>
> P.S. A good JDO? O, Gasp!
>
>
--
Michael Bouschen Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de http://www.tech.spree.de/
Tel.:++49/30/235 520-33 Buelowstr. 66
Fax.:++49/30/2175 2012 D-10783 Berlin
|
|
|
|
|