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 MboAdapter
java.rmi.RemoteException
MXException
public MboSetAdapter getThisMboSet() throws java.lang.Exception
getThisMboSet
in interface MboAdapter
java.lang.Exception
public void setValue(java.lang.String attributeName, java.lang.String value) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValue(java.lang.String attributeName, java.lang.String value, long flags) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValue(java.lang.String attributeName, boolean value) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValue(java.lang.String attributeName, boolean value, long flags) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValueIfDifferent(java.lang.String attributeName, boolean value) throws java.rmi.RemoteException, MXException
setValueIfDifferent
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValueIfDifferent(java.lang.String attributeName, boolean value, long flags) throws java.rmi.RemoteException, MXException
setValueIfDifferent
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValue(java.lang.String attributeName, int value) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValue(java.lang.String attributeName, int value, long flags) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValue(java.lang.String attributeName, java.util.Date value) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setValue(java.lang.String attributeName, java.util.Date value, long flags) throws java.rmi.RemoteException, MXException
setValue
in interface MboAdapter
java.rmi.RemoteException
MXException
public java.lang.String getString(java.lang.String attributeName) throws java.rmi.RemoteException, MXException
getString
in interface MboAdapter
java.rmi.RemoteException
MXException
public boolean getBoolean(java.lang.String attributeName) throws java.rmi.RemoteException, MXException
MboAdapter
false
.getBoolean
in interface MboAdapter
java.rmi.RemoteException
MXException
public int getInt(java.lang.String attributeName) throws java.rmi.RemoteException, MXException
getInt
in interface MboAdapter
java.rmi.RemoteException
MXException
public java.util.Date getDate(java.lang.String attributeName) throws java.rmi.RemoteException, MXException
getDate
in interface MboAdapter
java.rmi.RemoteException
MXException
public boolean isNull(java.lang.String attributeName) throws java.rmi.RemoteException, MXException
isNull
in interface MboAdapter
java.rmi.RemoteException
MXException
public boolean isReadOnly(java.lang.String attributeName) throws java.rmi.RemoteException, MXException
isReadOnly
in interface MboAdapter
java.rmi.RemoteException
MXException
public void setReadOnly(java.lang.String attributeName, boolean readOnly) throws java.rmi.RemoteException
setReadOnly
in interface MboAdapter
java.rmi.RemoteException
public java.lang.String getName() throws java.rmi.RemoteException
getName
in interface MboAdapter
java.rmi.RemoteException
public MboAdapter getOwner() throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Exception newApplicationException(java.lang.String group, java.lang.String key, java.lang.Object[] params)
MboAdapter
newApplicationException
in interface MboAdapter
group
- 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)
MboAdapter
newApplicationException
in interface MboAdapter
group
- 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 MboAdapter
java.rmi.RemoteException
MXException
public int getMaxVarInt(java.lang.String maxvarName) throws java.rmi.RemoteException, MXException
getMaxVarInt
in interface MboAdapter
java.rmi.RemoteException
MXException
public boolean getMaxVarBoolean(java.lang.String maxvarName) throws java.rmi.RemoteException, MXException
getMaxVarBoolean
in interface MboAdapter
java.rmi.RemoteException
MXException
public boolean toBeDeleted()
MboAdapter
toBeDeleted
in interface MboAdapter
psdi.mbo.MboRemote.toBeDeleted()
public static void wrapException(java.lang.Exception e) throws MXApplicationException
e
- exception to be cast or wrappedMXApplicationException