Modifier and Type | Field and Description |
---|---|
static java.lang.String |
$0 |
static short |
FLAG_ADD |
static short |
FLAG_ANY |
static short |
FLAG_BLOB |
static short |
FLAG_CHANGE |
static short |
FLAG_DEL |
static short |
FLAG_LDEL |
static short |
FLAG_NEW |
static short |
FLAG_REM |
static short |
FLAG_SET |
static short |
FLAG_ULDEL |
static int |
MT_ADD
adding an object to a relation
|
static int |
MT_BLOB
adding / removing / changing the BLOB of a BO
|
static int |
MT_DEL
PB 2003-09-23: this is not implemented yet.
|
static int |
MT_NEW
As far as I can see BOProcs with this change type are only created when syncing from existing BPs.
|
static int |
MT_REM
removing an object from a relation
|
static int |
MT_SET
change of an attribute (also covers "un-/deleting" by setting Ldel-flag to "false"/"true")
|
static short[] |
MT_TO_FLAG |
static java.lang.String[] |
MT_TO_TYPE |
static java.lang.String[] |
MT_TO_UNDO |
static java.lang.String |
TYPE_ADD |
static java.lang.String |
TYPE_BLOB |
static java.lang.String |
TYPE_DEL |
static java.lang.String |
TYPE_NEW |
static java.lang.String |
TYPE_REM |
static java.lang.String |
TYPE_SET |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsRelevant1toNChangesFor(AttributeI a,
BO changedBO,
BO newValueBO) |
default boolean |
containsRelevantChangesFor(BOLoaderWithCacheI loaderWithCache) |
static boolean |
containsRelevantNto1ChangesFor(AttributeI a,
BO changedBO,
BO newValueBO) |
static boolean |
containsRelevantNtoMChangesFor(AttributeI a,
BO changedBO,
BO newValueBO) |
EntityI |
getAffectedEntity(SchemaI schema)
Returns the EntityI that is affected by this BOProcI.
|
default java.util.List<java.lang.Long> |
getAffectedIds(SchemaI schema) |
default AttributeI |
getAttribute(SchemaI schema) |
java.lang.String |
getAttributeName() |
BO |
getBO() |
java.lang.Class |
getBOClass() |
java.lang.Long |
getBOId() |
java.lang.Object |
getNativeNewValue() |
java.lang.Object |
getNativeOldValue() |
java.lang.String |
getNewValue() |
BOProcI |
getNulledOldValueInstance() |
java.lang.String |
getOldValue() |
java.lang.Class |
getParmTypeClass() |
java.lang.String |
getProcTypeName() |
int |
getProcTypeNN() |
default BOProcI |
getRelevantChangesFor(BOLoaderWithCacheI loaderWithCache) |
default boolean |
isAddition()
Returns true/1 if this BOProc represents adding an element for a relation
attribute.
|
default boolean |
isAnyAffectedIdKnownTo(BOLoaderWithCacheI loaderWithCache)
Very simple fallback check, return true if any Id of the BOProcI is known.
|
default boolean |
isBLOBChange()
Returns true/1 if this BOProcI represents a BLOB operation
|
default boolean |
isBLOBCreation()
Returns true/1 if this BOProcI represents a BLOB creation
|
default boolean |
isBLOBDeletion()
Returns true/1 if this BOProcI represents a BLOB deletion
|
default boolean |
isChange()
Returns true/1 if this BOProcI represents some change (new value for a
"primitive" attribute or adding or removing an element for a relation
attribute).
|
default boolean |
isChangeTo(java.lang.String attrName)
Returns true if this BP represents a change to an attribute with the
given name.
|
default boolean |
isCreation()
Returns true/1 if this BOProcI represents the creation of a new BO.
|
default boolean |
isDeletion()
Returns true/1 if this BOProcI represents the deletion of a BO.
|
default boolean |
isDeletionFlagChange()
Returns true/1 if this BOProcI does something with the Ldel flag
|
default boolean |
isDependentManyRelationChange(SchemaI schema)
Returns true/1 if this BOProcI represents a change to a dependent many-relation.
|
default boolean |
isForbiddenChange(SchemaI schema) |
default boolean |
isForbiddenChange(SchemaI schema,
boolean signalIfForbiddenChange) |
default boolean |
isKeepNoBLOBHistory(SchemaI schema) |
default boolean |
isManyRelationChange()
Returns true/1 if this BOProcI represents a change to a many-relation, i.e.
|
default boolean |
isManyToManyChange(SchemaI schema)
Returns true/1 if this BOProcI represents a change to a many-to-many-relation, i.e.
|
default boolean |
isOneToManyChange(SchemaI schema)
Returns true/1 if this BOProcI represents a change to a one-to-many-relation, i.e.
|
default boolean |
isRelationChange(SchemaI schema)
Returns true/1 if this BOProcI represents a change to relation
|
default boolean |
isRelevantRelationalChangeFor(BO bo,
java.lang.String attrName) |
default boolean |
isRelevantRelationalChangeForTE(BO bo,
java.lang.String attrName)
Returns true if this BOProcI has changed the relation given by BO and property name.
|
default boolean |
isRemoval()
Returns true/1 if this BOProc represents removing an element for a relation
attribute.
|
default boolean |
isSettingValue()
Returns true/1 if this BOProc represents setting a value
|
default boolean |
isSimpleChange()
Returns true/1 if this BOProcI represents some simple change (new value for
a "primitive" or "n-1" attribute).
|
default boolean |
isUndeletion()
Returns true/1 if this BOProcI represents the undeletion of a BO.
|
boolean |
setsBooleanToFalse(java.lang.String attrName)
Returns true if this BOProcI represents a change of the value of the attribute
represented by the given attrName to false.
|
boolean |
setsBooleanToFalse(java.lang.String attrName,
boolean alsoIfAttrWasSetToNull)
Returns true if this BOProcI represents a change of the value of the attribute
represented by the given attrName to false.
|
boolean |
setsBooleanToTrue(java.lang.String attrName)
Returns true if this BOProcI represents a change of the value of the attribute
represented by the given attrName to true.
|
void |
warn(java.lang.String msg)
Logs the passed warning message in the logger of this BOProcI.
|
static final java.lang.String $0
static final java.lang.String TYPE_SET
static final java.lang.String TYPE_ADD
static final java.lang.String TYPE_REM
static final java.lang.String TYPE_NEW
static final java.lang.String TYPE_DEL
static final java.lang.String TYPE_BLOB
static final int MT_SET
static final int MT_ADD
static final int MT_REM
static final int MT_NEW
static final int MT_DEL
static final int MT_BLOB
static final java.lang.String[] MT_TO_TYPE
static final java.lang.String[] MT_TO_UNDO
static final short FLAG_SET
static final short FLAG_ADD
static final short FLAG_REM
static final short FLAG_NEW
static final short FLAG_DEL
static final short FLAG_LDEL
static final short FLAG_ULDEL
static final short FLAG_BLOB
static final short FLAG_ANY
static final short FLAG_CHANGE
static final short[] MT_TO_FLAG
BOProcI getNulledOldValueInstance()
java.lang.Long getBOId()
java.lang.Class getBOClass()
BO getBO()
java.lang.String getAttributeName()
default AttributeI getAttribute(SchemaI schema)
EntityI getAffectedEntity(SchemaI schema)
int getProcTypeNN()
java.lang.String getProcTypeName()
java.lang.Class getParmTypeClass()
java.lang.Object getNativeOldValue()
java.lang.String getOldValue()
java.lang.Object getNativeNewValue()
java.lang.String getNewValue()
default boolean isCreation()
default boolean isDeletion()
default boolean isUndeletion()
default boolean isSettingValue()
default boolean isAddition()
default boolean isRemoval()
default boolean isChange()
default boolean isChangeTo(java.lang.String attrName)
default boolean isForbiddenChange(SchemaI schema)
default boolean isForbiddenChange(SchemaI schema, boolean signalIfForbiddenChange)
default boolean isSimpleChange()
default boolean isDeletionFlagChange()
boolean setsBooleanToTrue(java.lang.String attrName)
boolean setsBooleanToFalse(java.lang.String attrName, boolean alsoIfAttrWasSetToNull)
boolean setsBooleanToFalse(java.lang.String attrName)
default boolean isRelationChange(SchemaI schema)
default boolean isManyRelationChange()
default boolean isOneToManyChange(SchemaI schema)
default boolean isManyToManyChange(SchemaI schema)
default boolean isDependentManyRelationChange(SchemaI schema)
default boolean isRelevantRelationalChangeForTE(BO bo, java.lang.String attrName) throws AttributeResolveException
AttributeResolveException
default boolean isRelevantRelationalChangeFor(BO bo, java.lang.String attrName)
default boolean isBLOBChange()
default boolean isBLOBCreation()
default boolean isBLOBDeletion()
default boolean isKeepNoBLOBHistory(SchemaI schema)
true
if the affected EntityI of this BOProcI was
configured to keep no history of its stream ressource, i.e. a stream
resource is always just replaced by a different one, without keeping
any backups.void warn(java.lang.String msg)
default BOProcI getRelevantChangesFor(BOLoaderWithCacheI loaderWithCache)
loaderWithCache
- the BOLoaderWithCacheI to get "relevant" changes for, nonnull.default boolean containsRelevantChangesFor(BOLoaderWithCacheI loaderWithCache)
static boolean containsRelevantNto1ChangesFor(AttributeI a, BO changedBO, BO newValueBO)
static boolean containsRelevant1toNChangesFor(AttributeI a, BO changedBO, BO newValueBO)
static boolean containsRelevantNtoMChangesFor(AttributeI a, BO changedBO, BO newValueBO)
default boolean isAnyAffectedIdKnownTo(BOLoaderWithCacheI loaderWithCache)
default java.util.List<java.lang.Long> getAffectedIds(SchemaI schema)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.