public class AttributeDAO extends Object implements IAttributeDAO
| Constructor and Description |
|---|
AttributeDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdAttribute)
Delete an attribute
|
int |
insert(IAttribute attribute)
Insert a new attribute
|
IAttribute |
load(int nIdAttribute,
Locale locale)
Load attribute
|
List<IAttribute> |
selectAll(Locale locale)
Load every attributes
|
List<IAttribute> |
selectCoreAttributes(Locale locale)
Load every attributes that do not come from a plugin
|
List<IAttribute> |
selectPluginAttributes(String strPluginName,
Locale locale)
Load every attributes from plugin name
|
void |
store(IAttribute attribute)
Update an attribute
|
void |
updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize)
Update the anonymization status of the attribute.
|
public IAttribute load(int nIdAttribute, Locale locale)
load in interface IAttributeDAOnIdAttribute - IDlocale - Localepublic int insert(IAttribute attribute)
insert in interface IAttributeDAOattribute - the attributepublic void store(IAttribute attribute)
store in interface IAttributeDAOattribute - the attributepublic void delete(int nIdAttribute)
delete in interface IAttributeDAOnIdAttribute - The Id of the attributepublic List<IAttribute> selectAll(Locale locale)
selectAll in interface IAttributeDAOlocale - localepublic List<IAttribute> selectPluginAttributes(String strPluginName, Locale locale)
selectPluginAttributes in interface IAttributeDAOstrPluginName - plugin namelocale - localepublic List<IAttribute> selectCoreAttributes(Locale locale)
selectCoreAttributes in interface IAttributeDAOlocale - localepublic void updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize)
updateAttributeAnonymization in interface IAttributeDAOnIdAttribute - Id of the attributebAnonymize - New value of the anonymization status. True means the attribute should be anonymize, false means it doesn't.Copyright © 2020 City of Paris. All rights reserved.