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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -