Class AttributeFieldHome
java.lang.Object
fr.paris.lutece.plugins.mylutece.business.attribute.AttributeFieldHome
AttributeFieldHome
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcreate(AttributeField attributeField, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert an new attribute fieldstatic AttributeFieldfindByPrimaryKey(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load attribute fieldstatic voidremove(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete an attribute fieldstatic voidremoveAttributeFieldsFromIdAttribute(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all attribute field from an attribute idstatic IAttributeselectAttributeByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the attribute associated to the id fieldstatic List<AttributeField>selectAttributeFieldsByIdAttribute(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the lists of attribute field associated to an attributestatic voidupdate(AttributeField attributeField, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update an attribute field
-
Constructor Details
-
AttributeFieldHome
public AttributeFieldHome()
-
-
Method Details
-
findByPrimaryKey
public static AttributeField findByPrimaryKey(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load attribute field- Parameters:
nIdField- ID Fieldplugin- The plugin- Returns:
- Attribute Field
-
selectAttributeFieldsByIdAttribute
public static 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 attributeplugin- 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 fieldplugin- 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 fieldplugin- The plugin- Returns:
-
update
public static void update(AttributeField attributeField, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update an attribute field- Parameters:
attributeField- the attribute fieldplugin- 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 idplugin- 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 attributeplugin- The plugin
-