Purpose: Define the abstract definition of a record for internal use. Public API should reference the Map or Record interface. Subclasses are DatabaseRecord and XMLRecord.
Responsibilities:
DatabaseField
| Modifier and Type | Class and Description |
|---|---|
| protected class | AbstractRecord.EntrySet
Defines the virtual entrySet. |
| protected class | AbstractRecord.KeySet
Defines the virtual keySet. |
| public static class | AbstractRecord.NoEntry
INTERNAL: NoEntry: This is used to differentiate between the two kinds of nulls: no entry exists, and the field is actually mapped to null. |
| protected static class | AbstractRecord.RecordEntry
Entry class for implementing Map interface. |
| protected class | AbstractRecord.RecordEntryIterator
Defines the virtual entrySet iterator. |
| protected class | AbstractRecord.RecordKeyIterator
Defines the virtual keySet iterator. |
| protected class | AbstractRecord.RecordValuesIterator
Defines the virtual valuesSet iterator. |
| protected class | AbstractRecord.ValuesSet
Defines the virtual valuesSet. |
| Modifier and Type | Field and Description |
|---|---|
| protected Vector | fields
Use vector to store the fields/values for optimal performance. |
| protected DatabaseField | lookupField
Optimize field creation for field name lookup. |
| public static final AbstractRecord. | noEntry
INTERNAL: indicator showing that no entry exists for a given key. |
| protected boolean | nullValueInFields
INTERNAL: flag for any database field containing a null value |
| protected int | size
PERF: Cache the row size. |
| protected transient Object | sopObject
INTERNAL: SerializedObjectPolicy support |
| protected Vector | values
Use vector to store the fields/values for optimal performance. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | AbstractRecord(Vector<E> fields, Vector<E> values)
INTERNAL: converts JDBC results to collections of rows. |
| protected | AbstractRecord(Vector<E> fields, Vector<E> values, int size)
INTERNAL: converts JDBC results to collections of rows. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public AbstractRecord | |
| public boolean | |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. |
| public boolean | |
| public boolean | |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. |
| public Enumeration | |
| public Set | |
| public Object | get(Object
the key whose associated value is to be returned key)Implements java. |
| public Object | |
| public Object | |
| public DatabaseField | |
| public Vector | |
| public Object | |
| public Object | |
| protected DatabaseField | getLookupField(String fieldName)
Internal: factored out of getIndicatingNoEntry(String) to reduce complexity and have get(string) use get(DatabaseField) instead of getIndicatingNoEntry and then doing an extra check |
| public Object | |
| public Object | |
| public Object | |
| public Vector | |
| public boolean | hasNullValueInFields()
INTERNAL: Return true if the AbstractRecord has been marked as valid to check the update call cache with, false otherwise. |
| public boolean | |
| public boolean | |
| public Enumeration | |
| public Set | |
| public void | |
| public Object | put(Object
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Implements java. |
| 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)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)Implements java. |
| public void | putAll(Map<K, V>
mappings to be stored in this map map)Implements java. |
| public Object | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
| public Object | |
| public Object | |
| public void | |
| public void | |
| protected void | |
| protected void | |
| public void | setNullValueInFields(boolean nullValueInFields)
INTERNAL: Set the validForUpdateCallCacheCheck attribute to true if the row does not contain nulls, false otherwise |
| public void | |
| protected void | |
| public int | |
| public String | |
| public Collection |