T
- the type of the object containing the changed fieldpublic abstract class FieldChange<T> extends Change<T>
@OnChange
-annotated methods
when a field changes.
Note that it's possible, using the core API, to change a field without first updating the containing object's schema version.
As older schema versions may have different fields than the schema version associated with a particular
Permazen
instance, it's therefore possible to receive change notifications about changes to fields
not present in the current schema. This will not happen unless the lower level core API is used directly, FieldChange
events are being generated manually, etc.
Modifier | Constructor and Description |
---|---|
protected |
FieldChange(T jobj,
int storageId,
String fieldName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFieldName()
Get the name of the field that changed.
|
int |
getStorageId()
Get the storage ID of the field that changed.
|
int |
hashCode() |
protected FieldChange(T jobj, int storageId, String fieldName)
jobj
- Java object containing the field that changedstorageId
- the storage ID of the affected fieldfieldName
- the name of the field that changedIllegalArgumentException
- if storageId
is non-positiveIllegalArgumentException
- if jobj
or fieldName
is nullpublic int getStorageId()
public String getFieldName()
Copyright © 2022. All rights reserved.