Class SimpleFieldTracker
- java.lang.Object
-
- org.hibernate.bytecode.enhance.internal.tracker.SimpleFieldTracker
-
- All Implemented Interfaces:
DirtyTracker
public final class SimpleFieldTracker extends Object implements DirtyTracker
small low memory class to keep track of changed fieldsuses 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 Constructor Description SimpleFieldTracker()
-
-
-
Method Detail
-
add
public void add(String name)
- Specified by:
add
in interfaceDirtyTracker
-
contains
public boolean contains(String name)
- Specified by:
contains
in interfaceDirtyTracker
-
clear
public void clear()
- Specified by:
clear
in interfaceDirtyTracker
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceDirtyTracker
-
get
public String[] get()
- Specified by:
get
in interfaceDirtyTracker
-
suspend
public void suspend(boolean suspend)
- Specified by:
suspend
in interfaceDirtyTracker
-
-