Class FriendlyUrlHome


  • public final class FriendlyUrlHome
    extends Object
    This class provides instances management methods (create, find, ...) for FriendlyUrl objects
    • Method Detail

      • create

        public static FriendlyUrl create​(FriendlyUrl friendlyUrl)
        Create an instance of the friendlyUrl class
        Parameters:
        friendlyUrl - The instance of the FriendlyUrl which contains the informations to store
        Returns:
        The instance of friendlyUrl which has been created with its primary key.
      • update

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

        public static void remove​(int nFriendlyUrlId)
        Remove the friendlyUrl whose identifier is specified in parameter
        Parameters:
        nFriendlyUrlId - The friendlyUrl Id
      • removeAll

        public static void removeAll()
        Remove all URL
      • findByPrimaryKey

        public static FriendlyUrl findByPrimaryKey​(int nKey)
        Returns an instance of a friendlyUrl whose identifier is specified in parameter
        Parameters:
        nKey - The friendlyUrl primary key
        Returns:
        an instance of FriendlyUrl
      • findAll

        public static List<FriendlyUrl> findAll()
        Load the data of all the friendlyUrl objects and returns them in form of a collection
        Returns:
        the list which contains the data of all the friendlyUrl objects