fr.paris.lutece.plugins.search.solr.business.field
Class FieldDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.search.solr.business.field.FieldDAO
All Implemented Interfaces:
IFieldDAO

public final class FieldDAO
extends java.lang.Object
implements IFieldDAO

This class provides Data Access methods for Field objects


Constructor Summary
FieldDAO()
           
 
Method Summary
 void delete(int nFieldId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Field load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the field from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<Field> selectFieldsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the fields and returns them as a List
 void store(Field field, 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

FieldDAO

public FieldDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

public void insert(Field field,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IFieldDAO
Parameters:
field - instance of the Field object to insert
plugin - The plugin

load

public Field load(int nId,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the field from the table

Specified by:
load in interface IFieldDAO
Parameters:
nId - The identifier of the field
plugin - The plugin
Returns:
the instance of the Field

delete

public void delete(int nFieldId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IFieldDAO
Parameters:
nFieldId - The identifier of the field
plugin - The plugin

store

public void store(Field field,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IFieldDAO
Parameters:
field - The reference of the field
plugin - The plugin

selectFieldsList

public java.util.List<Field> selectFieldsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the fields and returns them as a List

Specified by:
selectFieldsList in interface IFieldDAO
Parameters:
plugin - The plugin
Returns:
The List which contains the data of all the fields


Copyright © 2011 Mairie de Paris. All Rights Reserved.