= Updated tracked stuff
This commit is contained in:
1 parent
3b8e8c7f01
commit
09b1e498e7
3 files changed
+71
-8
No files matched your search
@@ -4,7 +4,7 @@ package core;
|
||||
// have their data populated from database entries.
|
||||
public abstract class DatabaseTrackedObject
|
||||
{
|
||||
private boolean isDirty;
|
||||
private Boolean isDirty;
|
||||
public final String identifier;
|
||||
|
||||
public DatabaseTrackedObject(String identifier)
|
||||
@@ -15,17 +15,26 @@ public abstract class DatabaseTrackedObject
|
||||
|
||||
public final boolean IsDirty()
|
||||
{
|
||||
return isDirty;
|
||||
synchronized(isDirty)
|
||||
{
|
||||
return isDirty;
|
||||
}
|
||||
}
|
||||
|
||||
public final void MarkDirty()
|
||||
{
|
||||
isDirty = true;
|
||||
synchronized(isDirty)
|
||||
{
|
||||
isDirty = true;
|
||||
}
|
||||
}
|
||||
|
||||
public final void Resolve()
|
||||
{
|
||||
isDirty = false;
|
||||
synchronized(isDirty)
|
||||
{
|
||||
isDirty = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Consider an object factory instead of dedicated serialization methods
|
||||
|
||||
Reference in new issue
Block a user