Package edm.edom3

Interface EDMRow

  • All Superinterfaces:
    EDMContextDependent, EDMData, EDMInstance

    public interface EDMRow
    extends EDMInstance
    This interface represents an instance related to a QueryResult or a set of properties. It can be a partial instance or full instance related to a real DBinstance, a view entity or a pure in-memory instance. It must be explicit written back.
    • Method Detail

      • getAllAttrNames

        java.lang.String[] getAllAttrNames()
                                    throws EdmiException
        Retrieve all attribute names for this row-instance
        Returns:
        the attribute value
        Throws:
        EdmiException - if the method fails
      • refresh

        EDMSelect[] refresh​(java.lang.String[] attrNames)
                     throws EdmiException
        Read attribute values from database. Only possible for images of persistent instances.
        Parameters:
        attrNames - attributes to read
        Returns:
        the updated values
        Throws:
        EdmiException - if the method fails
      • flush

        void flush​(java.lang.String[] attrNames,
                   EDMSelect[] values)
            throws EdmiException
        Flush memory buffered attrs to DB. This method is overridden in generated / EB classes to adapt to actual implementation, fx update with a query.
        Parameters:
        attrNames - optional name list,if null all are written.
        values - values to write, if null use memory stored values, if not null then memory buffer is updated as well throws EdmiException if the method fails
        Throws:
        EdmiException - if the method fails