Re: query properties

From: Craig L Russell (Craig.Russel..un.COM)
Date: Fri Nov 30 2007 - 22:49:21 EST

  • Next message: Aristedes Maniatis: "Re: query properties"

    Hi Kevin,

    Having just refreshed my understanding of wild cards, I agree that
    Map<String, ?> would be right.

    Craig

    On Nov 30, 2007, at 7:36 PM, Kevin Menard wrote:

    > Map<String, Object> wouldn't work because you wouldn't be able to
    > pass in
    > say, Map<String, String>. You'd probably be looking for
    > Map<String, ?> or
    > some extends variant.
    >
    >
    > On 11/30/07 10:31 PM, "Aristedes Maniatis" <ar..sh.com.au> wrote:
    >
    >> In SelectQuery, initWithProperties(Map<?,?> properties) has a
    >> properties Map with wildcard keys and values. That has clashed
    >> slightly with a choice I made elsewhere for these properties - I
    >> originally thought that they were <String, String>
    >>
    >> Now I've discovered that for cache groups the value can be a String
    >> [],
    >> so perhaps <String, Object> is more suitable. Does that sound
    >> reasonable? Are they used in others ways? This is the difference
    >> between code I'd be writing for myself (where I'd make it really
    >> tightly defined for compile time safety) and a public library where
    >> others may want to override the public functions.
    >>
    >> Whatever it is, I'd like to document more clearly what these
    >> properties can represent (for example, will the key become an enum
    >> one
    >> day?)
    >>
    >> Ari
    >
    > --
    > Kevin Menard
    > Servprise International, Inc.
    > Remote reboot & power control for network equipment
    > www.servprise.com +1 508.892.3823 x308
    >

    Craig Russell
    Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
    408 276-5638 mailto:Craig.Russel..un.com
    P.S. A good JDO? O, Gasp!





    This archive was generated by hypermail 2.0.0 : Fri Nov 30 2007 - 22:50:02 EST