Interface IDBOStorageService


public interface IDBOStorageService
Class IDBOPersistanceManager
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    createTables(IThingID xtypeID, boolean isUpgrade)
    Creates or upgrades table storage for DBO identified by portlet type
    void
    createTables(IPortletInfo portletInfo, IThingID xtypeID, boolean isUpgrade)
    Creates or upgrades table storage for DBO identified by portlet type
    void
    Delete all records from the specified xtype table
    void
    Drops storage tables for DBO identified by portlet type
    Generates and returns delete statement for DBO custom table.
    boolean
    loadExtendedInfo(IThing dbo, String[] properties)
    Loads extended attributes of the dbo from DB
    boolean
    saveExtendedInfo(IThing dbo, String[] properties)
    Saves extended attributes of the dbo back to DB
  • Method Details

    • saveExtendedInfo

      boolean saveExtendedInfo(IThing dbo, String[] properties) throws MetaException
      Saves extended attributes of the dbo back to DB
      Parameters:
      dbo - instance
      properties - list of DBO properties to save. Passing null would save all properties
      Returns:
      true if object was saved, false otherwise
      Throws:
      MetaException
    • loadExtendedInfo

      boolean loadExtendedInfo(IThing dbo, String[] properties) throws MetaException
      Loads extended attributes of the dbo from DB
      Parameters:
      dbo - instance
      properties - list of DBO properties to load. Passing null would load all properties
      Returns:
      true if object record exists in the database, false otherwise
      Throws:
      MetaException
    • createTables

      default void createTables(IThingID xtypeID, boolean isUpgrade) throws MetaException
      Creates or upgrades table storage for DBO identified by portlet type
      Parameters:
      xtypeID -
      isUpgrade -
      Throws:
      MetaException
    • createTables

      void createTables(IPortletInfo portletInfo, IThingID xtypeID, boolean isUpgrade) throws MetaException
      Creates or upgrades table storage for DBO identified by portlet type
      Parameters:
      portletInfo - portletInfo to use to create the table storage
      xtypeID -
      isUpgrade -
      Throws:
      MetaException
    • dropTables

      void dropTables(IThingID xtypeID) throws MetaException
      Drops storage tables for DBO identified by portlet type
      Parameters:
      xtypeID -
      Throws:
      MetaException
    • getDeleteSql

      String getDeleteSql(IThingID xtypeID) throws MetaException
      Generates and returns delete statement for DBO custom table. Returns null if DBO does not have a custom table
      Throws:
      MetaException
    • deleteAllRecords

      void deleteAllRecords(IThingID xtypeID) throws MetaException
      Delete all records from the specified xtype table
      Parameters:
      xtypeID -
      Throws:
      MetaException