Quickly finding a matching List?

Discussion in 'Java' started by Paul Tomblin, Nov 28, 2007.

  1. Paul Tomblin

    Paul Tomblin Guest

    I've got a class (ShowPlaylist) which contains a List of other objects
    where are instances of another class (CompositionPlaylist). Both classes
    are stored in relational database tables. I need to quickly find which
    ShowPlaylist contains a particular List of CompositionPlaylists and
    retrieve it from the database. An idea I just had would be for each
    ShowPlaylist to compute an MD5 hash of the UUIDs of each
    CompositionPlaylist in the List and store that in one column in the
    ShowPlaylist table. Can I be sure the hash would always be the same if
    the UUIDs were the same and in the exact same order, and reasonably sure
    it would be different if there were any differences in content or order?

    --
    Paul Tomblin <> http://blog.xcski.com/
    I used up all my sick days, so I'm calling in dead.
     
    Paul Tomblin, Nov 28, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. david wolf
    Replies:
    2
    Views:
    21,793
    david wolf
    Apr 25, 2006
  2. Replies:
    6
    Views:
    1,383
    Dustan
    Jun 13, 2007
  3. Stephen Howe
    Replies:
    5
    Views:
    476
    James Kanze
    Jul 20, 2011
  4. Marc Bissonnette

    Pattern matching : not matching problem

    Marc Bissonnette, Jan 8, 2004, in forum: Perl Misc
    Replies:
    9
    Views:
    238
    Marc Bissonnette
    Jan 13, 2004
  5. Bobby Chamness
    Replies:
    2
    Views:
    234
    Xicheng Jia
    May 3, 2007
Loading...

Share This Page