Class AttributeDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.files2docs.business.AttributeDAO
-
- All Implemented Interfaces:
IAttributeDAO
public class AttributeDAO extends java.lang.Object implements IAttributeDAO
This class provides Data Access methods for Attribute objects
-
-
Constructor Summary
Constructors Constructor Description AttributeDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Deletes a record from the tablevoidinsert(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Inserts a new record in the tableAttributeload(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of the attribute from the tableAttributeselectByDocumentAttribute(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of the attribute filtered by document attributejava.util.Collection<Attribute>selectByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of the attributes filtered by mappingvoidstore(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Updates the record in the table
-
-
-
Method Detail
-
insert
public void insert(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Inserts a new record in the table- Specified by:
insertin interfaceIAttributeDAO- Parameters:
attribute- Instance of the Attribute object to insertplugin- The plugin
-
selectByMapping
public java.util.Collection<Attribute> selectByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of the attributes filtered by mapping- Specified by:
selectByMappingin interfaceIAttributeDAO- Parameters:
nMappingId- The mapping identifierplugin- The plugin- Returns:
- A collection which contains the data of the attributes filtered by mapping
-
load
public Attribute load(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of the attribute from the table- Specified by:
loadin interfaceIAttributeDAO- Parameters:
nAttributeId- The attribute identifierplugin- The plugin- Returns:
- The instance of the Attribute
-
store
public void store(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates the record in the table- Specified by:
storein interfaceIAttributeDAO- Parameters:
attribute- The reference of the attributeplugin- The plugin
-
deleteByMapping
public void deleteByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Deletes a record from the table- Specified by:
deleteByMappingin interfaceIAttributeDAO- Parameters:
nMappingId- The mapping identifierplugin- The plugin
-
selectByDocumentAttribute
public Attribute selectByDocumentAttribute(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of the attribute filtered by document attribute- Specified by:
selectByDocumentAttributein interfaceIAttributeDAO- Parameters:
nDocumentAttributeId- The document attribute identifierplugin- The plugin- Returns:
- The instance of the Attribute
-
-