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 IAttributeDAO
nIdAttribute
- IDlocale
- Localepublic int insert(IAttribute attribute)
insert
in interface IAttributeDAO
attribute
- the attributepublic void store(IAttribute attribute)
store
in interface IAttributeDAO
attribute
- the attributepublic void delete(int nIdAttribute)
delete
in interface IAttributeDAO
nIdAttribute
- The Id of the attributepublic List<IAttribute> selectAll(Locale locale)
selectAll
in interface IAttributeDAO
locale
- localepublic List<IAttribute> selectPluginAttributes(String strPluginName, Locale locale)
selectPluginAttributes
in interface IAttributeDAO
strPluginName
- plugin namelocale
- localepublic List<IAttribute> selectCoreAttributes(Locale locale)
selectCoreAttributes
in interface IAttributeDAO
locale
- localepublic void updateAttributeAnonymization(int nIdAttribute, boolean bAnonymize)
updateAttributeAnonymization
in interface IAttributeDAO
nIdAttribute
- 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.