|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectapplicationLogic.utility.KeyValuePair
public class KeyValuePair
KeyValuePair stores keys and 1 or more sets of values.
Constructor Summary | |
---|---|
KeyValuePair(java.lang.String[] keys,
java.sql.ResultSet rs)
Takes each row of a ResultSet and initializes 'keys', 'dataTypes' and 'data' so that each row in 'data' contains the values such that the jth element of the ith row is the value of the ith row corresponding to the jth key. |
|
KeyValuePair(java.lang.String[] keys,
java.lang.String[] dataTypes,
java.util.List<java.lang.String[]> data,
byte[] binaryData)
Initializes variables in KeyValuePair. |
Method Summary | |
---|---|
byte[] |
getBinaryData()
Get the binary data stored in this KeyValuePair object. |
java.lang.String[] |
getDataTypes()
Get the data types of the keys of this KeyValuePair object. |
java.lang.String[] |
getKeys()
Get the keys of this KeyValuePair object. |
int |
getRowCount()
Get the number of rows in the 'data' List. |
java.util.List |
getValues()
Get the values of this KeyValuePair object. |
java.lang.String[] |
getValuesByKeyIndex(int index)
Get the values of the 'index' column of each row in 'data'. |
java.lang.String[] |
getValuesByKeyName(java.lang.String keyName)
Get the values from 'data' corresponding to the key 'keyName' in 'keys'. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyValuePair(java.lang.String[] keys, java.sql.ResultSet rs) throws java.sql.SQLException
keys
- The names of the key value pairs.rs
- The ResultSet containing the values.
java.sql.SQLException
public KeyValuePair(java.lang.String[] keys, java.lang.String[] dataTypes, java.util.List<java.lang.String[]> data, byte[] binaryData)
keys
- The names of the key value pairs.dataTypes
- An array of String containing the data type of each
element in 'keys'. Possible values include "string",
"int", "float", "date", "binary", "time".data
- A list containing one or more rows of values
corresponding to the keys. Each row is an array of
strings.binaryData
- Binary data associated with 'keys', where 'keys' contains
exactly one key.Method Detail |
---|
public java.lang.String[] getKeys()
public java.lang.String[] getDataTypes()
public byte[] getBinaryData()
public java.util.List getValues()
public java.lang.String[] getValuesByKeyName(java.lang.String keyName)
keyName
- Name of key in 'keys'.
public java.lang.String[] getValuesByKeyIndex(int index)
index
-
public int getRowCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |