public class BP extends de.ipcon.db.core.BPBase implements BOProcI
ATT_BO, ATT_BOId, ATT_BOTId, ATT_BT, ATT_Diff, ATT_Diffable, ATT_FormattedDescription, ATT_Modification, ATT_ModificationWithoutBO, ATT_NativeNewValueDescription, ATT_NewValue, ATT_NewValueAsAlphaNumeric, ATT_NewValueAsBO, ATT_NewValueAsBoolean, ATT_NewValueAsDate, ATT_OldTime, ATT_OldValue, ATT_OldValueAsAlphaNumeric, ATT_OldValueAsBO, ATT_OldValueAsBoolean, ATT_OldValueAsDate, ATT_ParmType, ATT_ProcAttr, ATT_ProcType, ATT_ValuesAreAlphaNumeric, ATT_ValuesAreBO, ATT_ValuesAreBoolean, ATT_ValuesAreDate, ENT_BP
BLOB_KEY, CANCEL_RECALC_CALLED, D_0, D_1, D_10, D_100, D_1000, D_10000, D_5, D_MINUS_1, D_MINUS_ONE, D_ONE, D_ZERO, doExWriteLRMFunction, EMPTY_ARRAY, F_0, F_1, L_0, L10N_KEY_BO_INSTANTIATION, L10N_KEY_BO_WITH_PROTECTED_CONSTRUCTOR, NULL_AGGREGATE, NULL_ITERATOR
EMPTY_ARRAY
ATT_Badge, ATT_Badge2, ATT_Badge3, ATT_Badge4, ATT_BLOBCreatedBy, ATT_BLOBCreatedOn, ATT_BLOBDeletedBy, ATT_BLOBDeletedOn, ATT_BLOBLastModifiedBy, ATT_BLOBLastModifiedOn, ATT_Bot, ATT_Crea, ATT_CreatedBy, ATT_CreatedModifiedText, ATT_Id, ATT_InvolvedInProcs, ATT_LastModifiedBy, ATT_Ldel, ATT_Lmod, ATT_Procs, ENT_BO
Constructor and Description |
---|
BP() |
Modifier and Type | Method and Description |
---|---|
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.
|
AttributeI |
getAttribute() |
java.lang.String |
getAttributeName() |
BOProcI |
getBackProc() |
BO |
getBO() |
BO |
getBO(BOLoaderI bol)
Returns the BO that this BP affects; if bol is given this one is used to
load the BO from the DB (if necessary), otherwise getBOLoader() is used.
|
java.lang.Class |
getBOClass() |
java.lang.Class |
getBOClass(BOLoaderI loader) |
static BP |
getCreationForBLOBOfBO(BO affectedBO)
Finds the Business Object Procedure (BP) responsible for creating a BLOB (Binary Large Object) associated with the given `affectedBO`.
|
static BP |
getCreationForBLOBOfBO(BO affectedBO,
BOLoaderI bol) |
static BP |
getCreationForBO(BO affectedBO)
Finds the Business Object Procedure (BP) responsible for creating the given `affectedBO`.
|
static BP |
getCreationForBO(BO affectedBO,
BOLoaderI bol) |
static java.util.Date |
getDate(BP bp)
Returns the user of the given BPs BT or null if no BP was passed.
|
java.lang.String |
getDiff() |
java.lang.String |
getDiff(boolean ignoreWhiteSpace) |
java.lang.String |
getDiff(boolean ignoreWhiteSpace,
int unifiedContent) |
java.lang.Boolean |
getDiffable() |
java.lang.String |
getFormattedDescription() |
java.lang.String |
getModification() |
java.lang.String |
getModification(boolean nobo) |
java.lang.String |
getModification(boolean nobo,
int maxCharsNewValue) |
java.lang.String |
getModificationWithoutBO() |
java.lang.String |
getModificationWithoutBO(int maxCharsNewValue) |
static BP |
getMostRecentBLOBChangeForBO(BO affectedBO)
Returns the most recent BP that affected the given affectedBO or null if no BP
affecting the affectedBO was found.
|
static BP |
getMostRecentBLOBChangeForBO(BO affectedBO,
BOLoaderI bol) |
static BP |
getMostRecentForBO(BO affectedBO)
Returns the most recent BP that affected the given targetBO or null if no BP
affecting the affectedBO was found.
|
static BP |
getMostRecentForBO(BO affectedBO,
BOLoaderI bol) |
java.lang.Object |
getNativeNewValue()
Returns the NewValue as unmarshalled, native value (such as Integer, String, Date or BO)
rather than the marshalled value returned by getNewValue
|
java.lang.Object |
getNativeNewValue(BOLoaderI bol) |
java.lang.String |
getNativeNewValueDescription()
For showing the new value in the GUI, use BO describe for BOs, the text of the value otherwise
|
java.lang.Object |
getNativeOldValue()
Returns the OldValue as unmarshalled, native value (such as Integer, String, Date or BO)
rather than the marshalled value returned by getOldValue
|
java.lang.Object |
getNativeOldValue(BOLoaderI bol) |
java.lang.Object |
getNativeValue(java.lang.String value) |
java.lang.Object |
getNativeValue(java.lang.String value,
boolean nullIfError) |
java.lang.Object |
getNativeValue(java.lang.String value,
boolean nullIfError,
BOLoaderI bol) |
java.lang.String |
getNewValueAsAlphaNumeric() |
BO |
getNewValueAsBO() |
java.lang.Boolean |
getNewValueAsBoolean() |
java.util.Date |
getNewValueAsDate() |
BOProcI |
getNulledOldValueInstance() |
java.lang.String |
getOldValueAsAlphaNumeric() |
BO |
getOldValueAsBO() |
java.lang.Boolean |
getOldValueAsBoolean() |
java.util.Date |
getOldValueAsDate() |
java.lang.Class |
getParmTypeClass() |
java.lang.Class |
getParmTypeClass(BOLoaderI loader) |
static BP |
getPurgeForBO(BO affectedBO)
Finds the Business Object Procedure (BP) responsible for purging the given `affectedBO` from the database.
|
static BP |
getPurgeForBO(BO affectedBO,
BOLoaderI bol) |
SchemaI |
getSchema()
Returns SchemaI of this BP, determined via its BOLoaderI or null if there is no BOLoaderI.
|
de.ipcon.db.core.ProcType |
getType() |
int |
getTypeCode() |
java.lang.String |
getTypeName() |
static Benutzer |
getUser(BP bp)
Returns the user of the given BPs BT or null if no BP was passed.
|
java.lang.Boolean |
getValuesAreAlphaNumeric() |
java.lang.Boolean |
getValuesAreBO() |
java.lang.Boolean |
getValuesAreBoolean() |
java.lang.Boolean |
getValuesAreDate() |
java.lang.Boolean |
getValuesAreOneOf(java.lang.Class[] these) |
void |
setBackProc(BOProcI $7) |
void |
setBO(BO boToSet) |
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()
Provides a human-readable string representation of this BP (Business Object Procedure).
|
void |
warn(java.lang.String msg)
Logs a warning message using the logger associated with this `BOProcI`.
|
copyFrom, copyFrom, equalPayload, getBOId, getBOIdNN, getBOIdNN, getBOTId, getBOTIdNN, getBOTIdNN, getBT, getDiffableNN, getDiffableNN, getDiffNE, getDiffNN, getDiffNN, getFormattedDescriptionNE, getFormattedDescriptionNN, getFormattedDescriptionNN, getModificationNE, getModificationNN, getModificationNN, getModificationWithoutBONE, getModificationWithoutBONN, getModificationWithoutBONN, getNativeNewValueDescriptionNE, getNativeNewValueDescriptionNN, getNativeNewValueDescriptionNN, getNewValue, getNewValueAsAlphaNumericNE, getNewValueAsAlphaNumericNN, getNewValueAsAlphaNumericNN, getNewValueAsBooleanNN, getNewValueAsBooleanNN, getNewValueNE, getNewValueNN, getNewValueNN, getOldTime, getOldValue, getOldValueAsAlphaNumericNE, getOldValueAsAlphaNumericNN, getOldValueAsAlphaNumericNN, getOldValueAsBooleanNN, getOldValueAsBooleanNN, getOldValueNE, getOldValueNN, getOldValueNN, getParmType, getParmTypeNN, getParmTypeNN, getProcAttr, getProcAttrNE, getProcAttrNN, getProcAttrNN, getProcType, getProcTypeNN, getProcTypeNN, getValuesAreAlphaNumericNN, getValuesAreAlphaNumericNN, getValuesAreBONN, getValuesAreBONN, getValuesAreBooleanNN, getValuesAreBooleanNN, getValuesAreDateNN, getValuesAreDateNN, istDiffable, istNewValueAsBoolean, istOldValueAsBoolean, istValuesAreAlphaNumeric, istValuesAreBO, istValuesAreBoolean, istValuesAreDate, needBO, needBOId, needBOTId, needBT, needDiff, needDiffable, needFormattedDescription, needModification, needModificationWithoutBO, needNativeNewValueDescription, needNewValue, needNewValueAsAlphaNumeric, needNewValueAsBO, needNewValueAsBoolean, needNewValueAsDate, needOldTime, needOldValue, needOldValueAsAlphaNumeric, needOldValueAsBO, needOldValueAsBoolean, needOldValueAsDate, needParmType, needProcAttr, needProcType, needValuesAreAlphaNumeric, needValuesAreBO, needValuesAreBoolean, needValuesAreDate, readExternal, setBOId, setBOLoader, setBOTId, setBT, setNewValue, setOldTime, setOldValue, setParmType, setProcAttr, setProcType, slim, slim, writeExternal
_set, $, $, $, $$, $$bo, $$o, $$r, $$ri, $$ri, acquireTxWriteLock, add, afterSaveOnClient, afterSaveOnServer, afterVerifyOnClient, afterVerifyOnServer, aggregate, aggregate, aggregate, badge, badge, beforeVerifyOnClient, beforeVerifyOnServer, bumpVersion, cacheLocally, cacheLocally, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cacheLocallyAndThrowUnwrappedUncheckedCause, cancelCheckConstraints, cancelRecalc, cancelRecalcViaLoadingTransaction, clone, commitTransaction, computeTransientPropertyIfAbsent, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, conciseDesc, consumeAndAssureTransientPropertyExists, copyBLOBFrom, createCopy, createCopy, deepClone, deepClone, delete, describe, describe, describe, describe, describe, describe, describe, describe, describe, describe, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeId, describeNE, describeNE, describeNE, describeNE, describeNE, destub, equalPayload, equalPayload, equalPayload, equalPayload, equals, equalsBO, equalsBO, equalsRegardingAttrs, exportBLOB, exReadString, exWriteString, filterDeleted, filterDeleted, filterDeleted, forgetTransientBLOBHandle, frap, getAsBOInIssueReports, getAsBOInIssueReportsIterator, getAsString, getBackendBOLoaderWithPersistenceHandler, getBadge, getBadge, getBadge2, getBadge3, getBadge4, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOBAsDataInput, getBLOBAsEncodedString, getBLOBAsEncodedString, getBLOBAsInputStream, getBLOBAsUTF8EncodedString, getBLOBCreatedBy, getBLOBCreatedOn, getBLOBDeletedBy, getBLOBDeletedOn, getBLOBInfo, getBLOBLastModifiedBy, getBLOBLastModifiedOn, getBOLoader, getBot, getBOVersion, getBytes, getCache, getCache, getCache, getCacheNT, getCacheNT, getCacheNT, getCacheProvider, getCacheProvider, getClazz, getCreatedBy, getCreatedModifiedText, getDefaultScriptImportsList, getDefaultScriptImportsList, getDefaultScriptImportsList, getDescribingBOWrapper, getDescribingBOWrapper, getEventProvider, getEventProvider, getId, getInvolvedInProcs, getInvolvedInProcsIterator, getLastModifiedBy, getLazyData, getLoadingTransaction, getNullIterator, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getOrCreate, getPermissionHandler, getProcs, getProcsIterator, getRootLoaderSchema, getSizeFast, getTransaction, getTransientProperty, getTransientProperty, getWrappedTransientProperty, hasActiveTransaction, hasBLOB, hasBLOBOnServerSide, hasBOAssignedTempId, hashCode, hasRelationObjects, hasRelationObjects, hasSessionAssignedTempId, hasTempId, hasTempIdForNewBOs, hasTransientProperty, hasTransientPropertyUnfiltered, includeAllowed, includeInTransaction, invalidateBLOBCache, isBOAssignedTempId, isCompoundChangeInProgress, isCurrentTransactionUnderAdminControl, isIgnoreModificationConstraints, isMandatory, isNew, isReadOnly, isServerSideAndLoadedReadOnly, isSessionAssignedTempId, isStub, isTempId, isTempIdForNewInstance, isTemporary, isVisible, isWriteable, markCompoundChangeInProgress, markDelete, markUndelete, needLoadingTransaction, needsReload, needTransactionInclusion, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, nextTempId, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBus, notifyMessageBusOfAdd, notifyMessageBusOfRemove, nullSafeCompareTo, nullSafeCompareTo, nullSafeContainsBO, nullSafeContainsBO, nullSafeEquals, nullSafeEqualsBO, nullSafeEqualsBO, ofStub, propertyMissing, propertyMissing, releaseCompoundChangeInProgress, releaseTxWriteLock, remove, removeBLOB, requireNonEmptyRelation, requireNonNullAttribute, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, requireNonNullAttributes, setAsString, setBadge, setBadge, setBadge2, setBadge3, setBadge4, setBOLoaderNoCascade, setBOLoaderNoCascade, setBot, setId, setId, setIgnoreModificationConstraints, setLazyData, setTempId, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, setTransientProperty, slim, slim, storeBLOB, storeBLOB, storeBLOB, storeBLOB, storeBLOB, stub, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toMap, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, toRelationMapRO, undelete, verifyOnClient, verifyOnServer, wrapIfGroovy
getCrea, getLdel, getLmod, isDeleted, isLdel, setCrea, setLdel, setLdel, setLmod
getInstanceSpecificLocale, getInstanceSpecificPaths, l10n, l10n, l10n, l10n, l10n, l10n, l10n
appendTo, appendTo, appendTo, appendTo, appendTo, appendTo, appendTo, containsRelevant1toNChangesFor, containsRelevantChangesFor, containsRelevantNto1ChangesFor, containsRelevantNtoMChangesFor, getAffectedIds, getAttribute, getBOId, getNewValue, getOldValue, 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
contains, getAttribute, getAttribute, getCrea, getEntity, getEntity, isDeleted, isSubEntityOf, isSubEntityOf, toRelationMapRO
collectIds, collectIds, getCommaSeparatedIdList, toMap, toMap
collectDescribe, collectDescribe, conciseDesc, conciseDesc, conciseDesc, conciseDesc, describe, describe, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeAndConciseDesc, describeNE, describeNE, join, join, join, notEmptyDescription
public int getTypeCode()
getTypeCode
in interface BOProcI
public java.lang.String getTypeName()
getTypeName
in interface BOProcI
public java.lang.String getAttributeName()
getAttributeName
in interface BOProcI
public void warn(java.lang.String msg)
BOProcI
public BOProcI getNulledOldValueInstance()
getNulledOldValueInstance
in interface BOProcI
public BO getBO()
public BO getBO(BOLoaderI bol)
public void setBO(BO boToSet)
setBO
in class de.ipcon.db.core.BPBase
public java.lang.Class getBOClass()
getBOClass
in interface BOProcI
public java.lang.Class getBOClass(BOLoaderI loader)
public java.lang.Class getParmTypeClass()
getParmTypeClass
in interface BOProcI
public java.lang.Class getParmTypeClass(BOLoaderI loader)
public java.lang.String toString()
The string includes the following information about the BP:
This method gracefully handles potential `BotNotKnownException` when retrieving the BO class name.
public java.lang.String getModificationWithoutBO()
getModificationWithoutBO
in class de.ipcon.db.core.BPBase
public java.lang.String getModificationWithoutBO(int maxCharsNewValue)
public java.lang.String getModification()
getModification
in class de.ipcon.db.core.BPBase
public java.lang.String getModification(boolean nobo)
public java.lang.String getModification(boolean nobo, int maxCharsNewValue)
public java.lang.String getFormattedDescription()
getFormattedDescription
in class de.ipcon.db.core.BPBase
public SchemaI getSchema()
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 AttributeI getAttribute()
public java.lang.Object getNativeNewValue()
getNativeNewValue
in interface BOProcI
bol
- the BOLoader to load objects with in case this is a relation (will use BOLoader of this BP if omitted)public java.lang.Object getNativeNewValue(BOLoaderI bol)
public java.lang.Object getNativeOldValue()
getNativeOldValue
in interface BOProcI
bol
- the BOLoader to load objects with in case this is a relation (will use BOLoader of this BP if omitted)public java.lang.Object getNativeOldValue(BOLoaderI bol)
public java.lang.Object getNativeValue(java.lang.String value)
public java.lang.Object getNativeValue(java.lang.String value, boolean nullIfError)
public java.lang.Object getNativeValue(java.lang.String value, boolean nullIfError, BOLoaderI bol)
public java.lang.String getNativeNewValueDescription()
getNativeNewValueDescription
in class de.ipcon.db.core.BPBase
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 java.lang.Boolean getValuesAreAlphaNumeric()
getValuesAreAlphaNumeric
in class de.ipcon.db.core.BPBase
public java.lang.Boolean getValuesAreDate()
getValuesAreDate
in class de.ipcon.db.core.BPBase
public java.lang.Boolean getValuesAreBoolean()
getValuesAreBoolean
in class de.ipcon.db.core.BPBase
public java.lang.Boolean getValuesAreBO()
getValuesAreBO
in class de.ipcon.db.core.BPBase
public java.lang.Boolean getValuesAreOneOf(java.lang.Class[] these)
public java.lang.String getNewValueAsAlphaNumeric()
getNewValueAsAlphaNumeric
in class de.ipcon.db.core.BPBase
public java.lang.String getOldValueAsAlphaNumeric()
getOldValueAsAlphaNumeric
in class de.ipcon.db.core.BPBase
public java.util.Date getNewValueAsDate()
getNewValueAsDate
in class de.ipcon.db.core.BPBase
public java.util.Date getOldValueAsDate()
getOldValueAsDate
in class de.ipcon.db.core.BPBase
public java.lang.Boolean getNewValueAsBoolean()
getNewValueAsBoolean
in class de.ipcon.db.core.BPBase
public java.lang.Boolean getOldValueAsBoolean()
getOldValueAsBoolean
in class de.ipcon.db.core.BPBase
public BO getNewValueAsBO()
getNewValueAsBO
in class de.ipcon.db.core.BPBase
public BO getOldValueAsBO()
getOldValueAsBO
in class de.ipcon.db.core.BPBase
public static Benutzer getUser(BP bp)
public static java.util.Date getDate(BP bp)
public static BP getMostRecentForBO(BO affectedBO)
public static BP getMostRecentBLOBChangeForBO(BO affectedBO)
public static BP getMostRecentBLOBChangeForBO(BO affectedBO, BOLoaderI bol)
public static BP getPurgeForBO(BO affectedBO)
affectedBO
- The Business Object (BO) whose purging BP is sought.bol
- An optional `BOLoaderI` instance for data loading (may be null).public static BP getCreationForBO(BO affectedBO)
affectedBO
- The Business Object (BO) whose creation BP is sought.bol
- An optional `BOLoaderI` instance for data loading (may be null).public static BP getCreationForBLOBOfBO(BO affectedBO)
affectedBO
- The BO containing the BLOB whose creation BP is sought.bol
- An optional `BOLoaderI` instance for data loading (may be null).public java.lang.Boolean getDiffable()
getDiffable
in class de.ipcon.db.core.BPBase
public java.lang.String getDiff()
getDiff
in class de.ipcon.db.core.BPBase
public java.lang.String getDiff(boolean ignoreWhiteSpace)
public java.lang.String getDiff(boolean ignoreWhiteSpace, int unifiedContent)
public BOProcI getBackProc()
getBackProc
in interface BOProcI
public void setBackProc(BOProcI $7)
setBackProc
in interface BOProcI
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.