public class BOProc extends java.lang.Object implements BOProcI, java.io.Externalizable, java.lang.Cloneable, WriteConstraintsOverriderI
Modifier and Type | Field and Description |
---|---|
static BOProc[] |
EMPTY_ARRAY |
static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
BOProc() |
BOProc(BO _bO,
de.ipcon.db.core.ProcType _procType,
java.lang.String _attributeName,
java.lang.Class _pt,
java.lang.Object _op,
java.lang.Object _np) |
BOProc(BO _bO,
de.ipcon.db.core.ProcType _procType,
java.lang.String _attributeName,
java.lang.Class _pt,
java.lang.Object _op,
java.lang.Object _np,
ManagedFileI _handle) |
BOProc(BO _bO,
de.ipcon.db.core.ProcType _procType,
java.lang.String _attributeName,
java.lang.Class _pt,
java.lang.Object _op,
java.lang.Object _np,
ManagedFileI _handle,
boolean _fixing) |
BOProc(BO _bO,
de.ipcon.db.core.ProcType _procType,
java.lang.String _attributeName,
java.lang.Class _pt,
java.lang.Object _op,
java.lang.Object _np,
ManagedFileI _handle,
boolean _fixing,
java.util.Date _localLmodOfBO) |
Modifier and Type | Method and Description |
---|---|
void |
announceBP(java.lang.Long bPId,
java.lang.Long boId) |
BOProc |
backRelationInstance(SchemaI schema,
BO affectedBO) |
BOProc |
clone() |
void |
commitBLOB() |
int |
compareByCreationMillis(BOProc second)
Compares two BOProc instances by their creationMillis using ascending order
|
BOProc |
createReverse()
Creates the reverse BOProc instance and returns it, i.e. a 'forward' instance with the same 'replay' behaviour as this ones 'unplay'
|
boolean |
disableAttributeWriteConstraints()
Disables write constraints on attributes.
|
void |
finishBLOB() |
EntityI |
getAffectedEntity(SchemaI schema)
Retrieves the `EntityI` that is directly impacted by the changes represented by this `BOProcI`,
i.e. the entity of the modified BO.
|
java.lang.String |
getAtt() |
java.lang.String |
getAttributeName() |
BOProcI |
getBackProc() |
ManagedFileI |
getBLOBHandle() |
BO |
getBO() |
java.lang.Class |
getBOClass() |
java.lang.Long |
getBOId() |
long |
getCreationMillis() |
EntityI |
getEntity(SchemaI schema)
Deprecated.
please use
getAffectedEntity(SchemaI) instead. |
java.util.Date |
getLocalLmodOfBO() |
java.lang.Object |
getNativeNewValue() |
java.lang.Object |
getNativeOldValue() |
java.lang.Object |
getNewParm() |
java.lang.String |
getNewValue() |
BOProcI |
getNulledOldValueInstance() |
java.lang.Object |
getOldParm() |
java.lang.String |
getOldValue() |
java.lang.Class |
getParmTypeClass() |
java.lang.Class |
getPtyp() |
BOProc |
getStubbedInstance() |
de.ipcon.db.core.ProcType |
getType() |
int |
getTypeCode() |
java.lang.String |
getTypeName() |
boolean |
isCollateralChangeWhileSaving() |
boolean |
isFixing() |
static BOProc |
of(SchemaI schema,
BOLoaderI loader,
BOProcI bp) |
static BOProc |
of(SchemaI schema,
BOLoaderI loader,
BOProcI bp,
BO explicitBO) |
static BOProc |
of(SchemaI schema,
BOLoaderI loader,
BOProcI bp,
BO explicitBO,
java.lang.Long boId) |
static BOProc |
of(SchemaI schema,
BOLoaderI loader,
BOProcI bp,
BO explicitBO,
java.lang.Long boId,
BLOBLoaderI blobLoader) |
static BOProc |
of(SchemaI schema,
BOLoaderI loader,
BOProcI bp,
BO explicitBO,
java.lang.Long boId,
BLOBLoaderI blobLoader,
ServerFileVaultI fileVault) |
static BOProc |
of(SchemaI schema,
BOLoaderI loader,
BOProcI bp,
BO explicitBO,
java.lang.Long boId,
BLOBLoaderI blobLoader,
ServerFileVaultI fileVault,
BP backuppingBP) |
static BOProc |
of(SchemaI schema,
BOLoaderI loader,
BOProcI bp,
BO explicitBO,
java.lang.Long boId,
BLOBLoaderI blobLoader,
ServerFileVaultI fileVault,
BP backuppingBP,
boolean fixingMode) |
static BOProc |
ofFixing(SchemaI schema,
BOLoaderI loader,
BP bp)
Returns a new instance of BOProc reflecting the changes in the passed BP.
|
static BOProc |
ofPurging(BO _bO)
Creates a new `BOProc` instance representing the purging of a Business Object (BO).
|
void |
playStreamOp() |
void |
precommitBLOB() |
void |
readExternal(java.io.ObjectInput s) |
void |
readInstance(SecureObjectInputI s,
java.util.ArrayList<BO> boList,
SchemaI schema,
boolean stubClone,
boolean forDeepClone,
boolean syncMode,
FileVaultI fileVault) |
void |
replay(SchemaI schema)
Replay method to apply the changes in this proc onto the current BO.
|
void |
replayInExistingCachedBOGraph(SchemaI schema)
Like
replay(SchemaI) , but does a simplified unplay first. |
void |
rollbackBLOB() |
void |
setAtt(java.lang.String $13) |
void |
setBackProc(BOProcI $21) |
void |
setBLOBHandle(ManagedFileI $20) |
void |
setBO(BO $12) |
void |
setCollateralChangeWhileSaving(boolean $18) |
void |
setFixing(boolean $17) |
void |
setLocalLmodOfBO(java.util.Date $19) |
void |
setNewParm(java.lang.Object $15) |
void |
setOldParm(java.lang.Object $16) |
void |
setPtyp(java.lang.Class $14) |
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 |
setType(de.ipcon.db.core.ProcType $11) |
java.lang.String |
toString() |
void |
unplay(SchemaI schema)
Sets the current BO attribute to the values it had before the current Proc
|
void |
unplayStreamOp() |
void |
warn(java.lang.String msg)
Logs a warning message using the logger associated with this `BOProcI`.
|
void |
writeExternal(java.io.ObjectOutput s) |
void |
writeInstance(SecureObjectOutputI s,
java.util.HashMap<BO,java.lang.Integer> indexMap,
SchemaI schema,
boolean stubClone,
boolean noBLOBTransfer,
boolean syncMode) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendTo, appendTo, appendTo, appendTo, appendTo, appendTo, appendTo, containsRelevant1toNChangesFor, containsRelevantChangesFor, containsRelevantNto1ChangesFor, containsRelevantNtoMChangesFor, getAffectedIds, getAttribute, getRelevantChangesFor, isAddition, isAnyAffectedIdKnownTo, isBLOBChange, isBLOBCreation, isBLOBDeletion, isChange, isChangeTo, isCreation, isDeletion, isDeletionFlagChange, isDependentManyRelationChange, isForbiddenChange, isForbiddenChange, isKeepNoBLOBHistory, isManyRelationChange, isManyToManyChange, isManyToOneChange, isOneToManyChange, isPurging, isRelationChange, isRelevantRelationalChangeFor, isRelevantRelationalChangeForTE, isRemoval, isSettingValue, isSimpleChange, isUndeletion
getLogLevelForDisableAttributeWriteConstraints
public static final org.apache.log4j.Logger log
public static final BOProc[] EMPTY_ARRAY
public BOProc()
public BOProc(BO _bO, de.ipcon.db.core.ProcType _procType, java.lang.String _attributeName, java.lang.Class _pt, java.lang.Object _op, java.lang.Object _np)
public BOProc(BO _bO, de.ipcon.db.core.ProcType _procType, java.lang.String _attributeName, java.lang.Class _pt, java.lang.Object _op, java.lang.Object _np, ManagedFileI _handle)
public BOProc(BO _bO, de.ipcon.db.core.ProcType _procType, java.lang.String _attributeName, java.lang.Class _pt, java.lang.Object _op, java.lang.Object _np, ManagedFileI _handle, boolean _fixing)
public BOProc(BO _bO, de.ipcon.db.core.ProcType _procType, java.lang.String _attributeName, java.lang.Class _pt, java.lang.Object _op, java.lang.Object _np, ManagedFileI _handle, boolean _fixing, java.util.Date _localLmodOfBO)
public static BOProc ofFixing(SchemaI schema, BOLoaderI loader, BP bp)
public static BOProc ofPurging(BO _bO)
This method constructs a `BOProc` with the specified BO and sets its processing type to `ProcType.PURGE`. The remaining parameters (attribute name, parameter type, old parameter value and new parameter value) are set to `null`, as they are not relevant for a purge operation.
_bO
- The BO that is being purged.public static BOProc of(SchemaI schema, BOLoaderI loader, BOProcI bp, BO explicitBO, java.lang.Long boId)
public static BOProc of(SchemaI schema, BOLoaderI loader, BOProcI bp, BO explicitBO, java.lang.Long boId, BLOBLoaderI blobLoader)
public static BOProc of(SchemaI schema, BOLoaderI loader, BOProcI bp, BO explicitBO, java.lang.Long boId, BLOBLoaderI blobLoader, ServerFileVaultI fileVault)
public static BOProc of(SchemaI schema, BOLoaderI loader, BOProcI bp, BO explicitBO, java.lang.Long boId, BLOBLoaderI blobLoader, ServerFileVaultI fileVault, BP backuppingBP)
public static BOProc of(SchemaI schema, BOLoaderI loader, BOProcI bp, BO explicitBO, java.lang.Long boId, BLOBLoaderI blobLoader, ServerFileVaultI fileVault, BP backuppingBP, boolean fixingMode)
public void warn(java.lang.String msg)
BOProcI
public BOProcI getNulledOldValueInstance()
getNulledOldValueInstance
in interface BOProcI
public boolean disableAttributeWriteConstraints()
WriteConstraintsOverriderI
This method temporarily disables any write constraints that might be in place for attributes. This allows for modifying attributes that would normally be restricted via read-only.
disableAttributeWriteConstraints
in interface WriteConstraintsOverriderI
true
if write constraints shall be disabled, false
otherwise.public java.lang.String getAttributeName()
getAttributeName
in interface BOProcI
public int getTypeCode()
getTypeCode
in interface BOProcI
public java.lang.String getTypeName()
getTypeName
in interface BOProcI
public java.lang.Class getParmTypeClass()
getParmTypeClass
in interface BOProcI
public java.lang.Object getNativeOldValue()
getNativeOldValue
in interface BOProcI
public java.lang.String getOldValue()
getOldValue
in interface BOProcI
public java.lang.Object getNativeNewValue()
getNativeNewValue
in interface BOProcI
public java.lang.String getNewValue()
getNewValue
in interface BOProcI
public boolean setsBooleanToTrue(java.lang.String attrName)
BOProcI
setsBooleanToTrue
in interface BOProcI
public boolean setsBooleanToFalse(java.lang.String attrName)
BOProcI
setsBooleanToFalse
in interface BOProcI
public boolean setsBooleanToFalse(java.lang.String attrName, boolean alsoIfAttrWasSetToNull)
BOProcI
setsBooleanToFalse
in interface BOProcI
public long getCreationMillis()
public java.lang.Class getBOClass()
getBOClass
in interface BOProcI
public BOProc getStubbedInstance()
public BOProc clone()
clone
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeInstance(SecureObjectOutputI s, java.util.HashMap<BO,java.lang.Integer> indexMap, SchemaI schema, boolean stubClone, boolean noBLOBTransfer, boolean syncMode) throws java.io.IOException
java.io.IOException
public void readInstance(SecureObjectInputI s, java.util.ArrayList<BO> boList, SchemaI schema, boolean stubClone, boolean forDeepClone, boolean syncMode, FileVaultI fileVault) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public void replayInExistingCachedBOGraph(SchemaI schema)
replay(SchemaI)
, but does a simplified unplay first.
This is to make sure that any backrelations in the Cached BO Graph will get updated as well.public void replay(SchemaI schema)
public void unplay(SchemaI schema)
@Deprecated public EntityI getEntity(SchemaI schema)
getAffectedEntity(SchemaI)
instead.public EntityI getAffectedEntity(SchemaI schema)
BOProcI
This method identifies the specific entity within the schema that is affected by the business object procedure represented by this `BOProcI`. The `schema` parameter provides the context for resolving the entity.
getAffectedEntity
in interface BOProcI
schema
- The schema to use.public BOProc createReverse()
public void announceBP(java.lang.Long bPId, java.lang.Long boId)
public void precommitBLOB() throws java.io.IOException
java.io.IOException
public void commitBLOB() throws java.io.IOException
java.io.IOException
public void rollbackBLOB() throws java.io.IOException
java.io.IOException
public void finishBLOB() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public void playStreamOp()
public void unplayStreamOp()
public int compareByCreationMillis(BOProc second)
public void setType(de.ipcon.db.core.ProcType $11)
public void setBO(BO $12)
public java.lang.String getAtt()
public void setAtt(java.lang.String $13)
public java.lang.Class getPtyp()
public void setPtyp(java.lang.Class $14)
public java.lang.Object getNewParm()
public void setNewParm(java.lang.Object $15)
public java.lang.Object getOldParm()
public void setOldParm(java.lang.Object $16)
public boolean isFixing()
public void setFixing(boolean $17)
public boolean isCollateralChangeWhileSaving()
public void setCollateralChangeWhileSaving(boolean $18)
public java.util.Date getLocalLmodOfBO()
public void setLocalLmodOfBO(java.util.Date $19)
public ManagedFileI getBLOBHandle()
public void setBLOBHandle(ManagedFileI $20)
public BOProcI getBackProc()
getBackProc
in interface BOProcI
public void setBackProc(BOProcI $21)
setBackProc
in interface BOProcI
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.