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, values
public static DatabaseRecord emptyRecord
public static DatabaseRecord getEmptyRecord()
public DatabaseRecord clone()
clone
in class AbstractRecord
public void add(DatabaseField key, java.lang.Object value)
AbstractRecord
add
in class AbstractRecord
public java.lang.Object put(java.lang.String key, java.lang.Object value)
AbstractRecord
put
in class AbstractRecord
public java.lang.Object put(DatabaseField key, java.lang.Object value)
AbstractRecord
put
in class AbstractRecord
public void replaceAt(java.lang.Object value, int index)
AbstractRecord
replaceAt
in class AbstractRecord
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference