public interface MboAdapter
Mbo
class.
Note about exception handling
Since the server-side MXException
and the mobile
com.mro.mobile.MobileApplicationException
have no common ancestor
besides Exception
, all methods are declared as throwing
Exception
. The specific client can compensate for this loss of
type-safety with a special sequence of catch statements.
On the mobile side, it looks like this:
And on the server side:try { ... } catch (MobileApplicationException me) { throw me; } catch (RuntimeException rte) { throw rte; } catch (Exception e) { e.printStackTrace(); throw new MobileApplicationException("internalerror", e); }
The idea is that the exception types will be treated as if we had the normal method signatures:try { ... } catch (MXException mxe) { throw mxe; } catch (RemoteException re) { throw re; } catch (RuntimeException rte) { throw rte; } catch (Exception e) { throw new MXSystemException("system", "unknownerror", e); }
RemoteException
s are reaised until the framework
handles them;Exception
catch to satisfy the
compiler, but it should never execute.MboSetAdapter
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(java.lang.String attributeName)
Returns the boolean value of the attribute.
|
java.util.Date |
getDate(java.lang.String attributeName) |
int |
getInt(java.lang.String attributeName) |
boolean |
getMaxVarBoolean(java.lang.String maxvarName) |
int |
getMaxVarInt(java.lang.String maxvarName) |
java.lang.String |
getMaxVarString(java.lang.String maxvarName) |
MboSetAdapter |
getMboSet(java.lang.String relationshipName) |
java.lang.String |
getName() |
java.lang.String |
getString(java.lang.String attributeName) |
MboSetAdapter |
getThisMboSet() |
boolean |
isNull(java.lang.String attributeName) |
boolean |
isReadOnly(java.lang.String attributeName) |
java.lang.Exception |
newApplicationException(java.lang.String group,
java.lang.String key)
Builds a new Application Exception of the appropriate type for the
platform (server or mobile).
|
java.lang.Exception |
newApplicationException(java.lang.String group,
java.lang.String key,
java.lang.Object[] params)
Builds a new Application Exception of the appropriate type for the
platform (server or mobile).
|
void |
setReadOnly(java.lang.String attributeName,
boolean readOnly) |
void |
setValue(java.lang.String attributeName,
boolean value) |
void |
setValue(java.lang.String attributeName,
boolean value,
long flags) |
void |
setValue(java.lang.String attributeName,
java.util.Date value) |
void |
setValue(java.lang.String attributeName,
java.util.Date value,
long flags) |
void |
setValue(java.lang.String attributeName,
int value) |
void |
setValue(java.lang.String attributeName,
int value,
long flags) |
void |
setValue(java.lang.String attributeName,
java.lang.String value) |
void |
setValue(java.lang.String attributeName,
java.lang.String value,
long flags) |
void |
setValueIfDifferent(java.lang.String attributeName,
boolean value) |
void |
setValueIfDifferent(java.lang.String attributeName,
boolean value,
long flags) |
boolean |
toBeDeleted()
Whether this MBO is marked for deletion.
|
MboSetAdapter getMboSet(java.lang.String relationshipName) throws java.lang.Exception
java.lang.Exception
MboSetAdapter getThisMboSet() throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, java.lang.String value) throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, java.lang.String value, long flags) throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, boolean value) throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, boolean value, long flags) throws java.lang.Exception
java.lang.Exception
void setValueIfDifferent(java.lang.String attributeName, boolean value) throws java.lang.Exception
java.lang.Exception
void setValueIfDifferent(java.lang.String attributeName, boolean value, long flags) throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, int value) throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, int value, long flags) throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, java.util.Date value) throws java.lang.Exception
java.lang.Exception
void setValue(java.lang.String attributeName, java.util.Date value, long flags) throws java.lang.Exception
java.lang.Exception
java.lang.String getString(java.lang.String attributeName) throws java.lang.Exception
java.lang.Exception
boolean getBoolean(java.lang.String attributeName) throws java.lang.Exception
false
.java.lang.Exception
int getInt(java.lang.String attributeName) throws java.lang.Exception
java.lang.Exception
java.util.Date getDate(java.lang.String attributeName) throws java.lang.Exception
java.lang.Exception
boolean isNull(java.lang.String attributeName) throws java.lang.Exception
java.lang.Exception
boolean isReadOnly(java.lang.String attributeName) throws java.lang.Exception
java.lang.Exception
void setReadOnly(java.lang.String attributeName, boolean readOnly) throws java.lang.Exception
java.lang.Exception
java.lang.String getName() throws java.lang.Exception
java.lang.Exception
java.lang.Exception newApplicationException(java.lang.String group, java.lang.String key, java.lang.Object[] params)
group
- message group idkey
- message key idparams
- message parametersjava.lang.Exception newApplicationException(java.lang.String group, java.lang.String key)
group
- message group idkey
- message key idjava.lang.String getMaxVarString(java.lang.String maxvarName) throws java.lang.Exception
java.lang.Exception
int getMaxVarInt(java.lang.String maxvarName) throws java.lang.Exception
java.lang.Exception
boolean getMaxVarBoolean(java.lang.String maxvarName) throws java.lang.Exception
java.lang.Exception
boolean toBeDeleted()
psdi.mbo.MboRemote.toBeDeleted()