public final class PostHome extends Object
Modifier and Type | Method and Description |
---|---|
static Post |
create(Post post)
Create an instance of the post class
|
static Post |
findByPrimaryKey(int nKey)
Returns an instance of a post whose identifier is specified in parameter
|
static Collection<Post> |
getPostsList()
Load the data of all the post objects and returns them in form of a collection
|
static Collection<Post> |
getPostsListIdAuteur(int nIdAuteur)
Load the data of all the post objects whose Auteur identifier is specified in parameter and return them in form of a collection
|
static void |
remove(int nPostId)
Remove the post whose identifier is specified in parameter
|
static Post |
update(Post post)
Update of the post which is specified in parameter
|
public static Post create(Post post)
post
- The instance of the Post which contains the informations to storepublic static Post update(Post post)
post
- The instance of the Post which contains the data to storepublic static void remove(int nPostId)
nPostId
- The post Idpublic static Post findByPrimaryKey(int nKey)
nKey
- The post primary keypublic static Collection<Post> getPostsList()
public static Collection<Post> getPostsListIdAuteur(int nIdAuteur)
nIdAuteur
- The Auteur primary keyCopyright © 2016 City of Paris. All rights reserved.