Purpose: Define a singleton empty record to avoid record creation when not required.
| Modifier and Type | Field and Description |
|---|---|
| public static final DatabaseRecord | emptyRecord
PERF: Store a singleton empty record to avoid creation when not required. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(DatabaseField key, Object value)
Overrides org. |
| public DatabaseRecord | clone()
Overrides org. |
| public static DatabaseRecord | |
| public Object | put(String
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Overrides org. Implements java. |
| public Object | put(DatabaseField
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Overrides org. Implements java. |
| public void | replaceAt(Object value, int index)
Overrides org. |
| emptyRecord | back to summary |
|---|---|
| public static final DatabaseRecord emptyRecord PERF: Store a singleton empty record to avoid creation when not required. | |
| EmptyRecord | back to summary |
|---|---|
| protected EmptyRecord() | |
| add | back to summary |
|---|---|
| public void add(DatabaseField key, Object value) Overrides org. Doc from org. INTERNAL: Add the field-value pair to the row. Will not check, will simply add to the end of the row
| |
| clone | back to summary |
|---|---|
| public DatabaseRecord clone() Overrides org. Need to return a real record.
| |
| getEmptyRecord | back to summary |
|---|---|
| public static DatabaseRecord getEmptyRecord() Return the singleton empty record. | |
| put | back to summary |
|---|---|
| public Object put(String key, Object value) Overrides org. Implements java. Doc from org. PUBLIC: Add the field-value pair to the row.
| |
| put | back to summary |
|---|---|
| public Object put(DatabaseField key, Object value) Overrides org. Implements java. Doc from org. INTERNAL: Add the field-value pair to the row.
| |
| replaceAt | back to summary |
|---|---|
| public void replaceAt(Object value, int index) Overrides org. Doc from org. INTERNAL: replaces the value at index with value
| |