Interface AttachableDataType

All Known Implementing Classes:
AbstractDatabaseMap, PermissionMap

public interface AttachableDataType
Allows a custom DataType to attach a reference to a UpdatableRecord

This interface is used to allow the UpdatableRecord to automatically detect and trigger the attachment so that the DataType can mark itself as changed when an internal state is updated which requires storage

It is up to the implmenting class to store the record and fieldIndex variables, override methods which change their internal state, and call Record.changed(int, boolean) when appropriate

Author:
gmt2001
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attach(UpdatableRecord<?> record, int fieldIndex)
    Attaches this AttachableDataType to a record and field to mark when changed
  • Method Details

    • attach

      void attach(UpdatableRecord<?> record, int fieldIndex)
      Attaches this AttachableDataType to a record and field to mark when changed
      Parameters:
      record - the record whichis storing this map
      fieldIndex - the field index where this map is located in the record