Class DocContentHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void create​(DocContent docContent)
      Create an instance of the DocContent class
      static DocContent getDocsContent​(int nIdDocument)
      Returns an instance of a DocContent whose identifier is specified in parameter
      static java.util.List<DocContent> getDocsContentByHtmlDoc​(int nIdHtmlDoc)
      Returns an list of a DocContent whose htmldoc identifier is specified in parameter
      static java.util.List<ContentType> getListContentType()
      Returns a list of a ContentType
      static void insertInBlog​(int nIdBlog, int nIdDocument, int nPriority)  
      static void remove​(int nBlogId)
      Remove the DocContent whose identifier Blog is specified in parameter
      static void removeById​(int nKey)
      Remove the DocContent whose identifier is specified in parameter
      static void removeInBlogById​(int nDocumentId)
      Remove the correspondance beetween the document and the blog
      static DocContent update​(DocContent docContent)
      Update of the DocContent 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 void create​(DocContent docContent)
        Create an instance of the DocContent class
        Parameters:
        docContent - The Document Content
      • insertInBlog

        public static void insertInBlog​(int nIdBlog,
                                        int nIdDocument,
                                        int nPriority)
        Parameters:
        nIdBlog - the blog id
        nIdDocument - the document id
        nPriority - the priority
      • update

        public static DocContent update​(DocContent docContent)
        Update of the DocContent which is specified in parameter
        Parameters:
        docContent - the Document Content
        Returns:
        the instance of DocContent updated
      • remove

        public static void remove​(int nBlogId)
        Remove the DocContent whose identifier Blog is specified in parameter
        Parameters:
        nBlogId - the Id DocContent
      • removeInBlogById

        public static void removeInBlogById​(int nDocumentId)
        Remove the correspondance beetween the document and the blog
        Parameters:
        nDocumentId - the document id
      • removeById

        public static void removeById​(int nKey)
        Remove the DocContent whose identifier is specified in parameter
        Parameters:
        nKey - the Id DocContent
      • getDocsContent

        public static DocContent getDocsContent​(int nIdDocument)
        Returns an instance of a DocContent whose identifier is specified in parameter
        Parameters:
        nIdDocument -
        Returns:
        an instance of DocContent
      • getDocsContentByHtmlDoc

        public static java.util.List<DocContent> getDocsContentByHtmlDoc​(int nIdHtmlDoc)
        Returns an list of a DocContent whose htmldoc identifier is specified in parameter
        Parameters:
        nIdHtmlDoc -
        Returns:
        an instance of DocContent
      • getListContentType

        public static java.util.List<ContentType> getListContentType()
        Returns a list of a ContentType
        Returns:
        a list of a ContentType