final class ValidationData
extends java.lang.Object
DMOValidator
during record validation. Depending upon the type of validation requested
(e.g., full, remaining, dirty), the parameters will vary. This object
references the names of all dirty properties, the names of all unique and
non-unique indexes that should be checked, whether dirty updates should be
shared via the dirty share manager, and whether an insert into the dirty
share manager is required.Modifier and Type | Field and Description |
---|---|
private java.util.Collection<java.lang.String> |
cumulativeDirtyNonUnique
All non-unique indexes requiring sharing
|
private boolean |
deferred
Was some validation work and dirty database sharing deferred?
|
private java.util.Collection<java.lang.String> |
dirtyNonUnique
All non-unique indexes requiring sharing
|
private java.util.Set<java.lang.String> |
dirtyProps
All dirty properties requiring validation
|
private java.util.Collection<java.lang.String> |
dirtyUnique
All unique indexes requiring validation/sharing
|
private boolean |
insertRequired
Is an insert required in the dirty share manager?
|
private boolean |
isTransient
Is the affected record newly created and still transient?
|
private boolean |
shareDirty
Should insert/update information be shared with other contexts?
|
Constructor and Description |
---|
ValidationData(java.util.Set<java.lang.String> dirtyProps,
java.util.Collection<java.lang.String> dirtyUnique,
java.util.Collection<java.lang.String> dirtyNonUnique,
java.util.Collection<java.lang.String> cumulativeDirtyNonUnique,
boolean insertRequired,
boolean shareDirty,
boolean isTransient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Collection<java.lang.String> |
getCumulativeDirtyNonUnique()
Get the collection of dirty, non-unique, index names since the record was loaded/created.
|
(package private) java.util.Collection<java.lang.String> |
getDirtyNonUnique()
Get the collection of dirty, non-unique, index names since the last validation/share.
|
(package private) java.util.Set<java.lang.String> |
getDirtyProperties()
Get the set of dirty property names.
|
(package private) java.util.Collection<java.lang.String> |
getDirtyUnique()
Get the collection of dirty, unique, index names.
|
(package private) boolean |
isInsertRequired()
Indicate whether we need to insert a record into the dirty share
manager to reflect a new record.
|
(package private) boolean |
isShareDirty()
Indicate whether DMO insert/update information should be shared with
other contexts via the dirty share manager.
|
(package private) boolean |
isTransient()
Indicate whether the affected record is newly created and is still
transient.
|
(package private) void |
setDeferred()
Set the deferred flag to indicate dirty sharing and possibly uniqueness validation of an
updated property were deferred.
|
(package private) boolean |
wasDeferred()
Indicate whether possibly uniqueness validation and dirty sharing were deferred because not
all properties in an index were dirty for a transient record.
|
private final java.util.Set<java.lang.String> dirtyProps
private final java.util.Collection<java.lang.String> dirtyUnique
private final java.util.Collection<java.lang.String> dirtyNonUnique
private final java.util.Collection<java.lang.String> cumulativeDirtyNonUnique
private final boolean insertRequired
private final boolean shareDirty
private final boolean isTransient
private boolean deferred
ValidationData(java.util.Set<java.lang.String> dirtyProps, java.util.Collection<java.lang.String> dirtyUnique, java.util.Collection<java.lang.String> dirtyNonUnique, java.util.Collection<java.lang.String> cumulativeDirtyNonUnique, boolean insertRequired, boolean shareDirty, boolean isTransient)
dirtyProps
- All dirty properties requiring validation.dirtyUnique
- All unique indexes requiring validation/sharing.dirtyNonUnique
- All non-unique indexes requiring sharing.cumulativeDirtyNonUnique
- All non-unique indexes matched since the record was created/loaded.insertRequired
- Is an insert required in the dirty share manager?shareDirty
- Should insert/update information be shared with other contexts?isTransient
- Is the affected record newly created and still transient?java.util.Set<java.lang.String> getDirtyProperties()
java.util.Collection<java.lang.String> getDirtyUnique()
java.util.Collection<java.lang.String> getDirtyNonUnique()
java.util.Collection<java.lang.String> getCumulativeDirtyNonUnique()
boolean isInsertRequired()
true
to make the insert, else false
.boolean isShareDirty()
true
to share updates, else false
.boolean isTransient()
true
if transient, else false
.boolean wasDeferred()
true
if deferred, else false
.void setDeferred()
wasDeferred()