java - Multiple value as key in Map Collection -


problem: storing sql statements of table in map pk value of table maps corresponding insert/select statement. came across table uses composite key(4 pk ).

now base of logic shaken far read array cannot used key in map there way can on come ?

i declaring map below

map<string, string> pkmap= new map<string, string>(); 

where key primary key of table .

note: processing few tables in db not of them have 4 pk composite key few may have 2 or 1

you use list<string> key (or list<object> if want support heterogeneous types). 2 lists equal if have same size , if members equal.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -