|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Row
Data representation class provides various methods to access the values of different types by catalog field number or by acronym name. Fields numeration is 0-based. e.g., 0 for the first field.
User: MMarkelov Date: 15.10.12 Time: 11:13
| Method Summary | |
|---|---|
void |
clear()
Removes all of the keys and values from this row. |
boolean |
containsAcronym(java.lang.String key)
Returns true if this row contains value for the specified field acronym. |
boolean |
containsNum(int key)
Returns true if this row contains value for the specified field number. |
Row |
getCopy()
Returns a copy of this row. |
java.lang.Double |
getDoubleByAcronym(java.lang.String key)
Searches for the value with the specified field acronym in this row. |
java.lang.Double |
getDoubleByAcronym(java.lang.String key,
java.lang.Double defaultValue)
Searches for the value with the specified field acronym in this row. |
java.lang.Double |
getDoubleByNum(int key)
Searches for the value with the specified field number in this row. |
java.lang.Double |
getDoubleByNum(int key,
java.lang.Double defaultValue)
Searches for the value with the specified field number in this row. |
java.lang.Integer |
getIntByAcronym(java.lang.String key)
Searches for the value with the specified field acronym in this row. |
java.lang.Integer |
getIntByAcronym(java.lang.String key,
java.lang.Integer defaultValue)
Searches for the value with the specified field acronym in this row. |
java.lang.Integer |
getIntByNum(int key)
Searches for the value with the specified field number in this row. |
java.lang.Integer |
getIntByNum(int key,
java.lang.Integer defaultValue)
Searches for the value with the specified field number in this row. |
java.lang.Long |
getLongByAcronym(java.lang.String key)
Searches for the value with the specified field acronym in this row. |
java.lang.Long |
getLongByAcronym(java.lang.String key,
java.lang.Long defaultValue)
Searches for the value with the specified field acronym in this row. |
java.lang.Long |
getLongByNum(int key)
Searches for the value with the specified field number in this row. |
java.lang.Long |
getLongByNum(int key,
java.lang.Long defaultValue)
Searches for the value with the specified field number in this row. |
java.lang.String |
getStringByAcronym(java.lang.String key)
Searches for the value with the specified field acronym in this row. |
java.lang.String |
getStringByAcronym(java.lang.String key,
java.lang.String defaultValue)
Searches for the value with the specified field acronym in this row. |
java.lang.String |
getStringByNum(int key)
Searches for the value with the specified field number in this row. |
java.lang.String |
getStringByNum(int key,
java.lang.String defaultValue)
Searches for the value with the specified field number in this row. |
java.util.Set<java.lang.Integer> |
keySet()
Returns a Set view of the keys contained in this row. |
void |
setDoubleByAcronym(java.lang.String key,
double value)
Adds the specified double value with the specified key to this row. |
void |
setDoubleByNum(int key,
double value)
Adds the specified double value with the specified key to this row. |
void |
setIntByAcronym(java.lang.String key,
int value)
Adds the specified int value with the specified key to this row. |
void |
setIntByNum(int key,
int value)
Adds the specified int value with the specified key to this row. |
void |
setLongByAcronym(java.lang.String key,
long value)
Adds the specified long value with the specified key to this row. |
void |
setLongByNum(int key,
long value)
Adds the specified long value with the specified key to this row. |
void |
setStringByAcronym(java.lang.String key,
java.lang.String value)
Adds the specified String value with the specified key to this row. |
void |
setStringByNum(int key,
java.lang.String value)
Adds the specified String value with the specified key to this row. |
int |
size()
Returns the number of values in this row. |
| Method Detail |
|---|
Row getCopy()
java.util.Set<java.lang.Integer> keySet()
Set view of the keys contained in this row.
This set is unmodifiable.
Keys of this set represent catalog fields numeration.
boolean containsNum(int key)
key - key whose presence in this row is to be tested
boolean containsAcronym(java.lang.String key)
key - key whose presence in this row is to be tested
int size()
void clear()
java.lang.Integer getIntByNum(int key)
throws java.lang.Exception
Integer object.
key - the row field number.
Integer value from this row with the specified field number.
java.lang.Exception - if this row does not contain value for the specified field number
or if the value is not valid integer number.
java.lang.Integer getIntByNum(int key,
java.lang.Integer defaultValue)
throws java.lang.Exception
Integer object.
key - the row field number.defaultValue - a default Integer value.
Integer value from this row with the specified field number.
java.lang.Exception - if the value is not valid integer number.
java.lang.Integer getIntByAcronym(java.lang.String key)
throws java.lang.Exception
Integer object.
key - the row field acronym.
Integer value from this row with the specified field acronym.
java.lang.Exception - if this row does not contain value for the specified field acronym
or if the value is not valid integer number.
java.lang.Integer getIntByAcronym(java.lang.String key,
java.lang.Integer defaultValue)
throws java.lang.Exception
Integer object.
key - the row field acronym.defaultValue - a default Integer value.
Integer value from this row with the specified field acronym.
java.lang.Exception - if the value is not valid integer number.
java.lang.Long getLongByNum(int key)
throws java.lang.Exception
Long object.
key - the row field number.
Long value from this row with the specified field number.
java.lang.Exception - if this row does not contain value for the specified field number
or if the value is not valid long number.
java.lang.Long getLongByNum(int key,
java.lang.Long defaultValue)
throws java.lang.Exception
Long object.
key - the row field number.defaultValue - a default Long value.
Long value from this row with the specified field number.
java.lang.Exception - if the value is not valid long number.
java.lang.Long getLongByAcronym(java.lang.String key)
throws java.lang.Exception
Long object.
key - the row field acronym.
Long value from this row with the specified field acronym.
java.lang.Exception - if this row does not contain value for the specified field acronym
or if the value is not valid long number.
java.lang.Long getLongByAcronym(java.lang.String key,
java.lang.Long defaultValue)
throws java.lang.Exception
Long object.
key - the row field acronym.defaultValue - a default Long value.
Long value from this row with the specified field acronym.
java.lang.Exception - if the value is not valid long number.
java.lang.Double getDoubleByNum(int key)
throws java.lang.Exception
Double object.
key - the row field number.
Double value from this row with the specified field number.
java.lang.Exception - if this row does not contain value for the specified field number
or if the value is not valid double number.
java.lang.Double getDoubleByNum(int key,
java.lang.Double defaultValue)
throws java.lang.Exception
Double object.
key - the row field number.defaultValue - a default Double value.
Double value from this row with the specified field number.
java.lang.Exception - if the value is not valid double number.
java.lang.Double getDoubleByAcronym(java.lang.String key)
throws java.lang.Exception
Double object.
key - the row field acronym.
Double value from this row with the specified field acronym.
java.lang.Exception - if this row does not contain value for the specified field acronym
or if the value is not valid double number.
java.lang.Double getDoubleByAcronym(java.lang.String key,
java.lang.Double defaultValue)
throws java.lang.Exception
Double object.
key - the row field acronym.defaultValue - a default Double value.
Double value from this row with the specified field acronym.
java.lang.Exception - if the value is not valid double number.java.lang.String getStringByNum(int key)
key - the row field number.
String value from this row with the specified field number, or
null if the field number is not found in this row.
java.lang.String getStringByNum(int key,
java.lang.String defaultValue)
String object.
key - the row field number.defaultValue - a default String value.
String value from this row with the specified field number.java.lang.String getStringByAcronym(java.lang.String key)
key - the row field acronym.
String value from this row with the specified field acronym, or
null if the field acronym is not found in this row.
java.lang.String getStringByAcronym(java.lang.String key,
java.lang.String defaultValue)
String object.
key - the row field acronym.defaultValue - a default String value.
String value from this row with the specified field acronym.
void setStringByNum(int key,
java.lang.String value)
String value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field number.value - String value.
void setStringByAcronym(java.lang.String key,
java.lang.String value)
String value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field acronym.value - String value.
void setIntByNum(int key,
int value)
int value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field number.value - int value.
void setIntByAcronym(java.lang.String key,
int value)
int value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field acronym.value - int value.
void setLongByNum(int key,
long value)
long value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field number.value - long value.
void setLongByAcronym(java.lang.String key,
long value)
long value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field acronym.value - long value.
void setDoubleByNum(int key,
double value)
double value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field number.value - double value.
void setDoubleByAcronym(java.lang.String key,
double value)
double value with the specified key to this row.
If the row previously contained a value for the key,
the old value is replaced by the specified value.
key - the row field acronym.value - double value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||