com.ibm.tivoli.maximo.util.mboadapter.server

Class ServerMboAdapter

  • java.lang.Object
    • com.ibm.tivoli.maximo.util.mboadapter.server.ServerMboAdapter
  • All Implemented Interfaces:
    com.ibm.tivoli.maximo.util.mboadapter.MboAdapter, com.ibm.tivoli.maximo.util.mboadapter.MboAdapterConstants


    public class ServerMboAdapter
    extends java.lang.Object
    implements com.ibm.tivoli.maximo.util.mboadapter.MboAdapter, com.ibm.tivoli.maximo.util.mboadapter.MboAdapterConstants
    • Field Summary

      • Fields inherited from interface com.ibm.tivoli.maximo.util.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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean getBoolean(java.lang.String attributeName) 
      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() 
      com.ibm.tivoli.maximo.util.mboadapter.MboSetAdapter getMboSet(java.lang.String relationshipName) 
      java.lang.String getName() 
      com.ibm.tivoli.maximo.util.mboadapter.MboAdapter getOwner() 
      java.lang.String getString(java.lang.String attributeName) 
      com.ibm.tivoli.maximo.util.mboadapter.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) 
      java.lang.Exception newApplicationException(java.lang.String group, java.lang.String key, java.lang.Object[] params) 
      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() 
      static void wrapException(java.lang.Exception e)
      Attempts to cast the given exception to a Maximo or runtime exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServerMboAdapter

        public ServerMboAdapter(Mbo mbo)
    • Method Detail

      • getMbo

        public Mbo getMbo()
      • getMboSet

        public com.ibm.tivoli.maximo.util.mboadapter.MboSetAdapter getMboSet(java.lang.String relationshipName)
                                                                      throws java.rmi.RemoteException,
                                                                             MXException
        Specified by:
        getMboSet in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • getThisMboSet

        public com.ibm.tivoli.maximo.util.mboadapter.MboSetAdapter getThisMboSet()
                                                                          throws java.lang.Exception
        Specified by:
        getThisMboSet in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.lang.Exception
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.lang.String value)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.lang.String value,
                             long flags)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValue

        public void setValue(java.lang.String attributeName,
                             boolean value)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValue

        public void setValue(java.lang.String attributeName,
                             boolean value,
                             long flags)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValueIfDifferent

        public void setValueIfDifferent(java.lang.String attributeName,
                                        boolean value)
                                 throws java.rmi.RemoteException,
                                        MXException
        Specified by:
        setValueIfDifferent in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValueIfDifferent

        public void setValueIfDifferent(java.lang.String attributeName,
                                        boolean value,
                                        long flags)
                                 throws java.rmi.RemoteException,
                                        MXException
        Specified by:
        setValueIfDifferent in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValue

        public void setValue(java.lang.String attributeName,
                             int value)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValue

        public void setValue(java.lang.String attributeName,
                             int value,
                             long flags)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.util.Date value)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setValue

        public void setValue(java.lang.String attributeName,
                             java.util.Date value,
                             long flags)
                      throws java.rmi.RemoteException,
                             MXException
        Specified by:
        setValue in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • getString

        public java.lang.String getString(java.lang.String attributeName)
                                   throws java.rmi.RemoteException,
                                          MXException
        Specified by:
        getString in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • getBoolean

        public boolean getBoolean(java.lang.String attributeName)
                           throws java.rmi.RemoteException,
                                  MXException
        Specified by:
        getBoolean in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • getInt

        public int getInt(java.lang.String attributeName)
                   throws java.rmi.RemoteException,
                          MXException
        Specified by:
        getInt in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • getDate

        public java.util.Date getDate(java.lang.String attributeName)
                               throws java.rmi.RemoteException,
                                      MXException
        Specified by:
        getDate in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • isNull

        public boolean isNull(java.lang.String attributeName)
                       throws java.rmi.RemoteException,
                              MXException
        Specified by:
        isNull in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • isReadOnly

        public boolean isReadOnly(java.lang.String attributeName)
                           throws java.rmi.RemoteException,
                                  MXException
        Specified by:
        isReadOnly in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • setReadOnly

        public void setReadOnly(java.lang.String attributeName,
                                boolean readOnly)
                         throws java.rmi.RemoteException
        Specified by:
        setReadOnly in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
      • getName

        public java.lang.String getName()
                                 throws java.rmi.RemoteException
        Specified by:
        getName in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
      • getOwner

        public com.ibm.tivoli.maximo.util.mboadapter.MboAdapter getOwner()
                                                                  throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • newApplicationException

        public java.lang.Exception newApplicationException(java.lang.String group,
                                                           java.lang.String key,
                                                           java.lang.Object[] params)
        Specified by:
        newApplicationException in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        See Also:
        MboAdapter.newApplicationException(java.lang.String, java.lang.String, java.lang.Object[])
      • newApplicationException

        public java.lang.Exception newApplicationException(java.lang.String group,
                                                           java.lang.String key)
        Specified by:
        newApplicationException in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        See Also:
        MboAdapter.newApplicationException(java.lang.String, java.lang.String)
      • getMaxVarString

        public java.lang.String getMaxVarString(java.lang.String maxvarName)
                                         throws java.rmi.RemoteException,
                                                MXException
        Specified by:
        getMaxVarString in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • getMaxVarInt

        public int getMaxVarInt(java.lang.String maxvarName)
                         throws java.rmi.RemoteException,
                                MXException
        Specified by:
        getMaxVarInt in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • getMaxVarBoolean

        public boolean getMaxVarBoolean(java.lang.String maxvarName)
                                 throws java.rmi.RemoteException,
                                        MXException
        Specified by:
        getMaxVarBoolean in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
        Throws:
        java.rmi.RemoteException
        MXException
      • toBeDeleted

        public boolean toBeDeleted()
        Specified by:
        toBeDeleted in interface com.ibm.tivoli.maximo.util.mboadapter.MboAdapter
      • wrapException

        public static void wrapException(java.lang.Exception e)
                                  throws MXApplicationException
        Attempts to cast the given exception to a Maximo or runtime exception. If that's not possible, then create a new internal Maximo exception wrapping it. The resulting exception is thrown.
        Parameters:
        e - exception to be cast or wrapped
        Throws:
        MXApplicationException