fr.paris.lutece.plugins.mylutece.business.attribute
Class AttributeFieldHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.business.attribute.AttributeFieldHome

public class AttributeFieldHome
extends java.lang.Object

AttributeFieldHome


Constructor Summary
AttributeFieldHome()
           
 
Method Summary
static int create(AttributeField attributeField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert an new attribute field
static AttributeField findByPrimaryKey(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load attribute field
static void remove(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an attribute field
static void removeAttributeFieldsFromIdAttribute(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all attribute field from an attribute id
static IAttribute selectAttributeByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the attribute associated to the id field
static java.util.List<AttributeField> selectAttributeFieldsByIdAttribute(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the lists of attribute field associated to an attribute
static void update(AttributeField attributeField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an attribute field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeFieldHome

public AttributeFieldHome()
Method Detail

findByPrimaryKey

public static AttributeField findByPrimaryKey(int nIdField,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load attribute field

Parameters:
nIdField - ID Field
plugin - The plugin
Returns:
Attribute Field

selectAttributeFieldsByIdAttribute

public static java.util.List<AttributeField> selectAttributeFieldsByIdAttribute(int nIdAttribute,
                                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the lists of attribute field associated to an attribute

Parameters:
nIdAttribute - the ID attribute
plugin - The plugin
Returns:
the list of attribute fields

selectAttributeByIdField

public static IAttribute selectAttributeByIdField(int nIdField,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the attribute associated to the id field

Parameters:
nIdField - the id field
plugin - The plugin
Returns:
attribute

create

public static int create(AttributeField attributeField,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert an new attribute field

Parameters:
attributeField - the attribute field
plugin - The plugin
Returns:
@return new PK

update

public static void update(AttributeField attributeField,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an attribute field

Parameters:
attributeField - the attribute field
plugin - The plugin

remove

public static void remove(int nIdField,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an attribute field

Parameters:
nIdField - the attribute field id
plugin - The plugin

removeAttributeFieldsFromIdAttribute

public static void removeAttributeFieldsFromIdAttribute(int nIdAttribute,
                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all attribute field from an attribute id

Parameters:
nIdAttribute - the ID attribute
plugin - The plugin


Copyright © 2012 Mairie de Paris. All Rights Reserved.