Class EmptyRecord

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map, Record

    public class EmptyRecord
    extends DatabaseRecord

    Purpose: Define a singleton empty record to avoid record creation when not required.

    Since:
    11
    Author:
    James Sutherland
    See Also:
    Serialized Form
    • Field Detail

      • emptyRecord

        public static final DatabaseRecord emptyRecord
        PERF: Store a singleton empty record to avoid creation when not required.
    • Constructor Detail

      • EmptyRecord

        protected EmptyRecord()
    • Method Detail

      • getEmptyRecord

        public static DatabaseRecord getEmptyRecord()
        Return the singleton empty record.
      • add

        public void add​(DatabaseField key,
                        java.lang.Object value)
        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 class AbstractRecord
      • put

        public java.lang.Object put​(java.lang.String key,
                                    java.lang.Object value)
        Description copied from class: AbstractRecord
        PUBLIC: Add the field-value pair to the row.
        Overrides:
        put in class AbstractRecord
      • replaceAt

        public void replaceAt​(java.lang.Object value,
                              int index)
        Description copied from class: AbstractRecord
        INTERNAL: replaces the value at index with value
        Overrides:
        replaceAt in class AbstractRecord