java.lang.Object
fr.paris.lutece.plugins.termofservice.business.EntryHome

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

    • 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 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 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 Optional<Entry> findPublishedEntry()
      Returns an instance of a published entry
      Returns:
      an instance of published Entry
    • getEntrysList

      public static 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 List<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 List<Entry> getEntrysListByIds(List<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