Class EdgeCache

java.lang.Object
io.openems.backend.metadata.odoo.EdgeCache

public class EdgeCache extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • addOrUpdate

      public MyEdge addOrUpdate(ResultSet rs) throws SQLException, OpenemsException
      Adds a Edge or Updates an existing Edge from a SQL ResultSet.
      Parameters:
      rs - the ResultSet record
      Returns:
      the new or updated Edge instance
      Throws:
      SQLException - on error
      OpenemsException - on error
    • getEdgeFromEdgeId

      public MyEdge getEdgeFromEdgeId(String edgeId)
      Gets an Edge from its Edge-ID.
      Parameters:
      edgeId - the Edge-ID
      Returns:
      the Edge, or null
    • getEdgeFromOdooId

      public MyEdge getEdgeFromOdooId(int odooId)
      Gets an Edge from its Odoo-ID.
      Parameters:
      odooId - the Odoo-ID
      Returns:
      the Edge, or null
    • getEdgeForApikey

      public MyEdge getEdgeForApikey(String apikey)
      Gets an Edge from its Apikey.
      Parameters:
      apikey - the Apikey
      Returns:
      the Edge, or null
    • getAllEdges

      public Collection<Edge> getAllEdges()
      Gets all Edges as an unmodifiable Collection.
      Returns:
      a collection of Edges