Module org.eclipse.persistence.core
Class EmptyRecord
java.lang.Object
org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
org.eclipse.persistence.internal.sessions.AbstractRecord
org.eclipse.persistence.sessions.DatabaseRecord
org.eclipse.persistence.internal.sessions.EmptyRecord
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
,DataRecord
Purpose: Define a singleton empty record to avoid record creation when not required.
- Since:
- 11
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
AbstractRecord.EntrySet, AbstractRecord.KeySet, AbstractRecord.NoEntry, AbstractRecord.RecordEntry, AbstractRecord.RecordEntryIterator, AbstractRecord.RecordKeyIterator, AbstractRecord.RecordValuesIterator, AbstractRecord.ValuesSet
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DatabaseRecord
PERF: Store a singleton empty record to avoid creation when not required.Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
fields, lookupField, noEntry, nullValueInFields, size, sopObject, values
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(DatabaseField key, Object value) INTERNAL: Add the field-value pair to the row.clone()
Need to return a real record.static DatabaseRecord
Return the singleton empty record.PUBLIC: Add the field-value pair to the row.put
(DatabaseField key, Object value) INTERNAL: Add the field-value pair to the row.void
INTERNAL: replaces the value at index with valueMethods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
clear, contains, containsKey, containsKey, containsKey, containsValue, elements, entrySet, get, get, get, getField, getFields, getIndicatingNoEntry, getIndicatingNoEntry, getLookupField, getSopObject, getValues, getValues, getValues, hasNullValueInFields, hasSopObject, isEmpty, keys, keySet, mergeFrom, put, putAll, remove, remove, remove, replaceAt, resetSize, setFields, setNullValueInFields, setSopObject, setValues, size, toString, values
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
emptyRecord
PERF: Store a singleton empty record to avoid creation when not required.
-
-
Constructor Details
-
EmptyRecord
protected EmptyRecord()
-
-
Method Details
-
getEmptyRecord
Return the singleton empty record. -
clone
Need to return a real record.- Overrides:
clone
in classAbstractRecord
-
add
Description copied from class:AbstractRecord
INTERNAL: Add the field-value pair to the row. Will not check, will simply add to the end of the row- Overrides:
add
in classAbstractRecord
-
put
Description copied from class:AbstractRecord
PUBLIC: Add the field-value pair to the row.- Overrides:
put
in classAbstractRecord
-
put
Description copied from class:AbstractRecord
INTERNAL: Add the field-value pair to the row.- Overrides:
put
in classAbstractRecord
-
replaceAt
Description copied from class:AbstractRecord
INTERNAL: replaces the value at index with value- Overrides:
replaceAt
in classAbstractRecord
-