public class EmptyRecord extends DatabaseRecord
Purpose: Define a singleton empty record to avoid record creation when not required.
AbstractRecord.NoEntry| Modifier and Type | Field and Description |
|---|---|
static DatabaseRecord |
emptyRecord
PERF: Store a singleton empty record to avoid creation when not required.
|
noEntry| Modifier and Type | Method and Description |
|---|---|
void |
add(DatabaseField key,
java.lang.Object value)
INTERNAL:
Add the field-value pair to the row.
|
DatabaseRecord |
clone()
Need to return a real record.
|
static DatabaseRecord |
getEmptyRecord()
Return the singleton empty record.
|
java.lang.Object |
put(DatabaseField key,
java.lang.Object value)
INTERNAL:
Add the field-value pair to the row.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
PUBLIC:
Add the field-value pair to the row.
|
void |
replaceAt(java.lang.Object value,
int index)
INTERNAL:
replaces the value at index with value
|
clear, contains, containsKey, containsKey, containsKey, containsValue, elements, entrySet, get, get, get, getField, getFields, getIndicatingNoEntry, getIndicatingNoEntry, getSopObject, getValues, getValues, getValues, hasNullValueInFields, hasSopObject, isEmpty, keys, keySet, mergeFrom, put, putAll, remove, remove, remove, replaceAt, setNullValueInFields, setSopObject, size, toString, valuespublic static DatabaseRecord emptyRecord
public static DatabaseRecord getEmptyRecord()
public DatabaseRecord clone()
clone in class AbstractRecordpublic void add(DatabaseField key, java.lang.Object value)
AbstractRecordadd in class AbstractRecordpublic java.lang.Object put(java.lang.String key,
java.lang.Object value)
AbstractRecordput in class AbstractRecordpublic java.lang.Object put(DatabaseField key, java.lang.Object value)
AbstractRecordput in class AbstractRecordpublic void replaceAt(java.lang.Object value,
int index)
AbstractRecordreplaceAt in class AbstractRecordEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference