|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.pluginwizard.business.ModelDAO
public final class ModelDAO
This class provides Data Access methods for Model objects
| Constructor Summary | |
|---|---|
ModelDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nModelId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
insert(Model model,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
Model |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the model from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
List<Model> |
selectModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the models and returns them as a List |
void |
store(Model model,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin
public void insert(Model model,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IModelDAOmodel - instance of the Model object to insertplugin - The plugin
public Model load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IModelDAOnId - The identifier of the modelplugin - The plugin
public void delete(int nModelId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IModelDAOnModelId - The identifier of the modelplugin - The plugin
public void store(Model model,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IModelDAOmodel - The reference of the modelplugin - The pluginpublic List<Model> selectModelsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectModelsList in interface IModelDAOplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||