Apache JDO Project - RE: SingleFieldIdentity.toString()

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > June 2005 > RE: SingleFieldIdentity.toString()





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: SingleFieldIdentity.toString()
Matthew T. Adams

2005-06-06, 7:48 am

Yeah, I take it all back; color me stupid on that one. What I was
really requesting was something like

public ByteIdentity(Class clazz, String key) {
this(clazz, Byte.parseByte(key));
}

Since we're only one Xxx.parseXxx(String) away, I question the value and
hereby, offically and ceremoniously withdraw the proposal.

--matthew

>-----Original Message-----
>From: Craig Russell [mailto:Craig.Russell@Sun.COM]
>Sent: Wednesday, March 30, 2005 5:25 PM
>To: JDO Expert Group; jdo-dev@db.apache.org
>Subject: Re: SingleFieldIdentity.toString()
>
>
>Hi Patrick,
>
>On Mar 30, 2005, at 4:28 PM, Patrick Linskey wrote:
>
>
>This was not the question. Matthew asked about :
>
>public ByteIdentity(String s)
>
>which doesn't make sense because you would construct an instance of a
>JDO identity class that didn't know what kind of object it was the key
>for. If all you want is a wrapper around a byte, use java.lang.Byte.
>The key piece of the ByteIdentity is that an instance unambiguously
>represents the identity of a particular instance in the datastore (and
>cache).
>
>Craig
>constructors
>throw whatever
>the class
>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!
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com