Interface I_ContextAccess

  • All Superinterfaces:
    I_SimpleCRUD
    All Known Implementing Classes:
    ContextAccess

    public interface I_ContextAccess
    extends I_SimpleCRUD
    Event Context access layer ETHERCIS Project Created by Christian Chevalley on 4/21/2015.
    • Method Detail

      • getInstance

        static I_ContextAccess getInstance​(I_DomainAccess domain,
                                           com.nedap.archie.rm.composition.EventContext eventContext)
        get a new access layer instance to the table
        Parameters:
        domain - SQL context
        eventContext - an EventContext instance
        Returns:
        an uncommitted interface to the access layer
        See Also:
        EventContext
      • retrieveInstance

        static I_ContextAccess retrieveInstance​(I_DomainAccess domainAccess,
                                                UUID id)
        retrieve an Event Context access layer instance from the DB
        Parameters:
        domainAccess - SQL context
        id - the event context id
        Returns:
        an interface to the access layer
      • delete

        static Integer delete​(I_DomainAccess domainAccess,
                              UUID id)
        quick delete...
        Parameters:
        domainAccess - SQL context
        id - event context id
        Returns:
        1 on success, 0 otherwise
      • retrieveHistoricalEventContext

        static com.nedap.archie.rm.composition.EventContext retrieveHistoricalEventContext​(I_DomainAccess domainAccess,
                                                                                           UUID id,
                                                                                           Timestamp transactionTime)
        Retrieves an EventContext for a specific historical time.
        Parameters:
        domainAccess - Access object
        id - ID of composition the context is connected to
        transactionTime - Historical time of the context
        Returns:
        New EventContext object matching the given time or null if not available.
        Throws:
        InternalServerException - on failure of decoding DvText or DvDateTime
      • setRecordFields

        void setRecordFields​(UUID id,
                             com.nedap.archie.rm.composition.EventContext eventContext)
        set the record fields from its corresponding EventContext instance
        Parameters:
        id -
        eventContext -
      • mapRmEventContext

        com.nedap.archie.rm.composition.EventContext mapRmEventContext()
        Creates an EventContext object from already set record data of an already existing ContextAccess instance.
        Returns:
        EventContext object representing this instance's data
        Throws:
        InternalServerException - on failure of decoding DvText or DvDateTime
      • getOtherContextJson

        String getOtherContextJson()
        Retrieves otherContext from event context record, which is represented as json blob in the DB.
        Returns:
        Json representation of otherContext
      • setCompositionId

        void setCompositionId​(UUID compositionId)
      • getId

        UUID getId()
      • isVoid

        boolean isVoid()