public class ServerMboAdapter extends java.lang.Object implements MboAdapter, MboAdapterConstants
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DELAYVALIDATION, DISCARDABLE, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, USER| Constructor and Description |
|---|
ServerMboAdapter(Mbo mbo) |
| 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) |
Mbo |
getMbo() |
MboSetAdapter |
getMboSet(java.lang.String relationshipName) |
java.lang.String |
getName() |
MboAdapter |
getOwner() |
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.
|
static void |
wrapException(java.lang.Exception e)
Attempts to cast the given exception to a Maximo or runtime exception.
|
public ServerMboAdapter(Mbo mbo)
public Mbo getMbo()
public MboSetAdapter getMboSet(java.lang.String relationshipName) throws java.rmi.RemoteException, MXException
getMboSet in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic MboSetAdapter getThisMboSet() throws java.lang.Exception
getThisMboSet in interface MboAdapterjava.lang.Exceptionpublic void setValue(java.lang.String attributeName,
java.lang.String value)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValue(java.lang.String attributeName,
java.lang.String value,
long flags)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValue(java.lang.String attributeName,
boolean value)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValue(java.lang.String attributeName,
boolean value,
long flags)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValueIfDifferent(java.lang.String attributeName,
boolean value)
throws java.rmi.RemoteException,
MXException
setValueIfDifferent in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValueIfDifferent(java.lang.String attributeName,
boolean value,
long flags)
throws java.rmi.RemoteException,
MXException
setValueIfDifferent in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValue(java.lang.String attributeName,
int value)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValue(java.lang.String attributeName,
int value,
long flags)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValue(java.lang.String attributeName,
java.util.Date value)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setValue(java.lang.String attributeName,
java.util.Date value,
long flags)
throws java.rmi.RemoteException,
MXException
setValue in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic java.lang.String getString(java.lang.String attributeName)
throws java.rmi.RemoteException,
MXException
getString in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic boolean getBoolean(java.lang.String attributeName)
throws java.rmi.RemoteException,
MXException
MboAdapterfalse.getBoolean in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic int getInt(java.lang.String attributeName)
throws java.rmi.RemoteException,
MXException
getInt in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic java.util.Date getDate(java.lang.String attributeName)
throws java.rmi.RemoteException,
MXException
getDate in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic boolean isNull(java.lang.String attributeName)
throws java.rmi.RemoteException,
MXException
isNull in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic boolean isReadOnly(java.lang.String attributeName)
throws java.rmi.RemoteException,
MXException
isReadOnly in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic void setReadOnly(java.lang.String attributeName,
boolean readOnly)
throws java.rmi.RemoteException
setReadOnly in interface MboAdapterjava.rmi.RemoteExceptionpublic java.lang.String getName()
throws java.rmi.RemoteException
getName in interface MboAdapterjava.rmi.RemoteExceptionpublic MboAdapter getOwner() throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic java.lang.Exception newApplicationException(java.lang.String group,
java.lang.String key,
java.lang.Object[] params)
MboAdapternewApplicationException in interface MboAdaptergroup - message group idkey - message key idparams - message parametersMboAdapter.newApplicationException(java.lang.String, java.lang.String, java.lang.Object[])public java.lang.Exception newApplicationException(java.lang.String group,
java.lang.String key)
MboAdapternewApplicationException in interface MboAdaptergroup - message group idkey - message key idMboAdapter.newApplicationException(java.lang.String, java.lang.String)public java.lang.String getMaxVarString(java.lang.String maxvarName)
throws java.rmi.RemoteException,
MXException
getMaxVarString in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic int getMaxVarInt(java.lang.String maxvarName)
throws java.rmi.RemoteException,
MXException
getMaxVarInt in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic boolean getMaxVarBoolean(java.lang.String maxvarName)
throws java.rmi.RemoteException,
MXException
getMaxVarBoolean in interface MboAdapterjava.rmi.RemoteExceptionMXExceptionpublic boolean toBeDeleted()
MboAdaptertoBeDeleted in interface MboAdapterpsdi.mbo.MboRemote.toBeDeleted()public static void wrapException(java.lang.Exception e)
throws MXApplicationException
e - exception to be cast or wrappedMXApplicationException