public class MAXTableDomain extends BasicDomain
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ISNOTNULL
The condition used for conditional list where.
|
static java.lang.String |
ISNULL
The condition used for conditional list where.
|
lastSignature
mboValue
TYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWN
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 |
---|
MAXTableDomain(MboValue mbv)
Construct passing the field to which you are listening
|
Modifier and Type | Method and Description |
---|---|
void |
action()
Called if the data is valid, to cleanup mboset.
|
void |
addConditionalListWhere(java.lang.String attribute,
java.lang.String condition,
java.lang.String where)
Add conditional list where.
|
void |
addToLookupMapCache(java.lang.String source,
java.lang.String[][] map) |
void |
chooseActualDomainValues()
Set the relationship, the listcriteria and error message bundle and key based on the
current records' site org level, whether it is in search mode and if site or org specific
domain values are specified for this domain.
|
void |
clearConditionalListWhere()
Clear all the conditional list where.
|
java.lang.String |
evalConditionalWhere(java.util.ArrayList conditionalWhereList) |
MboSetRemote |
getList()
Return the value list.
|
java.lang.String |
getListCriteria()
Get the current listwhere clause as it is set by setListCriteria
|
java.lang.String |
getMatchingAttr()
Get the matching attribute
|
java.lang.String |
getMatchingAttr(java.lang.String sourceObjectName)
Get the matching attribute given the source object name
|
MboSetRemote |
getMboSet()
Get the MboSet
|
MboSetRemote |
getMboSet(java.lang.String where)
Get a mboset, using the specified where clause
|
MboSetRemote |
getMboSet(java.lang.String where,
java.lang.String identifier)
This method allows the caller to specify an identifier to make the relationship
build on the fly bear its unique name.
|
boolean |
hasList()
This domain does have a list
|
void |
setAllAttrsNullable()
Method to tell the validation routine that it doesn't need to check if
there are any attributes composing the foreign key other than this
attribute can not be empty when this attribute is set.
|
void |
setErrorMessage(java.lang.String eg,
java.lang.String ek)
Set the error group and key of message that is produced if validation fails.
|
void |
setKeyMap(java.lang.String sourceMboName,
java.lang.String[] targetKeys,
java.lang.String[] sourceKeys)
Set the key maps from the source mbo to the target mbo.
|
void |
setListCriteria(java.lang.String listWhere)
Set what the criteria for the list of valid values are.
|
void |
setListOrderBy(java.lang.String orderBy)
Set the list order by clauses used by the look up.
|
void |
setLookupKeyMapInOrder(java.lang.String[][] map)
This method should be called to identify which attribute on the lookup MBO
should be set to which attribute on the target MBO when the lookup returns.
|
void |
setLookupKeyMapInOrder(java.lang.String[] targetKeys,
java.lang.String[] sourceKeys)
This method should be called to identify which attribute on the lookup MBO
should be set to which attribute on the target MBO when the lookup returns.
|
void |
setMultiKeyWhereForLookup(java.lang.String w)
Sets the where clause for multi-key lookup.
|
void |
setNotAllowNullAttrs(java.lang.String[] attrs)
Give a list of attributes which cannot be null before this attribute
can be set.
|
void |
setRelationship(java.lang.String objectName,
java.lang.String whereClause)
Set how this MboValue gets to the object to which it wants to vaildate against
|
void |
setValueFromLookup(MboRemote sourceMbo)
The default implementation does nothing since the default getList() is false.
|
void |
setValueFromLookup(MboRemote sourceMbo,
long accessModifier)
Set the value of the field and other fields which are part of the forein key
from the sourceMbo to
the Mbo that this mbo value belongs to.
|
MboSetRemote |
smartFill(java.lang.String value,
boolean exact)
Get the list based on the qbe value of the attribute, and set the values if there
is only one MBO in the returned set.
|
MboSetRemote |
smartFillWithoutReset(java.lang.String value,
boolean exact)
Get the list based on the value user entered for this attribute, and set the values if there
is only one MBO in the returned set.
|
MboSetRemote |
smartFind(java.lang.String value,
boolean exact)
Get the list based on the qbe value of the attribute.
|
MboSetRemote |
smartFind(java.lang.String sourceObj,
java.lang.String value,
boolean exact)
Get the list based on the qbe value of the attribute.
|
MboSetRemote |
smartFindWithoutReset(java.lang.String value,
boolean exact)
Get the list based on the qbe value of the attribute.
|
void |
validate()
Validate that the MboSet returned used using either the relationship, or the where clause is
not empty.
|
getConditionalValWhere, getConditionResult, getDomainId, getDomainInfo, resetConditionValueFilter, resetDomainValues, setConditionalValWhere, setDomainId
getAppLink, getIntegrationService, getLookupName, getMboValue, getMboValue, getType, init, initValue, setType
public static final java.lang.String ISNULL
public static final java.lang.String ISNOTNULL
public MAXTableDomain(MboValue mbv)
public void validate() throws MXException, java.rmi.RemoteException
validate
in interface MboValueListener
validate
in class MboValueAdapter
MXException
java.rmi.RemoteException
public void action() throws MXException, java.rmi.RemoteException
action
in interface MboValueListener
action
in class MboValueAdapter
MXException
java.rmi.RemoteException
public void chooseActualDomainValues() throws MXException, java.rmi.RemoteException
chooseActualDomainValues
in class BasicDomain
MXException
java.rmi.RemoteException
public MboSetRemote getMboSet(java.lang.String where) throws MXException, java.rmi.RemoteException
where
- MXException
java.rmi.RemoteException
public MboSetRemote getMboSet(java.lang.String where, java.lang.String identifier) throws MXException, java.rmi.RemoteException
where
- identifier
- MXException
java.rmi.RemoteException
public MboSetRemote getMboSet() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean hasList()
hasList
in interface MboValueListener
hasList
in class MboValueAdapter
public MboSetRemote getList() throws MXException, java.rmi.RemoteException
getList
in interface MboValueListener
getList
in class MboValueAdapter
MXException
java.rmi.RemoteException
public void setRelationship(java.lang.String objectName, java.lang.String whereClause)
objectName
- whereClause
- public void setListCriteria(java.lang.String listWhere)
listWhere
- public void setListOrderBy(java.lang.String orderBy)
orderBy
- public void setErrorMessage(java.lang.String eg, java.lang.String ek)
eg
- ek
- public java.lang.String getListCriteria()
MXException
public void setValueFromLookup(MboRemote sourceMbo, long accessModifier) throws MXException, java.rmi.RemoteException
sourceMbo
- MXException
java.rmi.RemoteException
#getMatchingAttrs()
,
#setLookupKeyMapInOrder()
public void setValueFromLookup(MboRemote sourceMbo) throws MXException, java.rmi.RemoteException
MboValueAdapter
setValueFromLookup
in interface MboValueListener
setValueFromLookup
in class MboValueAdapter
MXException
java.rmi.RemoteException
psdi.mbo.MboValueListner#setvalueFromLookup
public void setLookupKeyMapInOrder(java.lang.String[] targetKeys, java.lang.String[] sourceKeys)
targetKeys
- the attribute names of the targetsourceKeys
- the attribute names of the lookup table.public void setKeyMap(java.lang.String sourceMboName, java.lang.String[] targetKeys, java.lang.String[] sourceKeys)
sourceMboName
- targetKeys
- sourceKeys
- public void setLookupKeyMapInOrder(java.lang.String[][] map)
public void addToLookupMapCache(java.lang.String source, java.lang.String[][] map) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public final void setAllAttrsNullable()
setNotAllowNullAttrs(java.lang.String[])
public final void setNotAllowNullAttrs(java.lang.String[] attrs)
attrs
- public void setMultiKeyWhereForLookup(java.lang.String w)
public MboSetRemote smartFill(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFill
in interface MboValueListener
smartFill
in class MboValueAdapter
value
- the value the ther has entered in this field.exact
- whether the list is retrieved use exact qbe.MXException
java.rmi.RemoteException
public MboSetRemote smartFillWithoutReset(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
value
- the value the ther has entered in this field.MXException
java.rmi.RemoteException
public MboSetRemote smartFind(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind
in interface MboValueListener
smartFind
in class MboValueAdapter
value
- the value which is the qbe of the attributeMXException
java.rmi.RemoteException
public MboSetRemote smartFindWithoutReset(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote smartFind(java.lang.String sourceObj, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind
in interface MboValueListener
smartFind
in class MboValueAdapter
MXException
java.rmi.RemoteException
public java.lang.String getMatchingAttr() throws MXException, java.rmi.RemoteException
getMatchingAttr
in interface MboValueListener
getMatchingAttr
in class MboValueAdapter
MXException
java.rmi.RemoteException
public java.lang.String getMatchingAttr(java.lang.String sourceObjectName) throws MXException, java.rmi.RemoteException
getMatchingAttr
in interface MboValueListener
getMatchingAttr
in class MboValueAdapter
MXException
java.rmi.RemoteException
public void addConditionalListWhere(java.lang.String attribute, java.lang.String condition, java.lang.String where)
attribute
- The attribute name of the current mbo which is evaluated
to the condition.condition
- ISNULL or ISNOTNULL,where
- The where clause which is part of the list where if the condition
met.public void clearConditionalListWhere()
public java.lang.String evalConditionalWhere(java.util.ArrayList conditionalWhereList) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException