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:
try {
...
}
catch (MobileApplicationException me) { throw me; }
catch (RuntimeException rte) { throw rte; }
catch (Exception e) {
e.printStackTrace();
throw new MobileApplicationException("internalerror", e);
}
And on the server side:
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);
}
The idea is that the exception types will be treated as if we had the normal
method signatures:
RemoteExceptions 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.ExceptionMboSetAdapter getThisMboSet() throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
java.lang.String value)
throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
java.lang.String value,
long flags)
throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
boolean value)
throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
boolean value,
long flags)
throws java.lang.Exception
java.lang.Exceptionvoid setValueIfDifferent(java.lang.String attributeName,
boolean value)
throws java.lang.Exception
java.lang.Exceptionvoid setValueIfDifferent(java.lang.String attributeName,
boolean value,
long flags)
throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
int value)
throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
int value,
long flags)
throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
java.util.Date value)
throws java.lang.Exception
java.lang.Exceptionvoid setValue(java.lang.String attributeName,
java.util.Date value,
long flags)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getString(java.lang.String attributeName)
throws java.lang.Exception
java.lang.Exceptionboolean getBoolean(java.lang.String attributeName)
throws java.lang.Exception
false.java.lang.Exceptionint getInt(java.lang.String attributeName)
throws java.lang.Exception
java.lang.Exceptionjava.util.Date getDate(java.lang.String attributeName)
throws java.lang.Exception
java.lang.Exceptionboolean isNull(java.lang.String attributeName)
throws java.lang.Exception
java.lang.Exceptionboolean isReadOnly(java.lang.String attributeName)
throws java.lang.Exception
java.lang.Exceptionvoid setReadOnly(java.lang.String attributeName,
boolean readOnly)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getName()
throws java.lang.Exception
java.lang.Exceptionjava.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.Exceptionint getMaxVarInt(java.lang.String maxvarName)
throws java.lang.Exception
java.lang.Exceptionboolean getMaxVarBoolean(java.lang.String maxvarName)
throws java.lang.Exception
java.lang.Exceptionboolean toBeDeleted()
psdi.mbo.MboRemote.toBeDeleted()