Interface IAttributeDAO
-
- All Known Implementing Classes:
AttributeDAO
public interface IAttributeDAOIAttributeDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdAttribute)Delete an attributeintinsert(IAttribute attribute)Insert a new attributeIAttributeload(int nIdAttribute, Locale locale)Load attributeList<IAttribute>selectAll(Locale locale)Load every attributesList<IAttribute>selectCoreAttributes(Locale locale)Load every attributes that do not come from a pluginList<IAttribute>selectPluginAttributes(String strPluginName, Locale locale)Load every attributes from plugin namevoidstore(IAttribute attribute)Update an attributevoidupdateAttributeAnonymization(int nIdAttribute, boolean bAnonymize)Update the anonymization status of the attribute.
-
-
-
Method Detail
-
load
IAttribute load(int nIdAttribute, Locale locale)
Load attribute- Parameters:
nIdAttribute- IDlocale- Locale- Returns:
- Attribute
-
insert
int insert(IAttribute attribute)
Insert a new attribute- Parameters:
attribute- the attribute- Returns:
- new PK
-
store
void store(IAttribute attribute)
Update an attribute- Parameters:
attribute- the attribute
-
delete
void delete(int nIdAttribute)
Delete an attribute- Parameters:
nIdAttribute- the ID of the attribute
-
selectAll
List<IAttribute> selectAll(Locale locale)
Load every attributes- Parameters:
locale- locale- Returns:
- list of attributes
-
selectPluginAttributes
List<IAttribute> selectPluginAttributes(String strPluginName, Locale locale)
Load every attributes from plugin name- Parameters:
strPluginName- plugin namelocale- locale- Returns:
- list of attributes
-
selectCoreAttributes
List<IAttribute> selectCoreAttributes(Locale locale)
Load every attributes that do not come from a plugin- Parameters:
locale- locale- Returns:
- list of attributes
-
updateAttributeAnonymization
void updateAttributeAnonymization(int nIdAttribute, boolean bAnonymize)Update the anonymization status of the attribute.- Parameters:
nIdAttribute- Id of the attributebAnonymize- New value of the anonymization status. True means the attribute should be anonymize, false means it doesn't.
-
-