Re: PSQLException: The column name <col> was not found in this ResultSet.
Re: PSQLException: The column name <col> was not found in this ResultSet.
От:
"Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Дата:
Lew wrote: > I do not know of any interface that requires its implementations to > be thread safe, anywhere in Java. http://download.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentMap.html > Can you think of one that does? I think the more salient point is that PostgreSQL has provided such a guarantee regarding its implementation of the interface. -Kevin
Re: PSQLException: The column name <col> was not found in this ResultSet.
От:
Lew <noone@lewscanon.com>
Дата:
Lew wrote: >> I do not know of any interface that requires its implementations to >> be thread safe, anywhere in Java. Kevin Grittner wrote: > http://download.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentMap.html > >> Can you think of one that does? Good catch. Of course, the interface cannot guarantee that any implementation of it is thread safe, so it's more in the way of a suggestion or a request than a contract. It does not require implementations to be thread safe. There is, in fact, no such thing in Java as an interface that requires its implementations to be thread safe. (There are suggested annotations that provide some support for that, however.) > I think the more salient point is that PostgreSQL has provided such a > guarantee regarding its implementation of the interface. Exactly the point I was making. It is implementations that are thread safe, not interfaces. -- Lew