public class MaxAttributeCfg extends Mbo implements MaxAttributeCfgRemote
See Configure Package description.
This is a system level object.
The key attributes for this object are ObjectName, AttributeName.
The attributes in this object are the same as in MaxAttribute
,
plus some additional attributes in MaxAttributeCfg, which are described below.
Refer to MaxAttribute
for a description of the common attributes.
Attribute Name | Description |
---|---|
Changed | This is used by the configuration process.
On MaxAttributeCfg, the values of Changed can be as follows (they are set via
the business object, not directly via the UI).
|
EAuditTbName | Non-persistent attribute; same as MaxObjectCfg .
|
IsHandleColumn | Non-persistent attribute; identifies whether this columnname is referenced as handlecolumnname by another attribute in this set. |
LangTableName | Non-persistent attribute; same as MaxObjectCfg .
|
NextSequenceNo | Non-persistent attribute. If there is a SequenceName, then NextSequenceNo is the next value to be applied. |
SequenceName | Non-persistent attribute. If this attribute has a related row in
MaxSequence , or the user wishes to create one,
this is the sequence name.
|
ViewChanged | Non-persistent attribute. Will equal "Add", "Change", "Delete", or null, depending on the value of Changed. For display in the UI. |
Modifier and Type | Field and Description |
---|---|
boolean |
firstDefaultvalueGet |
MULTILANGCOPY, phantomList, phantomQueue
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 |
---|
MaxAttributeCfg(MboSet ms)
Construct the MaxAttributeCfg object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a mbo, defaulting the attributes shown below.
|
void |
appValidate()
Application validation routine.
|
void |
canDelete()
To mark for deletion, attribute must be userdefined and not already marked for deletion.
|
void |
canUndelete()
To undelete, "changed" attribute must equal "R".
|
void |
checkSameAsChild()
If this column is "sameas" something, get the Mbo that it is the same as.
|
void |
clearNonEssentialRelatedSets()
Similar to method on MaxObjectCfg.
|
boolean |
columnIsEmpty()
Identify whether this column is empty of data.
|
void |
createAutokeyMbos(java.lang.String autokeyname)
Called from FldMaxAttributeCfgAutokeyName to create Autokey mbos.
|
void |
delete(long accessModifier)
Set the value of "changed" to indicate deletion for maxattributecfg, maxsyskeys, and
maxsysindexes.
|
void |
deleteIndexesForAttribute()
Find indexes that include this attribute and mark them for deletion.
|
MboRemote |
getAuditColumn(boolean anyStatus)
If this is a base column, and the table is audited, get the corresponding audit column.
|
MboSetRemote |
getAuditColumnSet(boolean anyStatus)
If this is a base column, and the table is audited, get the set of
maxattributecfg for the audit table.
|
MboRemote |
getCurrentAttribute()
Return the MaxAttribute mbo for this attribute.
|
java.lang.String |
getCurrentNativeDatatype()
Get the current native datatype for this column, based on
metadata in maxattribute (not directly retrieved from native database).
|
java.lang.String |
getDefaultString()
Determine whether a default value can be determined for this attribute.
|
MboRemote |
getLangColumn(boolean anyStatus)
If this is a base column, and the column is translated, get the corresponding column from the language table.
|
MboSetRemote |
getLangColumnSet(boolean anyStatus)
If this is a base column, and the table is translatable, get the set of
maxattributecfg for the language table.
|
boolean |
getLocDefault()
Identifies the default value of "localizable" for this attribute.
|
MboValueData |
getMboValueData(java.lang.String attribute)
Defaultvalue is stored in the system's default locale, but must be displayed in the online user's locale.
|
java.lang.String |
getNativeDateDefault()
Get the system command for the current date.
|
java.lang.String |
getNewNativeDatatype()
Get the anticipated new native datatype for this column.
|
MboRemote |
getSameAsParent()
If this column is "sameas" something, get the Mbo that it is the same as.
|
java.lang.String[] |
getSequenceInfo()
Get the sequence name for this attribute, from maxsequence table, matching on
tablename and columnname.
|
MboRemote |
getSequenceMbo()
Return set of MaxSequence for owner MaxObjectCfg.
|
java.lang.String[] |
getValidateOrder()
Returns a String[] of field names.
|
boolean |
indexInvolvement()
Determine whether this column is involved in any indexes (native or otherwise)
that are not marked for deletion.
|
void |
init()
Inititialize fields to readonly or not.
|
boolean |
isLocAllowed()
Identifies whether "localizable" is allowed to be true for this attribute.
|
void |
langAndAuditMetadata(MboRemote baseCol)
When this is a new Mbo for a column on an audit or language table, and we have just copied values
from the base column to the new column, this method will override the values that
need to be different.
|
boolean |
nativeColumnExists()
Indicates whether the column exists on the native table.
|
boolean |
nullValueExists()
Identify whether this column has any null values.
|
boolean |
preventInternalChanges()
If this is "sameas" an internal attribute, then make maxtype, length, etc.
|
void |
sameAsMiscChecks(MboRemote sameasMbo,
boolean adjustYORN)
After the values for maxtype, length and scale have been set on this mbo (such as via
setValuesForSameAs or one of the field validation classes),
this method checks to see if various attributes are still valid for the new parameters. |
boolean |
sequenceExists(java.lang.String sequenceName,
boolean differentColumn)
Determine whether a row exists in MaxSequence for the given sequence name.
|
void |
setChanged()
If value of "changed" is not "R", reevaluate it and set new value.
|
void |
setLengthAndScaleReadonlyState()
Based on maxtype, determine whether length, scale, and ispositive
should be readonly or not, and set or clear accordingly.
|
void |
setSearchTypeReadonlyFlag()
Set Readonly flag for SearchType.
|
void |
setSearchTypeValue()
Set default value for SearchType.
|
void |
setValuesForSameAs(MboRemote sameasMbo,
boolean changeMustBe,
boolean mustBeValue)
Set values for maxtype, length and scale on this mbo to satisfy "sameas" processing.
|
MboSetRemote |
smartFill(java.lang.String attribute,
java.lang.String value,
boolean exact)
If attribute is "autokeyname" then return null if MboSet is empty.
|
void |
undelete()
Set the value of "changed" to indicate undeletion for maxattributecfg, maxsyskeys,
and maxsysindexes.
|
void |
validateDefaultValue()
Validate defaultvalue.
|
void |
validateDomain(java.lang.String domainid)
Validate the specified domainid for this attribute.
|
void |
validateDomain(java.lang.String domainid,
java.lang.String errorTitle,
java.lang.String attrmaxtype,
int attrlength,
int attrscale,
int whatToValidate)
Given a domainid, validate it for this attribute.
|
void |
validateSearchType()
Validate searchtype.
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributes
public boolean firstDefaultvalueGet
getMboValueData(String)
public MaxAttributeCfg(MboSet ms) throws java.rmi.RemoteException
java.rmi.RemoteException
public void init() throws MXException
util
to the set's value.init
in class Mbo
MXException
setLengthAndScaleReadonlyState()
,
setSearchTypeReadonlyFlag()
,
getSequenceInfo()
,
preventInternalChanges()
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
AttributeNo | maximum AttributeNo for this object + 1 |
CanAutoNum | False |
Changed | I |
EAuditEnabled | False |
ESigEnabled | False |
IsHandleColumn | False |
IsLDOwner | False |
IsPositive | False |
Length | Same length as Dummy_ALN in Dummy_Table |
Localizable | True |
MaxType | ALN |
MLInUse | False |
MLSupported | False |
MustBe | False |
Required | False |
Restricted | False |
Persistent | True for a table, False for a view |
Scale | 0 |
SearchType | value from setSearchTypeValue
|
UserDefined | True |
ViewChanged | value of MaxAttributeCfgSet
ADD
|
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
setSearchTypeValue()
,
setSearchTypeReadonlyFlag()
public void canDelete() throws MXException, java.rmi.RemoteException
delete
.canDelete
in class Mbo
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
However, if the accessModifier equals DBCONFIG then super is called. The DBCONFIG flag is used only internally from MaxObjectCfg, never from the UI framework.
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- See Mbo delete
.MXException
java.rmi.RemoteException
getAuditColumn(boolean)
public void deleteIndexesForAttribute() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void canUndelete() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
setChanged()
,
MaxSysIndexes.nativeIndexExists()
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
getSequenceInfo()
,
sequenceExists(java.lang.String, boolean)
,
validateDomain(java.lang.String)
,
propagate(boolean, boolean, boolean, boolean)
,
getAuditColumnSet(boolean)
,
getLangColumnSet(boolean)
,
MaxAttributeCfgSet.getLangOrAuditColumn(psdi.mbo.MboRemote, boolean)
,
MaxAttributeCfgSet.getLongDescriptionAttribute(psdi.mbo.MboRemote)
,
MaxAttributeCfgSet.addLongDescriptionRowToSet(psdi.mbo.MboRemote)
,
langAndAuditMetadata(psdi.mbo.MboRemote)
,
MaxObjectCfg.adjustViews(psdi.mbo.MboRemote)
,
convertDefaultvalueLocale()
,
setChanged()
public MboSetRemote getAuditColumnSet(boolean anyStatus) throws MXException, java.rmi.RemoteException
anyStatus
- True to return the audit set regardless of whether it's to be deleted, etc.
False to return the audit set only if it's not marked for deletion.MXException
java.rmi.RemoteException
MaxObjectCfg.getAuditObjectCfg(java.lang.String, boolean)
public MboSetRemote getLangColumnSet(boolean anyStatus) throws MXException, java.rmi.RemoteException
anyStatus
- True to return the language set regardless of whether it's to be deleted, etc.
False to return the language set only if it's not marked for deletion.MXException
java.rmi.RemoteException
MaxObjectCfg.getLangObjectCfg(java.lang.String, boolean)
public MboRemote getAuditColumn(boolean anyStatus) throws MXException, java.rmi.RemoteException
anyStatus
- True to return the audit column regardless of whether it's to be deleted, etc.
False to return the audit column only if it's not marked for deletion.MXException
java.rmi.RemoteException
getAuditColumnSet(boolean)
,
MaxAttributeCfgSet.getLangOrAuditColumn(psdi.mbo.MboRemote, boolean)
public MboRemote getLangColumn(boolean anyStatus) throws MXException, java.rmi.RemoteException
anyStatus
- True to return the language column regardless of whether it's to be deleted, etc.
False to return the language column only if it's not marked for deletion.MXException
java.rmi.RemoteException
getLangColumnSet(boolean)
,
MaxAttributeCfgSet.getLangOrAuditColumn(psdi.mbo.MboRemote, boolean)
public void langAndAuditMetadata(MboRemote baseCol) throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
CanAutoNum | False |
Changed | Same as baseCol |
ClassName | null |
DomainID | null |
EAuditEnabled | False |
ESigEnabled | False |
IsLDOwner | False |
MLSupported | False |
MLInUse | False |
PrimaryKeyColSeq | null |
Required | False |
SameAsObject, SameAsAttribute | If null on baseCol, then set equal to tbname and name of baseCol. Else use sameastable and sameascolumn of baseCol. |
baseCol
- Maxattributecfg mbo for the base column.MXException
java.rmi.RemoteException
public MboRemote getSameAsParent() throws MXException, java.rmi.RemoteException
SAMEASPARENT
.getSameAsParent
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
getSameAsParent()
public void checkSameAsChild() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setValuesForSameAs(MboRemote sameasMbo, boolean changeMustBe, boolean mustBeValue) throws MXException, java.rmi.RemoteException
MaxAttributeCfgSet applySameAsValuesWithinThisTable
and various field validation classes.
This sets values with NOVALIDATION_AND_NOACTION because the referenced column has already been validated, and we need to avoid looping.
This method calls sameAsMiscChecks
.
setValuesForSameAs
in interface MaxAttributeCfgRemote
sameasMbo
- The Mbo that contains the maxtype, length and scale that we are going to
carry over to "this" mbo.changeMustBe
- True to also change "mustbe", else FalsemustBeValue
- The new value of "mustbe", which takes effect only if
changeMustBe is True.MXException
java.rmi.RemoteException
sameAsMiscChecks(psdi.mbo.MboRemote, boolean)
public boolean preventInternalChanges() throws MXException, java.rmi.RemoteException
preventInternalChanges
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
preventInternalChanges()
public void sameAsMiscChecks(MboRemote sameasMbo, boolean adjustYORN) throws MXException, java.rmi.RemoteException
setValuesForSameAs
or one of the field validation classes),
this method checks to see if various attributes are still valid for the new parameters.
This method checks the following attributes. If the attribute is not null, then it is revalidated. If the validation fails, then the value is set to null.
sameAsMiscChecks
in interface MaxAttributeCfgRemote
sameasMbo
- The mbo that this is the "sameas," used when adjustYORN is True.adjustYORN
- True if step 3 above should be performed for YORN columns.MXException
java.rmi.RemoteException
setSearchTypeValue()
,
setSearchTypeReadonlyFlag()
public void setChanged() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
getHashMap()
,
getOrigHashMap()
,
Util.reEvaluateAttributeChanged(java.lang.String, java.util.HashMap, java.util.HashMap, java.lang.String, boolean)
public java.lang.String[] getValidateOrder()
Mbo
getValidateOrder
in class Mbo
public boolean isLocAllowed() throws MXException
isLocAllowed
in interface MaxAttributeCfgRemote
MXException
Util.isLocAllowed(java.lang.String, java.lang.String, java.util.HashMap, java.util.HashMap)
public boolean getLocDefault() throws MXException
getLocDefault
in interface MaxAttributeCfgRemote
MXException
Util.getLocDefault(java.lang.String, java.lang.String, java.util.HashMap, java.util.HashMap)
public boolean nativeColumnExists() throws MXException, java.rmi.RemoteException
nativeColumnExists
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
Util.nativeColumnExists(java.lang.String, java.lang.String)
public void setLengthAndScaleReadonlyState() throws MXException, java.rmi.RemoteException
setLengthAndScaleReadonlyState
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
setLengthAndScaleReadonlyState()
public void validateDomain(java.lang.String domainid) throws MXException, java.rmi.RemoteException
validateDomain
to validate the domainid, maxtype, length and scale.validateDomain
in interface MaxAttributeCfgRemote
domainid
- The domainid to be validatedMXException
java.rmi.RemoteException
validateDomain(String, String, String, int, int, int)
,
isValueInDomain(java.lang.String, java.lang.String)
public void validateDomain(java.lang.String domainid, java.lang.String errorTitle, java.lang.String attrmaxtype, int attrlength, int attrscale, int whatToValidate) throws MXException, java.rmi.RemoteException
validateDomain
in interface MaxAttributeCfgRemote
domainid
- The domainid to be validated for this attribute.errorTitle
- The attribute title to be used in the error message (if domainid is not valid).
This depends on the attributename we are checking.attrmaxtype
- Normally this is just the maxtype of this attribute. It is provided in a
parameter so that this method can be called from field validation of maxtype.attrlength
- Normally this is just the length of this attribute. It is provided in a
parameter so that this method can be called from field validation of length.attrscale
- Normally this is just the scale of this attribute. It is provided in a
parameter so that this method can be called from field validation of scale.whatToValidate
- Can equal the following:
validateDomain(String)
.
FldMaxAttributeCfgMaxType
.
FldMaxAttributeCfgLength
.
FldMaxAttributeCfgScale
.
MXException
java.rmi.RemoteException
throwNotValid(java.lang.String, java.lang.String)
public void validateDefaultValue() throws MXException, java.rmi.RemoteException
This method checks the following:
validateDefaultValue
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
getNativeDateDefault()
,
isValueInDomain(java.lang.String, java.lang.String)
,
ConfigureService.validateFormat(java.util.Locale, java.util.TimeZone, java.lang.String, java.lang.String, int, int, boolean)
,
throwNotValid(java.lang.String, java.lang.String)
public boolean indexInvolvement() throws MXException, java.rmi.RemoteException
indexInvolvement
in interface MaxAttributeCfgRemote
"configure"
- "MiscUtilFailure"
MXException
java.rmi.RemoteException
Util.nativeIndexExistsForColumn(java.lang.String, java.lang.String)
,
MaxObjectCfg.getIndexMetaForColumn(java.lang.String)
public java.lang.String getCurrentNativeDatatype() throws MXException, java.rmi.RemoteException
getCurrentNativeDatatype
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
getCurrentAttribute()
,
Util.getNativeType(java.lang.String, java.lang.String, int)
public java.lang.String getNewNativeDatatype() throws MXException, java.rmi.RemoteException
getNewNativeDatatype
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
Util.getNativeType(java.lang.String, java.lang.String, int)
public boolean columnIsEmpty() throws MXException, java.rmi.RemoteException
columnIsEmpty
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
Util.columnIsEmpty(java.lang.String, java.lang.String)
public boolean nullValueExists() throws MXException, java.rmi.RemoteException
nullValueExists
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
Util.nullValueExists(java.lang.String, java.lang.String)
public MboRemote getCurrentAttribute() throws MXException, java.rmi.RemoteException
getCurrentAttribute
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
getCurrentAttribute()
public java.lang.String getNativeDateDefault() throws MXException, java.rmi.RemoteException
getNativeDateDefault
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
Util.getNativeDateDefault()
public java.lang.String getDefaultString() throws MXException, java.rmi.RemoteException
getDefaultString
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
Util.getDefaultString(String, String, String, String, String)
public java.lang.String[] getSequenceInfo() throws MXException, java.rmi.RemoteException
sequenceExists
.getSequenceInfo
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
getSequenceMbo()
public MboRemote getSequenceMbo() throws MXException, java.rmi.RemoteException
getSequenceMbo
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
MaxAttributeCfgSet.getSequenceSet()
public boolean sequenceExists(java.lang.String sequenceName, boolean differentColumn) throws MXException, java.rmi.RemoteException
getSequenceInfo
.sequenceExists
in interface MaxAttributeCfgRemote
sequenceName
- The name of the sequence to check for.differentColumn
- If True, the sql statement will check for (tbname != this table or
columnname != this column) and sequence name = the specified name.
If False, sql will just check by sequence name.MXException
java.rmi.RemoteException
sequenceExists(java.lang.String, boolean)
public void validateSearchType() throws MXException, java.rmi.RemoteException
validateSearchType
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
MaxObjectCfg.isTextSearchEnabled()
public void setSearchTypeValue() throws MXException, java.rmi.RemoteException
setSearchTypeReadonlyFlag
accordingly.setSearchTypeValue
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
setSearchTypeValue()
public void setSearchTypeReadonlyFlag() throws MXException, java.rmi.RemoteException
setSearchTypeValue
accordingly.setSearchTypeReadonlyFlag
in interface MaxAttributeCfgRemote
MXException
java.rmi.RemoteException
setSearchTypeReadonlyFlag()
public void createAutokeyMbos(java.lang.String autokeyname) throws MXException, java.rmi.RemoteException
createAutokeyMbos
in interface MaxAttributeCfgRemote
autokeyname
- Autokey nameMXException
java.rmi.RemoteException
createAutokeyMbos(java.lang.String)
public MboValueData getMboValueData(java.lang.String attribute) throws MXException, java.rmi.RemoteException
getMboValueData
in interface MboRemote
getMboValueData
in class Mbo
attribute
- Attribute nameMXException
- "Attribute {0} does not exist" exception will
be thrown if the attribute does not exist
in the object.java.rmi.RemoteException
Mbo.getString(String)
,
ConfigureService.convertToLocale(java.lang.String, java.lang.String, java.util.Locale, java.util.TimeZone, java.util.Locale, java.util.TimeZone)
public MboSetRemote smartFill(java.lang.String attribute, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFill
in interface MboRemote
smartFill
in class Mbo
value
- The QBE value to narrow down the lookup.MXException
java.rmi.RemoteException
FldMaxAttributeCfgAutokeyName
public void clearNonEssentialRelatedSets() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException