Package com.landawn.abacus
Interface DirtyMarker
-
@AccessFieldByMethod public interface DirtyMarker
Memo of the signed and modified properties in this entity instance.- Since:
- 0.8
- Author:
- Haiyang Li
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Set<String>
dirtyPropNames()
Deprecated.String
entityName()
Returns the entity name of the simple class name.void
freeze()
Method freeze.boolean
frozen()
boolean
isDirty()
Deprecated.boolean
isDirty(String propName)
Deprecated.void
markDirty(boolean isDirty)
Deprecated.void
markDirty(String propName, boolean isDirty)
Deprecated.void
markDirty(Collection<String> propNames, boolean isDirty)
Deprecated.Set<String>
signedPropNames()
Deprecated.long
version()
Returns the mapping record version when it's loaded.
-
-
-
Method Detail
-
entityName
String entityName()
Returns the entity name of the simple class name.- Returns:
-
version
long version()
Returns the mapping record version when it's loaded.- Returns:
- long
-
isDirty
@Internal @Deprecated boolean isDirty()
Deprecated.Check if there is any property modified in this entity.- Returns:
- boolean
-
isDirty
@Internal @Deprecated boolean isDirty(String propName)
Deprecated.Check if the specified property is modified.- Parameters:
propName
-- Returns:
- boolean
-
markDirty
@Internal @Deprecated void markDirty(boolean isDirty)
Deprecated.Set the dirty status for all signed properties.- Parameters:
isDirty
-
-
markDirty
@Internal @Deprecated void markDirty(String propName, boolean isDirty)
Deprecated.Set the dirty status for the specified property.- Parameters:
propName
-isDirty
-
-
markDirty
@Internal @Deprecated void markDirty(Collection<String> propNames, boolean isDirty)
Deprecated.Set the dirty status for the specified properties.- Parameters:
propNames
-isDirty
-
-
signedPropNames
@Internal @Deprecated Set<String> signedPropNames()
Deprecated.Returns the names of the signed properties. It's for the internal design and implementation in Abacus, should not be used externally.- Returns:
- Collection
Must not modify the returned collection
-
dirtyPropNames
@Internal @Deprecated Set<String> dirtyPropNames()
Deprecated.Returns the names of updated properties. It's for the internal design and implementation in Abacus, should not be used externally.- Returns:
- Collection
Must not modify the returned collection
-
freeze
void freeze()
Method freeze.
-
frozen
boolean frozen()
- Returns:
- true, if successful
-
-