Class SimpleFieldTracker
java.lang.Object
org.hibernate.bytecode.enhance.internal.tracker.SimpleFieldTracker
- All Implemented Interfaces:
DirtyTracker
small low memory class to keep track of changed fields
uses an array as a set (under the assumption that the number of elements will be low) to avoid having to instantiate an HashSet. if the assumption does not, hold the array can be kept ordered to reduce the cost of verifying duplicates
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleFieldTracker
public SimpleFieldTracker()
-
-
Method Details
-
add
- Specified by:
add
in interfaceDirtyTracker
-
contains
- Specified by:
contains
in interfaceDirtyTracker
-
clear
public void clear()- Specified by:
clear
in interfaceDirtyTracker
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceDirtyTracker
-
get
- Specified by:
get
in interfaceDirtyTracker
-
suspend
public void suspend(boolean suspend) - Specified by:
suspend
in interfaceDirtyTracker
-