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 |
FLAG_ADD, FLAG_ANY, FLAG_BLOB, FLAG_CHANGE, FLAG_DEL, FLAG_LDEL, FLAG_NEW, FLAG_REM, FLAG_SET, FLAG_ULDEL, MT_ADD, MT_BLOB, MT_DEL, MT_NEW, MT_REM, MT_SET, MT_TO_FLAG, MT_TO_TYPE, MT_TO_UNDO, TYPE_ADD, TYPE_BLOB, TYPE_DEL, TYPE_NEW, TYPE_REM, TYPE_SET
Constructor and Description |
---|
BOProc() |
BOProc(BO _bO,
int _mt,
java.lang.String _att,
java.lang.Class _pt,
java.lang.Object _op,
java.lang.Object _np) |
BOProc(BO _bO,
int _mt,
java.lang.String _att,
java.lang.Class _pt,
java.lang.Object _op,
java.lang.Object _np,
ManagedFileI _handle) |
BOProc(BO _bO,
int _mt,
java.lang.String _att,
java.lang.Class _pt,
java.lang.Object _op,
java.lang.Object _np,
ManagedFileI _handle,
boolean _fixing) |
BOProc(BO _bO,
int _mt,
java.lang.String _att,
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) |
void |
appendTo(java.lang.Appendable app,
SchemaI schema)
Appends a user-readable description of this BOProc to the given
Appendable app.
|
void |
appendTo(java.lang.Appendable app,
SchemaI schema,
boolean html) |
void |
appendTo(java.lang.Appendable app,
SchemaI schema,
boolean html,
boolean hideBO) |
void |
appendTo(java.lang.Appendable app,
SchemaI schema,
boolean html,
boolean hideBO,
java.util.Set introSet) |
void |
appendTo(java.lang.Appendable app,
SchemaI schema,
boolean html,
boolean hideBO,
java.util.Set introSet,
int maxCharsForDescription) |
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() |
void |
finishBLOB() |
EntityI |
getAffectedEntity(SchemaI schema)
Returns the EntityI that is affected by this BOProcI.
|
java.lang.String |
getAtt() |
java.lang.String |
getAttributeName() |
ManagedFileI |
getBLOBHandle() |
BO |
getBO() |
java.lang.Class |
getBOClass() |
java.lang.Long |
getBOId() |
long |
getCreationMillis() |
EntityI |
getEntity(SchemaI schema)
Deprecated.
please use
getAffectedEntity(SchemaI) instead. |
short |
getFlag() |
java.util.Date |
getLocalLmodOfBO() |
java.lang.String |
getMeth() |
int |
getMt() |
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.String |
getProcTypeName() |
int |
getProcTypeNN() |
java.lang.Class |
getPtyp() |
BOProc |
getStubbedInstance() |
java.lang.String |
getType() |
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.
|
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 |
setBLOBHandle(ManagedFileI $20) |
void |
setBO(BO $12) |
void |
setCollateralChangeWhileSaving(boolean $18) |
void |
setFixing(boolean $17) |
void |
setLocalLmodOfBO(java.util.Date $19) |
void |
setMt(int $11) |
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.
|
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 the passed warning message in the logger of 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
containsRelevant1toNChangesFor, containsRelevantChangesFor, containsRelevantNto1ChangesFor, containsRelevantNtoMChangesFor, getAffectedIds, getAttribute, getRelevantChangesFor, isAddition, isAnyAffectedIdKnownTo, isBLOBChange, isBLOBCreation, isBLOBDeletion, isChange, isChangeTo, isCreation, isDeletion, isDeletionFlagChange, isDependentManyRelationChange, isForbiddenChange, isForbiddenChange, isKeepNoBLOBHistory, isManyRelationChange, isManyToManyChange, isOneToManyChange, 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, int _mt, java.lang.String _att, java.lang.Class _pt, java.lang.Object _op, java.lang.Object _np)
public BOProc(BO _bO, int _mt, java.lang.String _att, java.lang.Class _pt, java.lang.Object _op, java.lang.Object _np, ManagedFileI _handle)
public BOProc(BO _bO, int _mt, java.lang.String _att, java.lang.Class _pt, java.lang.Object _op, java.lang.Object _np, ManagedFileI _handle, boolean _fixing)
public BOProc(BO _bO, int _mt, java.lang.String _att, 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 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()
disableAttributeWriteConstraints
in interface WriteConstraintsOverriderI
public java.lang.String getAttributeName()
getAttributeName
in interface BOProcI
public int getProcTypeNN()
getProcTypeNN
in interface BOProcI
public java.lang.String getProcTypeName()
getProcTypeName
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 java.lang.String getType()
public short getFlag()
public java.lang.String getMeth()
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
getAffectedEntity
in interface BOProcI
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 void appendTo(java.lang.Appendable app, SchemaI schema)
public void appendTo(java.lang.Appendable app, SchemaI schema, boolean html)
public void appendTo(java.lang.Appendable app, SchemaI schema, boolean html, boolean hideBO)
public void appendTo(java.lang.Appendable app, SchemaI schema, boolean html, boolean hideBO, java.util.Set introSet)
public void appendTo(java.lang.Appendable app, SchemaI schema, boolean html, boolean hideBO, java.util.Set introSet, int maxCharsForDescription)
public java.lang.String toString()
toString
in class java.lang.Object
public void playStreamOp()
public void unplayStreamOp()
public int compareByCreationMillis(BOProc second)
public int getMt()
public void setMt(int $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)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.