public final class TopicHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static Topic |
create(Topic topic)
Create an instance of the topic class
|
static Topic |
findByPrimaryKey(int nKey)
Returns an instance of a topic whose identifier is specified in parameter
|
static Topic |
findByPrimaryKey(String strTopicName)
Find a topic by it's primary key
|
static Collection<Topic> |
getTopicsList()
Load the data of all the topic objects and returns them in form of a collection
|
static void |
remove(int nTopicId)
Remove the topic whose identifier is specified in parameter
|
static Topic |
update(Topic topic)
Update of the topic which is specified in parameter
|
public static Topic create(Topic topic)
topic - The instance of the Topic which contains the informations to storepublic static Topic update(Topic topic)
topic - The instance of the Topic which contains the data to storepublic static void remove(int nTopicId)
nTopicId - The topic Idpublic static Topic findByPrimaryKey(int nKey)
nKey - The topic primary keypublic static Topic findByPrimaryKey(String strTopicName)
strTopicName - The topic namepublic static Collection<Topic> getTopicsList()
Copyright © 2019 City of Paris. All rights reserved.