Package org.eclipse.persistence.sessions
Class DatabaseRecord
java.lang.Object
org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
org.eclipse.persistence.internal.sessions.AbstractRecord
org.eclipse.persistence.sessions.DatabaseRecord
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
,Record
public class DatabaseRecord
extends org.eclipse.persistence.internal.sessions.AbstractRecord
Purpose: Define a representation of a database row as field=>value pairs. This is the database row implementation class, the Record or java.util.Map interfaces should be used to access this class instead of the implementation class.
Responsibilities:
- Implement the common hashtable collection protocol.
- Allow get and put on the field or field name.
- See Also:
-
DatabaseField
Record
Map
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
org.eclipse.persistence.internal.sessions.AbstractRecord.EntrySet, org.eclipse.persistence.internal.sessions.AbstractRecord.KeySet, org.eclipse.persistence.internal.sessions.AbstractRecord.NoEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntryIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordKeyIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordValuesIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.ValuesSet
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
fields, lookupField, noEntry, nullValueInFields, size, sopObject, values
-
Constructor Summary
ConstructorDescriptionINTERNAL: Returns a record (of default size).DatabaseRecord
(int initialCapacity) INTERNAL: Returns a record of the given initial capacity.DatabaseRecord
(Vector fields, Vector values) INTERNAL: Builds row from database result fields and values.DatabaseRecord
(Vector fields, Vector values, int size) INTERNAL: Builds row from database result fields and values. -
Method Summary
Methods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord
add, clear, clone, 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, put, put, putAll, remove, remove, remove, replaceAt, 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
-
Constructor Details
-
DatabaseRecord
public DatabaseRecord()INTERNAL: Returns a record (of default size). -
DatabaseRecord
public DatabaseRecord(int initialCapacity) INTERNAL: Returns a record of the given initial capacity.- Parameters:
initialCapacity
-
-
DatabaseRecord
INTERNAL: Builds row from database result fields and values. Note: the entire database result will share the same fields vector.- Parameters:
fields
- Vector of fieldsvalues
- Vector of values
-
DatabaseRecord
INTERNAL: Builds row from database result fields and values. Note: the entire database result will share the same fields vector.- Parameters:
fields
- Vector of fieldsvalues
- Vector of valuessize
- of record
-