Class HistoryEventHome


  • public final class HistoryEventHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for HistoryEvent objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static HistoryEvent create​(HistoryEvent historyEvent)
      Creation of an instance of historyEvent
      static java.util.List<HistoryEvent> findByDocument​(int nDocumentId, java.util.Locale locale)
      Returns a collection of historyEvents objects
      static java.util.Collection<HistoryEvent> findByUser​(java.lang.String strUser, java.util.Locale locale)
      Returns a collection of historyEvents objects
      static void remove​(int nDocumentId)
      Remove the HistoryEvent whose identifier is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static HistoryEvent create​(HistoryEvent historyEvent)
        Creation of an instance of historyEvent
        Parameters:
        historyEvent - The instance of the historyEvent which contains the informations to store
        Returns:
        The instance of historyEvent which has been created with its primary key.
      • remove

        public static void remove​(int nDocumentId)
        Remove the HistoryEvent whose identifier is specified in parameter
        Parameters:
        nDocumentId - The document Id
      • findByDocument

        public static java.util.List<HistoryEvent> findByDocument​(int nDocumentId,
                                                                  java.util.Locale locale)
        Returns a collection of historyEvents objects
        Parameters:
        nDocumentId - The document Id
        locale - The current locale
        Returns:
        A collection of historyEvents
      • findByUser

        public static java.util.Collection<HistoryEvent> findByUser​(java.lang.String strUser,
                                                                    java.util.Locale locale)
        Returns a collection of historyEvents objects
        Parameters:
        strUser - The user Id
        locale - The current locale
        Returns:
        A collection of historyEvents