public class MockMboValue extends MboValue
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
Constructor and Description |
---|
MockMboValue(int type) |
Modifier and Type | Method and Description |
---|---|
void |
checkFieldAccess(long accessModifier)
Check the access control and the specified access modifier.
|
static MboValue |
fromALN(java.lang.String data)
Creates a mocked mbo value for a DECIMAL type
|
static MboValue |
fromDecimal(double d)
Creates a mocked mbo value for a DECIMAL type
|
static MockMboValue |
fromDuration(double d)
Creates a mocked mbo value for a DURATION type
|
static MboValue |
fromInt(int d)
Creates a mocked mbo value for an INTEGER type
|
int |
getType()
Return a numeric value for the type.
|
static void |
verifyFieldAccess(MboValue mv,
long access,
java.lang.String accessStr)
Verify that a setValue() was called with a Field Access Bit
|
_setValueNull, addMboValueListener, autoKey, autoKeyByMboSiteOrg, construct, generateUniqueID, getApplicationError, getAppLink, getAttributeName, getBoolean, getByte, getBytes, getColumnTitle, getCurProcessValue, getCurrentFieldAccess, getCurrentValue, getDate, getDefault, getDouble, getFieldFlagFromMbo, getFlags, getFloat, getInitialValue, getInt, getIntegrationService, getLength, getList, getListeners, getLong, getLookupName, getMatchingAttr, getMatchingAttr, getMaxType, getMbo, getMboValueData, getMboValueData, getMboValueInfo, getMXException, getName, getPreviousValue, getScale, getString, hasFieldAccess, hasList, hasLongDescription, init, initValue, isApplicationRequired, isExtended, isFlagSet, isGuaranteedUnique, isHidden, isModified, isNull, isPersistent, isReadOnly, isRequired, isToBeValidated, removeMboValueListener, resetCurrentFieldAccess, rollbackToCheckpoint, setApplicationError, setApplicationRequired, setBypassOperatorCheck, setCurProcessValue, setCurrentFieldAccess, setDefault, setFlag, setFlag, setFlags, setFlags, setGuaranteedUnique, setHidden, setReadOnly, setRequired, setToBeValidated, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromLookup, setValueNull, setValueNull, smartFill, smartFind, smartFind, takeCheckpoint, toString, validate, validate
public static void verifyFieldAccess(MboValue mv, long access, java.lang.String accessStr)
access
- accessStr
- public static final MockMboValue fromDuration(double d) throws MXException
d
- MXException
public static MboValue fromInt(int d) throws MXException
d
- MXException
public static MboValue fromDecimal(double d) throws MXException
d
- MXException
public static MboValue fromALN(java.lang.String data) throws MXException
d
- MXException
public int getType()
MboValue
public void checkFieldAccess(long accessModifier) throws MXException
MboValue
checkFieldAccess
in class MboValue
MXException