public class MboValueAdapter extends java.lang.Object implements MboValueListener, MboConstants
Modifier and Type | Field and Description |
---|---|
MboValue |
mboValue
Field we are listening to
|
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 |
---|
MboValueAdapter()
Constructor
|
MboValueAdapter(MboValue mbv)
Constructor
Overridden classes must call super and pass the parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
action()
Called if the data is valid, to perform some action
Does nothing
|
java.lang.String[] |
getAppLink()
Default implementation to return null.
|
ServiceRemote |
getIntegrationService()
Convenience Method for getting the IntegrationServiceRemote.
|
MboSetRemote |
getList()
Get value list (if it has one).
|
java.lang.String |
getLookupName()
Default implementation to return null.
|
java.lang.String |
getMatchingAttr()
Defautl implementation to return null.
|
java.lang.String |
getMatchingAttr(java.lang.String sourceObjectName)
Defautl implementation to return null.
|
MboValue |
getMboValue()
Get the MboValue that this domain is attached to
|
MboValue |
getMboValue(java.lang.String attribute)
Get the mbo value for the specified attribute
|
int |
getType()
Get the type of listener.
|
boolean |
hasList()
Has the MboValue got a value list ?
Returns false.
|
void |
init()
Initizalize
Does nothing in this implementation.
|
void |
initValue()
Called to initialize the MboValue's value.
|
void |
setType(int type)
Set the type of listener.
|
void |
setValueFromLookup(MboRemote sourceMbo)
The default implementation does nothing since the default getList() is false.
|
MboSetRemote |
smartFill(java.lang.String value,
boolean exact) |
MboSetRemote |
smartFind(java.lang.String value,
boolean exact) |
MboSetRemote |
smartFind(java.lang.String object,
java.lang.String value,
boolean exact) |
void |
validate()
Called to validate the data
Does nothing.
|
public MboValue mboValue
public MboValueAdapter()
public MboValueAdapter(MboValue mbv)
public MboValue getMboValue()
public MboValue getMboValue(java.lang.String attribute) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException, java.rmi.RemoteException
init
in interface MboValueListener
MXException
java.rmi.RemoteException
public void initValue() throws MXException, java.rmi.RemoteException
initValue
in interface MboValueListener
MXException
java.rmi.RemoteException
public void validate() throws MXException, java.rmi.RemoteException
validate
in interface MboValueListener
MXException
java.rmi.RemoteException
public void action() throws MXException, java.rmi.RemoteException
action
in interface MboValueListener
MXException
java.rmi.RemoteException
public boolean hasList()
hasList
in interface MboValueListener
public MboSetRemote getList() throws MXException, java.rmi.RemoteException
getList
in interface MboValueListener
MXException
java.rmi.RemoteException
public MboSetRemote smartFill(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFill
in interface MboValueListener
MXException
java.rmi.RemoteException
public MboSetRemote smartFind(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind
in interface MboValueListener
MXException
java.rmi.RemoteException
public MboSetRemote smartFind(java.lang.String object, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind
in interface MboValueListener
MXException
java.rmi.RemoteException
public ServiceRemote getIntegrationService() throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void setValueFromLookup(MboRemote sourceMbo) throws MXException, java.rmi.RemoteException
setValueFromLookup
in interface MboValueListener
MXException
java.rmi.RemoteException
psdi.mbo.MboValueListner#setvalueFromLookup
public java.lang.String[] getAppLink() throws MXException, java.rmi.RemoteException
getAppLink
in interface MboValueListener
MXException
java.rmi.RemoteException
public java.lang.String getLookupName() throws MXException, java.rmi.RemoteException
getLookupName
in interface MboValueListener
MXException
java.rmi.RemoteException
public java.lang.String getMatchingAttr() throws MXException, java.rmi.RemoteException
getMatchingAttr
in interface MboValueListener
MXException
java.rmi.RemoteException
public java.lang.String getMatchingAttr(java.lang.String sourceObjectName) throws MXException, java.rmi.RemoteException
getMatchingAttr
in interface MboValueListener
MXException
java.rmi.RemoteException
public void setType(int type)
setType
in interface MboValueListener
type
- public int getType()
getType
in interface MboValueListener
MboValueListener.TYPE_UNKNOWN
,
MboValueListener.TYPE_FIELDCLASS
,
MboValueListener.TYPE_DOMAIN
,
MboValueListener.TYPE_KEY