Re: query properties

From: Kevin Menard (kmenar..ervprise.com)
Date: Fri Nov 30 2007 - 22:36:02 EST

  • Next message: Craig L Russell: "Re: query properties"

    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
    



    This archive was generated by hypermail 2.0.0 : Fri Nov 30 2007 - 22:36:39 EST