Merge Key2 into Key.

This commit is contained in:
Michael Bayne
2006-10-11 20:37:14 +00:00
parent 979a1fd17b
commit af53ed7913
+12 -5
View File
@@ -31,17 +31,24 @@ public class Key
public String[] indices;
public Comparable[] values;
public Key (String index, Comparable value)
{
this(new String[] { index }, new Comparable[] { value });
}
public Key (String index1, Comparable value1,
String index2, Comparable value2)
{
this(new String[] { index1, index2 },
new Comparable[] { value1, value2 });
}
public Key (String[] indices, Comparable[] values)
{
this.indices = indices;
this.values = values;
}
public Key (String index, Comparable value)
{
this(new String[] { index }, new Comparable[] { value });
}
public String toWhereClause ()
{
StringBuilder where = new StringBuilder();