Package com.gmt2001.datastore2.datatype
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 TypeMethodDescriptionvoidattach(UpdatableRecord<?> record, int fieldIndex) Attaches thisAttachableDataTypeto a record and field to mark when changed
-
Method Details
-
attach
Attaches thisAttachableDataTypeto a record and field to mark when changed- Parameters:
record- the record whichis storing this mapfieldIndex- the field index where this map is located in the record
-