Class BusinessObjectTool


  • public class BusinessObjectTool
    extends java.lang.Object
    Helper class to manipulate business objects in specific code
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BusinessObjectTool.ReturnMessage create()
      Helper method to process create save throwing exception in case of error
      Forces row ID at objectField.DEFAULT_ROW_ID and calls save
      BusinessObjectTool.ReturnMessage del()
      Alias to delete (naming suitable for script usage)
      BusinessObjectTool.ReturnMessage delete()
      Helper method to process deletion throwing exception in case of error
      void get​(java.lang.String rowId)
      Helper method to process row selection throwing exception in case of error
      void getForCopy​(java.lang.String rowId)
      Helper method to process row selection for copy throwing exception in case of error
      void getForCreate()
      Helper method to process row initialization for create throwing exception in case of error
      void getForDelete​(java.lang.String rowId)
      Helper method to process row selection for delete throwing exception in case of error
      void getForUpdate​(java.lang.String rowId)
      Helper method to process row selection for update throwing exception in case of error
      ObjectDB getObject()
      Get object
      void log​(java.lang.String method, PlatformException e)
      Helper method to handle a platform exception as a log entry (for code EXCEPTION)
      BusinessObjectTool.ReturnMessage save()
      Helper method to process save (create or update) throwing appropriate exception in case of error
      java.util.List<java.lang.String[]> search()
      Helper method to process search throwing exception in case of error
      java.util.List<java.lang.String[]> search​(java.util.Map<java.lang.String,​java.lang.String> filters)
      Helper method to process a filtered search throwing exception in case of error
      java.util.List<java.lang.String[]> search​(org.json.JSONObject filters)
      Helper method to process a filtered search throwing exception in case of error
      void select​(java.lang.String rowId)
      Alias of get
      void selectForCopy​(java.lang.String rowId)
      Alias of getForCopy
      void selectForCreate()
      Alias of getForCreate
      void selectForDelete​(java.lang.String rowId)
      Alias to getForDelete
      void selectForUpdate​(java.lang.String rowId)
      Alias to getForUpdate
      BusinessObjectTool.ReturnMessage update()
      Helper method to process update save throwing exception in case of error
      java.util.List<BusinessObjectTool.ReturnMessage> validate()
      Helper method to process validation throwing exception in case of error(s)
      java.util.List<BusinessObjectTool.ReturnMessage> validateAndCreate()
      Helper method to process validation and create save throwing appropriate exception in case of error(s)
      Forces row ID at objectField.DEFAULT_ROW_ID and calls validateAndSave
      java.util.List<BusinessObjectTool.ReturnMessage> validateAndSave()
      Helper method to process validation and save (create or update) throwing appropriate exception in case of error(s)
      java.util.List<java.lang.String[]> validateAndSearch()
      Helper method to process search validation and search throwing exception in case of error
      java.util.List<BusinessObjectTool.ReturnMessage> validateAndUpdate()
      Helper method to process validation and update save throwing appropriate exception in case of error(s)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait