Class EntryHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Entry create​(Entry entry)
      Create an instance of the entry class
      static java.util.Optional<Entry> findByLastVersion()
      Returns an instance of a entry whose identifier is specified in parameter
      static java.util.Optional<Entry> findByPrimaryKey​(int nKey)
      Returns an instance of a entry whose identifier is specified in parameter
      static java.util.Optional<Entry> findPublishedEntry()
      Returns an instance of a published entry
      static java.util.List<Entry> getEntrysList()
      Load the data of all the entry objects and returns them as a list
      static java.util.List<Entry> getEntrysListByIds​(java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getEntrysReferenceList()
      Load the data of all the entry objects and returns them as a referenceList
      static java.util.List<java.lang.Integer> getIdEntrysList()
      Load the id of all the entry objects and returns them as a list
      static void publishEntry​(int nKey)
      Publish the entry whose identifier is specified in parameter
      static void remove​(int nKey)
      Remove the entry whose identifier is specified in parameter
      static void unpublishAllEntries()
      Unpublish all entries
      static Entry update​(Entry entry)
      Update of the entry which 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 Entry create​(Entry entry)
        Create an instance of the entry class
        Parameters:
        entry - The instance of the Entry which contains the informations to store
        Returns:
        The instance of entry which has been created with its primary key.
      • update

        public static Entry update​(Entry entry)
        Update of the entry which is specified in parameter
        Parameters:
        entry - The instance of the Entry which contains the data to store
        Returns:
        The instance of the entry which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the entry whose identifier is specified in parameter
        Parameters:
        nKey - The entry Id
      • publishEntry

        public static void publishEntry​(int nKey)
        Publish the entry whose identifier is specified in parameter
        Parameters:
        nKey - The identifier of the Entry to publish
      • unpublishAllEntries

        public static void unpublishAllEntries()
        Unpublish all entries
      • findByPrimaryKey

        public static java.util.Optional<Entry> findByPrimaryKey​(int nKey)
        Returns an instance of a entry whose identifier is specified in parameter
        Parameters:
        nKey - The entry primary key
        Returns:
        an instance of Entry
      • findByLastVersion

        public static java.util.Optional<Entry> findByLastVersion()
        Returns an instance of a entry whose identifier is specified in parameter
        Parameters:
        nKey - The entry primary key
        Returns:
        an instance of Entry
      • findPublishedEntry

        public static java.util.Optional<Entry> findPublishedEntry()
        Returns an instance of a published entry
        Returns:
        an instance of published Entry
      • getEntrysList

        public static java.util.List<Entry> getEntrysList()
        Load the data of all the entry objects and returns them as a list
        Returns:
        the list which contains the data of all the entry objects
      • getIdEntrysList

        public static java.util.List<java.lang.Integer> getIdEntrysList()
        Load the id of all the entry objects and returns them as a list
        Returns:
        the list which contains the id of all the entry objects
      • getEntrysReferenceList

        public static fr.paris.lutece.util.ReferenceList getEntrysReferenceList()
        Load the data of all the entry objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the entry objects
      • getEntrysListByIds

        public static java.util.List<Entry> getEntrysListByIds​(java.util.List<java.lang.Integer> listIds)
        Load the data of all the avant objects and returns them as a list
        Parameters:
        listIds - liste of ids
        Returns:
        the list which contains the data of all the avant objects